Page 1 of 1

error building images while enabling gstreamer webrtcdsp plugin

Posted: 2025-09-24 14:05
by Kalpesh
So i wanted to enable webrtcdsp plugin for using audio proccessing algorithms like echo cancellation.

Because my use case peer to peer webrtc streaming so speaker's audio is creating echo.

so i enaled below option in buildrootconfig menuconfig
BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WEBRTCDSP=y

while building i am getting this kind of error which is may be some major compilation issue or can be toolchain issue.
beamformer/covariance_matrix_generator.cc: In function 'float webrtc::{anonymous}::BesselJ0(float)':
beamformer/covariance_matrix_generator.cc:24:10: error: 'j0' was not declared in this scope
return j0(x);
^~
make[5]: *** [Makefile:1279: beamformer/libwebrtc_audio_processing_la-covariance_matrix_generator.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/home/capuf/Documents/Kalpesh/Project/IP_cam/sdk/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6/output/build/webrtc-audio-processing-0.3.1/webrtc/modules/audio_processing'
make[4]: *** [Makefile:365: all-recursive] Error 1
make[4]: Leaving directory '/home/capuf/Documents/Kalpesh/Project/IP_cam/sdk/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6/output/build/webrtc-audio-processing-0.3.1/webrtc/modules'
make[3]: *** [Makefile:468: all-recursive] Error 1
make[3]: Leaving directory '/home/capuf/Documents/Kalpesh/Project/IP_cam/sdk/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6/output/build/webrtc-audio-processing-0.3.1/webrtc'
make[2]: *** [Makefile:495: all-recursive] Error 1
make[2]: Leaving directory '/home/capuf/Documents/Kalpesh/Project/IP_cam/sdk/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6/output/build/webrtc-audio-processing-0.3.1'
make[1]: *** [package/pkg-generic.mk:293: /home/capuf/Documents/Kalpesh/Project/IP_cam/sdk/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6/output/build/webrtc-audio-processing-0.3.1/.stamp_built] Error 2
make[1]: Leaving directory '/home/capuf/Documents/Kalpesh/Project/IP_cam/sdk/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6'
make: *** [Makefile:617: buildroot] Error 2
make: Leaving directory '/home/capuf/Documents/Kalpesh/Project/IP_cam/sdk/luckfox-pico/sysdrv'
[build.sh:error] Running build_rootfs failed!
[build.sh:error] exit code 2 from line 856:
[build.sh:info] make rootfs -C ${SDK_SYSDRV_DIR}
So is it some core issue or am I missing something please give some solution or some hint

Re: error building images while enabling gstreamer webrtcdsp plugin

Posted: 2025-09-26 11:15
by Crocodile
Hello, this issue arises because the default uclibc cross-compilation tool does not support the cmath library. Switching to the glibc cross-compilation tool SDK requires many modifications and cannot correctly compile the media library. You can try using glibc to compile Buildroot, and then replace the uclibc media library in the system with the glibc library from the RKMPI Demo GitHUB repository.