[TUTO] Build Qt to cross compile for arm
-
Hi and welcome to devnet,
Are you trying to build a Qt 5 example with Qt 4 ?
-
So I am using the proper example now, it compiles, but when I run the make It says:
make: Nothing to be done for 'first'.
I have attached the entire command and response below:
sam@sam-VirtualBox:~/Downloads$ "/home/sam/Downloads/qt-everywhere-opensource-src-4.8.5/bin/qmake" '/home/sam/classwizard/classwizard.pro' -r CONFIG+=debug -spec /home/sam/Downloads/qt-everywhere-opensource-src-4.8.5/mkspecs/qws/linux-arm-gnueabi-g++
sam@sam-VirtualBox:~/Downloads$ make
make: Nothing to be done for `first'. -
Did you cross-compile Qt ? If so did you install it ?
-
-
Looks like you cross-compiled your application with Qt 4 and try to run it against Qt 5.
-
Because the Qt 4 you have installed with Raspbian is a standard Qt build for ARM not a Qt for embedded device build.
You have have to cross-compile your Qt 4 again without the embedded option.
-
I didn't say the contrary: both builds are valid. The one you have on your desktop machine is a Qt For Embedded Linux build which uses QWS while on your Raspbian you have a standard as in "desktop standard" build of Qt 4.
It depends on how you want to use your application on your Pi. If its the QWS functionality that you need then you have to install your self-built Qt 4 on the Pi.
-
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 -