Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross compiling for Raspberry problem
Forum Updated to NodeBB v4.3 + New Features

Cross compiling for Raspberry problem

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 526 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jorgemj
    wrote on last edited by
    #1

    Hi,

    I am trying to compile some projects for the Raspberry platform.
    It compiles fine until it has to link. At this point there is a problem because the qmake includes as library path "/usr/lib64" that is not correct because of the architecture.

    I execute qmake as:

    qmake Utils.pro -spec linux-arm-gnueabi-g++

    then, when linking, I found this command:

    arm-linux-gnueabi-g++ -Wl,-O1 -shared -Wl,-soname,libData.so.1 -o libData.so.1.0.0 release/SaveValue.o release/SaveData.o release/BufferLinux.o release/LinealBuffer.o release/StoringInfo.o release/Data.o -L/usr/lib64 -lpthread

    And the error is that libm.so found in /usr/lib64 is of wrong architecture.
    If I remove /usr/lib64 from previous command it links correctly.

    My question is, where is added the wrong path in the qmake proccess? I have checked the mkspecs and looked for this path but I haven't found anything.

    Thanks in advance.
    Jorge

    1 Reply Last reply
    0

    • Login

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