[TUTO] Build Qt to cross compile for arm
-
What if I just created a deb package on my Linux machine, and then used that on the Pi?
Or is it better to just do the custom build? (really dont want to do that painful process)
Is this a guide I can use as a base for this build?:
http://processors.wiki.ti.com/index.php/Building_Qt_with_OpenGL_ES_accelerated_by_SGX -
Again: this is an Qt for Embedded Linux build see the
-embedded arm
configure option. Thus my question, are you going to use the X Server of your Pi ?If yes, you have to rebuild Qt without the embedded options but keep the ARM target.
If no, then one basic option is to copy the content of the cross-compiled Qt installation folder over to your Pi at the same place and you should be good to go (you can later remove stuff like the host tools headers etc.)
-
Which version of Qt are you currently using ?
-
Execute this command to install Qt in the /usr/local/Qt-4.8.5-arm/ directory : ./configure -opensource -confirm-license -prefix /usr/local/Qt-4.8.5-arm -embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++
In this step Did you create /usr/local/Qt-4.8.5-arm/ directory ? or Did created by qt creator when installitaion?
-
Hi,
I am not understood that fourth step,
Go to /home/<yourUserName>/
Execute this command to install Qt in the /usr/local/Qt-4.8.5-arm/ directory : ./configure -opensource -confirm-license -prefix /usr/local/Qt-4.8.5-arm -embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++
qt-everywhere-opensource-src-4.8.5/why beacuse,when i go /home/<username> there is no such file called (this present in installQt directory) and in /usr/local also not present the Qt-4.8.5
anyone help how to processed next..
thankyou -
-
@asha said in [TUTO] Build Qt to cross compile for arm:
so now I am not getting where to execute
execute what? configure?
"can I execute where i am getting the configure file" - configure file is part of Qt source code. So, download Qt source code, extract it to a directory, go to that directory and execute configure there... -
Hi,
Can anyone say,
what it does: fourth step
."/configure -opensource -confirm-license -prefix /usr/local/Qt-4.8.5-arm -embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++"
specially this part "embedded arm -little-endian -no-pch -xplatform qws/linux-arm-gnueabi-g++"
because,
I downloaded qt src code 5.7.1 and arm-linux-gnueabihf-gcc 6.5.0, and I found my qmake.conf file in "/home/<username>/Downloads/qt-everywhere-opensource-src-5.7.1/qtbase/mkspecs/linux-arm-gnueabi-g++"
So,now I need to configure,not getting the above path,I don't have qws directory,
can I give just ./configure for configuration?
-
@IknowQT said in [TUTO] Build Qt to cross compile for arm:
ERROR: Unknown command line option '-embedded'.
You were already told to remove such option in this post.
Please don't double post, just follow one thread with your issue.