Cross Compiling for BeagleBone Black libm.so.6 not found, but it is there.



  • Hi,

    Using Linaro 5.1 on Ubuntu 14.04 to cross compile for BBB, with sysroot pointing to the BBB root filesystem. When I run configure it complains that ld can't find libm.so.6 even though it is in the linaro libc/lib folder as well as in the root folder for the BBB under /lib/arm-linux-gnueabihf/

    I ve spent 2 days trying all kinds of things and nothing seems to work, can someone help?



  • You should use -sysroot, and add several links
    ln -sf /mnt/bbb-rootfs/lib/arm-linux-gnueabihf/librt.so.1 /mnt/bbb-rootfs/usr/lib/arm-linux-gnueabihf/librt.so
    ln -sf /mnt/bbb-rootfs/lib/arm-linux-gnueabihf/libdl.so.2 /mnt/bbb-rootfs/usr/lib/arm-linux-gnueabihf/libdl.so
    ln -sf /mnt/bbb-rootfs/lib/arm-linux-gnueabihf/libglib-2.0.so.0 /mnt/bbb-rootfs/usr/lib/arm-linux-gnueabihf/libglib-2.0.so
    ln -sf /mnt/bbb-rootfs/lib/arm-linux-gnueabihf/libm.so.6 /mnt/bbb-rootfs/usr/lib/arm-linux-gnueabihf/libm.so

    See https://wiki.qt.io/BeagleBone_Black_Beginners_Guide


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.