Page 1 of 1

[SOLVED] Cross-Compiling / Script

Posted: Sun May 12, 2013 9:21 am
by last_witness
Hi guys,

i want to cross-compile Qt5 on Linux Mint to develop & deploy on RPi.
For this, i took this script: 'http://gitorious.org/bakeqtpi'.

$ ./bakeqtpi.bash -- raspbian /home/myname/Downloads/201302-09-wheezy-raspbian.img
(I downloaded the raspbian-image manually and unzipped it)

A few hours later, everything compiled successful - great!

Then i opened QtCreator and added the toolchain (add GCC - /home/myname/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++) - works!

After that i tried to add QtVersion: (add: /usr/local/qt5pi/bin/qmake), but the following label appears: Qt version is not properly installed.

qt-project.org says:
---Qt version not properly installed---
You need to keep the SD card image mounted during development!
If QtCreator still reports this after mounting the SD card image, then you may need to create the directories missing from
/mnt/rasp-pi-rootfs/usr/local/qt5pi/
or whatever the mount path is (these will probably include bin, translations, and so on). You can create empty directories using the mkdir command.

What does that mean?
I also manually mounted the image the following way
$sudo mkdir /mnt/rasp-pi-rootfs
$sudo mount -o loop,offset=62914560 /home/myname/Downloads/2013-02-09-wheezy-raspbian.img /mnt/rasp-pi-rootfs

but nothing happens, the error message still appears :-(
Can anyone help me / tell me whats wrong with it?

Thanks!

Re: Cross-Compiling / Script

Posted: Sat Jun 08, 2013 11:05 am
by last_witness
This great tutorial from ics solved my problems :D

http://www.ics.com/blog/building-qt-5-r ... bMPxBWzCD4