Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Installation and Deployment
    2
    2
    695
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gtenrreiro last edited by

      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?

      1 Reply Last reply Reply Quote 2
      • D
        dataved last edited by

        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

        1 Reply Last reply Reply Quote 1
        • First post
          Last post