[SOLVED]Qt cross compile Raspberry Pi
-
I install Qt on my Raspberry Pi with thi guide "Native Build":http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi. Now i want to compile on Ubuntu 14.04 for the Pi how can i setup my Qt to compile for my Raspberry?
-
Hi and welcome to devnet,
Do you already have a cross compiler ?
-
Then have a look at the following "guide":http://qt-project.org/wiki/RaspberryPi_Beginners_guide
-
Try using bakeqtpi.bash script from git@gitorious.org:bakeqtpi/yeckels-bakeqtpi.git I've updated the script recently. Do you really need qtjsbackend? You can safely skip this step. Try compiling the base first. You can get back to the modules later, some of them need additional libraries installed on the SD card image.
-
Now i can compile for the Rapsberry Pi, but some modules are not compiled (qtimageformats, qtjsbackend, qtxmlpatterns, qtsensors, qt3d, qtgraphicaleffects, qtjsondb. Missing or empty directory)
Is it possible to change the target directory on the Raspberry? (Now it is /opt/)
-
Just go to the directory with module (eg. ~/opt/qtsdk/qtsensors) and run @git checkout@ this should help. However you don't need most of the modules anyway.
If you were using bakeqtpi.bash script than you have two directories
@QT5PIPREFIX=/usr/local/qt5pi
QT5ROOTFSPREFIX=$ROOTFS/usr/local/qt5pi@in /usr/local/qt5pi you have files (qmake) for cross-compiling on your Linux machine and in $ROOTFS/usr/local/qt5pi are runtime libraries. Is that what you want?