Unsolved Cross-compiling QT5.7 for linux ARM setting linker path
-
Actually, I have to revise my question.
qmake is able to be built, but at the runtime when I try to launch the QT compilation, it ask for/lib/ld-linux.so.3: No such file or directory
-
-
This post is deleted! -
@jsulm
It says :not a dynamic executable
I guess I am missing a flag or something at compile time, I tried a lot of combinaison for including my "fakeroot" folder. I tought that it was the point of having --sysroot in the configure script
-
What do you get if your call
file qmake
? -
@SGaist - Thanks for your quick reply
qmake: ERROR: cannot open `qmake' (No such file or directory)
I am still looking for a "missing flag" in the conf file ... is there anywhere else I should look ?
I just had a tought,
I want to cross-compile QT to have the libraries on my embedded platform. Am I doing this wrong by building qmake with the cross-compiler app ?
since qmake is used to build the makefile for QT, I have to run it on my host system right ? So, that being said, do I need to have qmake cross-compiled ? sor sure it won't work on my systemmy reference was :
Building Qt for Embedded Linux
but it says that this is obsolete and it's only good for QT4, I bet this is good for QT5 as well ??( This is my first time compiling QT )
-
Ok... When someone suggest to call
ldd
on a file, you are supposed to give the full path that file or change your current folder to where that file is otherwise the command won't work. The same forfile
.As for your qmake.conf i'd remove the
QT_SYSROOT
assignment, it should be done for you through the configure script and the parameters you give it.qmake is a host tool that is not cross-compiled.
-
The file and ldd worked, but the binary was a arm compiled binary, that's why it wasn't working. May I suggest updating the http://wiki.qt.io/Building_Qt_for_Embedded_Linux#The_Host_Build to specify that it's still the actual way to to it, even in qt5
@SGaist said in Cross-compiling QT5.7 for linux ARM setting linker path:
qmake is a host tool that is not cross-compiled.
I figured that out today !! I am still wondering why it is trying to compile qmake with the cross compiler when I make the second configure ( the one with the option -device CROSSC_COMPILE= ....
-
Are you doing your second call to configure in a clean state ?
-
The article you mention is really specific to Qt 4. So no, it should not be modified. There's even a link at the top for Qt 5.