c - cross compiling why cant ld find shared library / how to debug further? -
im trying cross-compile , link aggregate on ubuntu arm-router , following error. in past think have been able workaround setting appropriate environment variable time not working . can me figure out why might not work:
/home/ubuntu/downloads/toolchain-arm_cortex-a9_gcc-4.9-linaro_musl-1.1.2_eabi/bin/../lib64/gcc/arm-openwrt-linux-muslgnueabi/4.9.1/../../../../arm-openwrt-linux-muslgnueabi/bin/ld:
cannot find -lpopt
however libpopt.so exists in : lrwxrwxrwx 1 root root 34 sep 10 12:46 /lib/x86_64-linux-gnu/libpopt.so -> /lib/x86_64-linux-gnu/libpopt.so.0
i set following environment variables , in order of desperation, no avail.
library_path=/lib/x86_64-linux-gnu/ ld_library_path=/lib/x86_64-linux-gnu/ path=/lib/x86_64-linux-gnu/:/usr/include/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
thinking might caused because might target architecture issue (ie maybe need libpopt.so built target of cross-compile) copied libpopt.so router ubuntu , set paths again. again no avail.
what might doing wrong?
thanks
please, please don't copying arm binaries /lib/x86_64-linux-gnu. great way mess linux installation.
instead, make directory cross-compilation dependencies, put foreign libraries there, , put directory on linker search path -l
option.
Comments
Post a Comment