Firefly开源社区

打印 上一主题 下一主题

[应用开发] 使用rockit库编译AVS全景拼接例程

158

积分

0

威望

0

贡献

技术小白

积分
158

使用rockit库编译AVS全景拼接例程

发表于 2023-6-19 11:46:51      浏览:4078 | 回复:4        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:

本人在使用librockit.so库是出现
  1. [100%] Linking CXX executable rk_mpi_avs_test
  2. /usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_packet_get_segment_nb'
  3. /usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_frame_set_fbc_hdr_stride'
  4. /usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_compat_query_by_id'
  5. /usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_packet_get_segment_info'
  6. /usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_compat_update'
  7. /usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_set_log_level'
  8. collect2: error: ld returned 1 exit status
  9. make[2]: *** [CMakeFiles/rk_mpi_avs_test.dir/build.make:339: rk_mpi_avs_test] Error 1
  10. make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/rk_mpi_avs_test.dir/all] Error 2
  11. make: *** [Makefile:91: all] Error 2
复制代码
查看了一下librockit.so【ldd -r librockit.so】
  1. root@fuxivision:~/app/locke/firefly_avs_example# ldd -r lib/lib64/librockit.so
  2.         linux-vdso.so.1 (0x0000007f89218000)
  3.         libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f88c3e000)
  4.         librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000007f88c26000)
  5.         librockchip_mpp.so.1 => /lib/aarch64-linux-gnu/librockchip_mpp.so.1 (0x0000007f88a86000)
  6.         libasound.so.2 => /lib/aarch64-linux-gnu/libasound.so.2 (0x0000007f88982000)
  7.         libdrm.so.2 => /lib/aarch64-linux-gnu/libdrm.so.2 (0x0000007f88960000)
  8.         libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f8894c000)
  9.         libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007f88767000)
  10.         libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f886bc000)
  11.         libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007f88698000)
  12.         libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f88525000)
  13.         /lib/ld-linux-aarch64.so.1 (0x0000007f891e8000)
  14. undefined symbol: mpp_packet_get_segment_nb     (lib/lib64/librockit.so)
  15. undefined symbol: mpp_frame_set_fbc_hdr_stride  (lib/lib64/librockit.so)
  16. undefined symbol: mpp_compat_query_by_id        (lib/lib64/librockit.so)
  17. undefined symbol: mpp_packet_get_segment_info   (lib/lib64/librockit.so)
  18. undefined symbol: mpp_compat_update     (lib/lib64/librockit.so)
  19. undefined symbol: mpp_set_log_level     (lib/lib64/librockit.so)
复制代码

这看起来是librockit.so缺少一些链接导致的,请问这些undefined symbol的函数要怎么修改?





1.zip

2.38 KB, 下载次数: 3, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

1万

积分

7

威望

0

贡献

技术大神

Rank: 8Rank: 8

积分
11422

突出贡献

发表于 2023-7-6 11:16:40        只看该作者  沙发
不支持ubuntu。只支持buildroot
回复

使用道具 举报

3

积分

0

威望

0

贡献

吃瓜的群众

积分
3
发表于 2023-8-1 19:40:19        只看该作者  板凳
请问后面解决了嘛我看这个是缺mpp那个库我也加上了和你报错一模一样
回复

使用道具 举报

43

积分

0

威望

0

贡献

技术小白

积分
43
发表于 2023-12-19 12:24:38        只看该作者  地板
RK_PS_LOG: RK_PS_initParams finished!
RTScheduler      01:04:14-747 {start             :300} calling start
avs              01:04:14-747 {TEST_AVS_6_Rectili:761} TEST_AVS_ComCreateFrame
avs              01:04:14-749 {TEST_AVS_ComCreate:401} fread /usr/data/avs/6x_rectlinear/input_image/image_data/camera0_2560x1520_nv12.yuv!
avs              01:04:14-753 {TEST_AVS_ComCreate:401} fread /usr/data/avs/6x_rectlinear/input_image/image_data/camera1_2560x1520_nv12.yuv!
avs              01:04:14-756 {TEST_AVS_ComCreate:401} fread /usr/data/avs/6x_rectlinear/input_image/image_data/camera2_2560x1520_nv12.yuv!
avs              01:04:14-760 {TEST_AVS_ComCreate:401} fread /usr/data/avs/6x_rectlinear/input_image/image_data/camera3_2560x1520_nv12.yuv!
avs              01:04:14-764 {TEST_AVS_ComCreate:401} fread /usr/data/avs/6x_rectlinear/input_image/image_data/camera4_2560x1520_nv12.yuv!
avs              01:04:14-768 {TEST_AVS_ComCreate:401} fread /usr/data/avs/6x_rectlinear/input_image/image_data/camera5_2560x1520_nv12.yuv!
avs              01:04:14-769 {TEST_AVS_6_Rectili:768} TEST_AVS_ComSendFrame
avs              01:04:14-769 {TEST_AVS_6_Rectili:773} TEST_AVS_ComGetChnFrame
avs              01:04:14-769 {TEST_AVS_6_Rectili:774} ctx->avsContext.u32AvsChnCnt = 1
avs              01:04:14-769 {TEST_AVS_ComGetChn:445} RK_MPI_AVS_GetChnFrame
RTOutputStreamSh 01:04:14-770 {onBufferRealloc   :255} streamType = 0, size = 33226752
RK_PS_LOG: RK_PS_setProjectParams begin!
RK_PS_LOG: checkProjParams begin!
RK_PS_LOG: proj params: projectType = 0
RK_PS_LOG: proj params: cameraNum = 6, srcW = 2560, srcH = 1520, dstW = 8192, dstH = 2700
RK_PS_LOG: proj params: fovX100 = 28000, fovY100 = 9500, centerX = 4220, centerY = 2124, stitchDistance = 0.500000
RK_PS_LOG: proj params: oriYaw100 = 0, oriPitch100 = 0, oriRoll100 = 0
RK_PS_LOG: proj params: yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: checkProjParams finished!
RK_PS_LOG: RK_PS_setProjectParams finished!
RK_PS_LOG: RK_PS_setFineTuningParams begin!
RK_PS_LOG: checkFineTuningParams begin!
RK_PS_LOG: fine tuning params: fineTuningEn = 0
RK_PS_LOG: fine tuning params: fineTuning[0]: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning[1]: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning[2]: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning[3]: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning[4]: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning[5]: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: checkFineTuningParams finished!
RK_PS_LOG: RK_PS_setFineTuningParams finished!
RK_PS_LOG: RK_PS_getMaxFinalLutBufSize begin!
RK_PS_LOG: RK_PS_getMaxFinalLutBufSize finished!
RK_PS_LOG: RK_PS_finalLutFromCalibration begin!
RK_PS_LOG: finalLutFromCalibration -- begin!
RK_PS_LOG: finalLutFromCalibration -- the fuse_width you set = 512
RK_PS_LOG: setDstImgParams begin!
RK_PS_LOG: setDstImgParams finished!
RK_PS_LOG: pto genMesh begin!
RK_PS_LOG: pto genMesh finished!
RK_PS_LOG: finalLutFromCalibration -- generate final Lut from pto file finished!
RK_PS_LOG: alphaFromDistanceForGPU -- begin!
RK_PS_LOG: alphaFromDistanceForGPU -- meshForGPU finished!
RK_PS_LOG: finalLutFromCalibration -- write GPU meshAlphaBuffer file finished!
RK_PS_LOG: finalLutFromCalibration cost time:60583 us
RK_PS_LOG: finalLutFromCalibration -- finished!
RK_PS_LOG: RK_PS_finalLutFromCalibration finished!
I librkgfx_avs: (RKGFX_AVS_init|563) RKGFX_AVS version:v5.5  debug_level:0
I librkgfx_avs: (RKGFX_AVS_init|571) inputBufferFormat:0x3231564e,useMeshBufAddress=0
Read succeeded:/usr/data/avs/6x_rectlinear/avs_mesh/rk_ps_gpu_mesh_params.txt
EGL version 1.4
after eglCreateWindowSurface() eglError (0x3005)
eglCreateWindowSurface failed.
Segmentation fault
回复

使用道具 举报

25

积分

0

威望

0

贡献

技术小白

积分
25
发表于 2024-4-13 13:09:26        只看该作者  5#
799959745 发表于 2023-7-6 11:16
不支持ubuntu。只支持buildroot

buildroot怎么烧写进去啊?标定文件在哪里啊?能不能详细说说avs功能如何使用?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表