sophgo / sophon_ffmpeg

GNU Lesser General Public License v2.1
13 stars 8 forks source link

在SOC目标机环境下编译最后链接时报错 #1

Open luhterluo opened 1 year ago

luhterluo commented 1 year ago

LD ffmpeg_g /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 3 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 4 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 5 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 6 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 7 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 8 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 9 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 3 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 4 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 5 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 6 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 7 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 8 (>= sh_info of 3) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: .dynsym local symbol at index 9 (>= sh_info of 3) /usr/bin/ld: warning: libvpp_cmodel.so, needed by ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: undefined reference to bm1684x_vpp_cmodel(vpp_batch_n*, bm1684x_vpp_mat_s*, bm1684x_vpp_mat_s*, bm1684x_vpp_param_s*)' /usr/bin/ld: ./extern_lib/bm_hardware_accele/decode_arm64/lib/libbmcv.so: undefined reference tovpp1684_cmodel_test' collect2: error: ld returned 1 exit status make: *** [Makefile:108: ffmpeg_g] Error 1

luhterluo commented 1 year ago

编译时使用的配置命令 ./configure \ --enable-cross-compile \ --cross-prefix=aarch64-linux-gnu- \ --target-os=linux \ --arch=arm64 \ --pkg-config=pkg-config \ --optflags=" " \ --enable-static \ --enable-shared \ --enable-pic \ --enable-swscale \ --enable-libfreetype \ --enable-libmp3lame \ --enable-bmcodec --disable-encoder=bmx264 \ --disable-sdl2 --disable-ffplay \ --enable-encoder=jpeg_bm --enable-decoder=jpeg_bm \ --disable-decoder=vc1_bm --disable-decoder=wmv1_bm --disable-decoder=wmv2_bm \ --disable-decoder=wmv3_bm --disable-decoder=mpeg1_bm --disable-decoder=mpeg2_bm \ --disable-decoder=mpeg4_bm --disable-decoder=mpeg4v3_bm --disable-decoder=flv1_bm \ --disable-decoder=h263_bm --disable-decoder=cavs_bm --disable-decoder=avs_bm --disable-decoder=vp3_bm --disable-decoder=vp8_bm --enable-openssl \ --disable-decoder=h264_v4l2m2m \ --disable-vaapi --disable-hwaccel=h263_vaapi --disable-hwaccel=h264_vaapi --disable-hwaccel=hevc_vaapi --disable-hwaccel=mjpeg_vaapi \ --disable-hwaccel=mpeg2_vaapi --disable-hwaccel=mpeg4_vaapi --disable-hwaccel=vc1_vaapi --disable-hwaccel=vp8_vaapi \ --disable-hwaccel=vp8_vaapi --disable-hwaccel=wmv3_vaapi \ --extra-ldflags="-L./extern_lib/bm_hardware_accele/decode_arm64/lib -L./extern_lib/prebuilt/lib -Wl,-rpath=./extern_lib/prebuilt/lib" \ --extra-libs="-lm -lbmion -lbmvpulite -lbmvpuapi -lbmvppapi -lbmjpulite -lbmcv -lbmlib -lbmjpuapi -lbmvideo -lrt -lssl -lcrypto -ldl -lresolv -lstdc++ -lgb28181_sip" \ --extra-cflags="-DBM1684 -I./extern_lib/3rdparty/libbmcv/include -DBM_PCIE_MODE=1 -I./extern_lib/bmvid/cnm/driver/release/pcie_bm1684_asic/ -I./extern_lib/bm_hardware_accele/decode_arm64/include/ -I./extern_lib/pre -I/usr/include/freetype2 -I./extern_lib/prebuilt/include/ -I./extern_lib/prebuilt/include/gbclient"$

luhterluo commented 1 year ago

修改配置脚本,解决问题了

sophon-xun commented 7 months ago

Okay

HDL199411 commented 1 month ago

修改配置脚本,解决问题了

我也遇到了同样的问题,修改什么配置呢?

HDL199411 commented 1 month ago

修改配置脚本,解决问题了

我也遇到了同样的问题,修改什么配置呢?

我是用的是tag v24.04.01版本

luhterluo commented 1 month ago

修改库的路径,根据你实际的安装的位置,去修改配置即可。

 

------------------ 原始邮件 ------------------ 发件人: "sophgo/sophon_ffmpeg" @.>; 发送时间: 2024年9月24日(星期二) 中午11:27 @.>; @.**@.>; 主题: Re: [sophgo/sophon_ffmpeg] 在SOC目标机环境下编译最后链接时报错 (Issue #1)

修改配置脚本,解决问题了

我也遇到了同样的问题,修改什么配置呢?

我是用的是tag v24.04.01版本

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>