Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luhterluo opened this issue Oct 27, 2023 · 6 comments
Open

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

luhterluo opened this issue Oct 27, 2023 · 6 comments

Comments

@luhterluo
Copy link

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 to vpp1684_cmodel_test'
collect2: error: ld returned 1 exit status
make: *** [Makefile:108: ffmpeg_g] Error 1

@luhterluo
Copy link
Author

编译时使用的配置命令
./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
Copy link
Author

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

@sophon-xun
Copy link
Collaborator

Okay

@HDL199411
Copy link

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

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

@HDL199411
Copy link

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

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

我是用的是tag v24.04.01版本

@luhterluo
Copy link
Author

luhterluo commented Sep 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants