Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Cross compiling for Raspberry problem
jorgemj last edited by
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.