Hi, I want to add mcproxy to RDKB, but when I compile it, it showed that it cannot find some library.
| arm-rdk-linux-gnueabi-g++ main.o hamcast_logging.o mc_socket.o addr_storage.o mroute_socket.o if_prop.o reverse_path_filter.o proxy.o sender.o receiver.o mld_receiver.o igmp_receiver.o mld_sender.o igmp_sender.o proxy_instance.o routing.o worker.o timing.o check_if.o check_kernel.o membership_db.o querier.o timers_values.o interfaces.o def.o simple_mc_proxy_routing.o simple_routing_data.o scanner.o token.o configuration.o parser.o interface.o -lpthread -L/home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot/usr/lib -L/home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot/lib -L/home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot/usr/lib/arm-rdk-linux-gnueabi/9.3.0 -L. -o mcproxy | /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crt1.o: No such file or directory | /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crti.o: No such file or directory | /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crtbegin.o: No such file or directory | /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crtend.o: No such file or directory | /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crtn.o: No such file or directory | /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open /lib/libc.so.6: No such file or directory | /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open /usr/lib/libc_nonshared.a: No such file or directory | /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open /lib/ld-linux-armhf.so.3: No such file or directory
I have found some solution that set sysroot as "--sysroot=${STAGING_DIR_TARGET}" where STAGING_DIR_TARGET is /toolchain/install/directory/sysroots/ in CFLAG, but it seems not work. Is there anything I need to take care in bb file or Makefile?
Hi Unknown User (deepika.b) , According to mcproxy github, mcproxy do not have configure.ac, it only use qmake to generate makefile. Furthermore, I have found the solution by adding some LD flags and LIBS directory.
5 Comments
ufs
I want to add mcproxy to RDKB, but when I compile it, it showed that it cannot find some library.
| arm-rdk-linux-gnueabi-g++ main.o hamcast_logging.o mc_socket.o addr_storage.o mroute_socket.o if_prop.o reverse_path_filter.o proxy.o sender.o receiver.o mld_receiver.o igmp_receiver.o mld_sender.o igmp_sender.o proxy_instance.o routing.o worker.o timing.o check_if.o check_kernel.o membership_db.o querier.o timers_values.o interfaces.o def.o simple_mc_proxy_routing.o simple_routing_data.o scanner.o token.o configuration.o parser.o interface.o -lpthread -L/home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot/usr/lib -L/home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot/lib -L/home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot/usr/lib/arm-rdk-linux-gnueabi/9.3.0 -L. -o mcproxy
| /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crt1.o: No such file or directory
| /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crti.o: No such file or directory
| /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crtbegin.o: No such file or directory
| /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crtend.o: No such file or directory
| /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open crtn.o: No such file or directory
| /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open /lib/libc.so.6: No such file or directory
| /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open /usr/lib/libc_nonshared.a: No such file or directory
| /home/willy/173/21_3/rdkm/build-brcm93390slmwvg/tmp/work/cortexa15hf-neon-vfpv4-rdk-linux-gnueabi/mcproxy/1.1.0-r0/recipe-sysroot-native/usr/bin/arm-rdk-linux-gnueabi/../../libexec/arm-rdk-linux-gnueabi/gcc/arm-rdk-linux-gnueabi/9.3.0/ld: error: cannot open /lib/ld-linux-armhf.so.3: No such file or directory
I have found some solution that set sysroot as "--sysroot=${STAGING_DIR_TARGET}" where STAGING_DIR_TARGET is /toolchain/install/directory/sysroots/ in CFLAG, but it seems not work.
Is there anything I need to take care in bb file or Makefile?
Thanks
Deepika Ganapathi Bhat
Hi Unknown User (ufs)
Could you share us the changes done for adding mcproxy and mcproxy recipe file. we will check from our end and will update you.
ufs
Hi Unknown User (deepika.b)
Please check attachments.
And mcproxy source code is I downloaded it from github then put it in downloads folder.
mcproxy.bbMakefilerdk-generic-broadband-image.bbappend
Thanks
Deepika Ganapathi Bhat
Hi Unknown User (ufs)
Sorry for the delayed response, could you provide us the configure.ac file and mcproxy.conf file ,also which version you are using ( V1.1 or V1.0)
ufs
Hi Unknown User (deepika.b) ,
According to mcproxy github, mcproxy do not have configure.ac, it only use qmake to generate makefile.
Furthermore, I have found the solution by adding some LD flags and LIBS directory.
Thanks for your response.