Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cross Compiling for BeagleBone Black libm.so.6 not found, but it is there.
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 965 Views
  • 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 Offline
    G Offline
    gtenrreiro
    wrote on last edited by
    #1

    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
    2
    • D Offline
      D Offline
      dataved
      wrote on last edited by
      #2

      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
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved