Cross-Compile Tutroials, Getting Stuck
-
Hi Everyone,
I have tried several tutorials on setting up cross-compiling for the Raspberry Pi, but ran into a brick wall every time. Here are links to two popular tutorials I have tried and a short log where things go south:
http://qt-project.org/wiki/RaspberryPi_Beginners_guide
user@ubuntuvm:~/raspberry$ tar -xf gcc-4.7-linaro-rpi-gnueabihf.tbz
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting nowhttps://www.ics.com/blog/building-qt-5-raspberry-pi
user@ubuntuvm:~/raspberry$ wget http://swap.tsmt.eu/gcc-4.7-linaro-rpi-gnueabihf.tbz
--2014-09-05 14:47:14-- http://swap.tsmt.eu/gcc-4.7-linaro-rpi-gnueabihf.tbz
Resolving swap.tsmt.eu (swap.tsmt.eu)... 5.39.84.121
Connecting to swap.tsmt.eu (swap.tsmt.eu)|5.39.84.121|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-09-05 14:47:15 ERROR 404: Not Found.Can anyone help me figure this out and get QT5 up and cross-compiling on the Raspberry Pi?
I have Ubuntu running in a VM under Windows 7 and the latest Raspberry Pi. Ideally I would like to develop under Windows, but if I need a flavor of Linux, so be it. I am a .Net developer with limited Linux experience, so this has been quite the learning curve for me.
Thanks!
Joe
-
Hi,
bq. Connecting to swap.tsmt.eu (swap.tsmt.eu)|5.39.84.121|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2014-09-05 14:47:15 ERROR 404: Not Found.The Toolchain is not present at the location and hence the error and so not downloaded. Check the size of it.
When you run the tar extract command, it will obviously fail.Try this "link":http://sourceforge.net/projects/rfidmonitor/files/crosscompilation-resources/gcc-4.7-linaro-rpi-gnueabihf.tbz/download for the toolchain. I checked the md5sum of this tar file with the one i had downloaded earlier from http://swap.tsmt.eu and it matches so they are identical.
-
Hi Joe,
try this
wget https://www.dropbox.com/s/sl919ly0q79m1e6/gcc-4.7-linaro-rpi-gnueabihf.tbzIt should work
F@b
-
You can also use the toolchain provided by raspberry pi foundation https://github.com/raspberrypi/tools.
I have managed to cross compile qt5.4 in release, compiling in debug will fail with the following error : http://pastebin.com/M5KrCN1p
Then if i use the release build, any project using QWebView will segfault (ie browser sample).
Anyone experienced this ?