Important: Please read the Qt Code of Conduct -

Cross compiling for Raspberry problem

  • 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 -spec linux-arm-gnueabi-g++

    then, when linking, I found this command:

    arm-linux-gnueabi-g++ -Wl,-O1 -shared -Wl,-soname, -o 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 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.

Log in to reply