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

reports multiple definition of WebRtcSpl_ComplexFFT' when cross-compile latest master version of pjproject, can anyone help? thanks. #4272

Closed
mingkunwang opened this issue Jan 26, 2025 · 1 comment

Comments

@mingkunwang
Copy link

Describe the feature

gnueabihf/modules/audio_processing/ns/nsx_core_c.o output/libwebrtc-arm-unknown-linux-gnueabihf/common_audio/signal_processing/complex_fft.o -shared -Wl,-soname,libwebrtc.so.2
/root/work/rk3588/buildroot/output/rockchip_rk3588/host/bin/../lib/gcc/aarch64-buildroot-linux-gnu/11.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: output/libwebrtc-arm-unknown-linux-gnueabihf/common_audio/signal_processing/complex_fft.o: in function WebRtcSpl_ComplexFFT':
complex_fft.c:(.text+0x0): multiple definition of WebRtcSpl_ComplexFFT'; output/libwebrtc-arm-unknown-linux-gnueabihf/common_audio/signal_processing/complex_fft.o:complex_fft.c:(.text+0x0): first defined here
/root/work/rk3588/buildroot/output/rockchip_rk3588/host/bin/../lib/gcc/aarch64-buildroot-linux-gnu/11.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: output/libwebrtc-arm-unknown-linux-gnueabihf/common_audio/signal_processing/complex_fft.o: in function WebRtcSpl_ComplexIFFT':
complex_fft.c:(.text+0x280): multiple definition of WebRtcSpl_ComplexIFFT'; output/libwebrtc-arm-unknown-linux-gnueabihf/common_audio/signal_processing/complex_fft.o:complex_fft.c:(.text+0x280): first defined here
collect2: 错误: ld 返回 1
make[1]: *** [/root/work/code-rk3588/pjsip/pjproject/build/rules.mak:113:../../lib/libwebrtc.so.2] 错误 1
make[1]: 离开目录“/root/work/code-rk3588/pjsip/pjproject/third_party/build/webrtc”
make: *** [Makefile:89:libwebrtc.so] 错误 2

Describe alternatives you've considered

No response

Additional context

No response

@sauwming
Copy link
Member

sauwming commented Feb 3, 2025

Use the latest version, there's a recent fix for the configure script for WebRTC build.

If it still doesn't work, just disable it ./configure --disable-libwebrtc

@sauwming sauwming closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants