使用rockit库编译AVS全景拼接例程
本人在使用librockit.so库是出现
Linking CXX executable rk_mpi_avs_test
/usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_packet_get_segment_nb'
/usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_frame_set_fbc_hdr_stride'
/usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_compat_query_by_id'
/usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_packet_get_segment_info'
/usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_compat_update'
/usr/bin/ld: ../lib/lib64/librockit.so: undefined reference to `mpp_set_log_level'
collect2: error: ld returned 1 exit status
make: *** Error 1
make: *** Error 2
make: *** Error 2查看了一下librockit.so【ldd -r librockit.so】
root@fuxivision:~/app/locke/firefly_avs_example# ldd -r lib/lib64/librockit.so
linux-vdso.so.1 (0x0000007f89218000)
libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f88c3e000)
librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000007f88c26000)
librockchip_mpp.so.1 => /lib/aarch64-linux-gnu/librockchip_mpp.so.1 (0x0000007f88a86000)
libasound.so.2 => /lib/aarch64-linux-gnu/libasound.so.2 (0x0000007f88982000)
libdrm.so.2 => /lib/aarch64-linux-gnu/libdrm.so.2 (0x0000007f88960000)
libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f8894c000)
libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000007f88767000)
libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f886bc000)
libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007f88698000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f88525000)
/lib/ld-linux-aarch64.so.1 (0x0000007f891e8000)
undefined symbol: mpp_packet_get_segment_nb (lib/lib64/librockit.so)
undefined symbol: mpp_frame_set_fbc_hdr_stride(lib/lib64/librockit.so)
undefined symbol: mpp_compat_query_by_id (lib/lib64/librockit.so)
undefined symbol: mpp_packet_get_segment_info (lib/lib64/librockit.so)
undefined symbol: mpp_compat_update (lib/lib64/librockit.so)
undefined symbol: mpp_set_log_level (lib/lib64/librockit.so)
这看起来是librockit.so缺少一些链接导致的,请问这些undefined symbol的函数要怎么修改?
不支持ubuntu。只支持buildroot 请问后面解决了嘛我看这个是缺mpp那个库我也加上了和你报错一模一样 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: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning: en = 0, offsetW = 0, offsetH = 0, yaw100 = 0, pitch100 = 0, roll100 = 0
RK_PS_LOG: fine tuning params: fineTuning: 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.5debug_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
799959745 发表于 2023-7-6 11:16
不支持ubuntu。只支持buildroot
buildroot怎么烧写进去啊?标定文件在哪里啊?能不能详细说说avs功能如何使用?
页:
[1]