Qt5 with Qt3D on Raspberry Pi
The quality of this video is crap, but I wanted to show off that I finally managed to get Qt5 running on the Raspberry Pi, even with Qt3D (which is not included in the easy to use qtonpi prepackaged image, which incidentally is armel and not armhf so it has worse floating-point performance).
Qt5 is an absolutely awesome platform for the Raspberry Pi.
The secret is all here (warning: both BuildRoot and Qt5 will take hours to cross-compile on your x86 PC)
github.com/nezticle/RaspberryPi-BuildRoot/wiki/Walkthrough
(Note: The ./configure command in the instructions for building qtbase is missing the option "-opengl es2". After hours compiling, when it finally came time to link it complained about not being able to link libGL and I had to start all over again. The Raspbery Pi doesn't have libGL, only libGLES)
To configure QtCreator 2.5 to use the BuildRoot qmake you can follow the instructions here (these are for qtonpi. Replace /opt/qt5/bin with your BuildRoot output host/bin path):
To get QtCreator 2.5 running on your PC (I'm using 64-bit Ubuntu 12.04) with the BuildRoot version of qmake and not complain about a bad “default mkspec” you have to copy host/usr/mkspecs as staging/usr/mkspecs in your BuildRoot output directory.
QtCreator 2.5 doesn't seem to be able to create new BuildRoot/Qt5 projects properly, so you have to:
* copy the hello-qtonpi project from qtonpi
* replace all instances of hello-qtonpi with your project name
* add the BuildRoot output host/usr/bin directory to PATH (check that “which qmake” leads to the BuildRoot qmake)
* run qmake once
* load the project into QtCreator 2.5 and continue normally from there
Qt5 with Qt3D on Raspberry Pi
The quality of this video is crap, but I wanted to show off that I finally managed to get Qt5 running on the Raspberry Pi, even with Qt3D (which is not included in the easy to use qtonpi prepackaged image, which incidentally is armel and not armhf so it has worse floating-point performance).
Qt5 is an absolutely awesome platform for the Raspberry Pi.
The secret is all here (warning: both BuildRoot and Qt5 will take hours to cross-compile on your x86 PC)
github.com/nezticle/RaspberryPi-BuildRoot/wiki/Walkthrough
(Note: The ./configure command in the instructions for building qtbase is missing the option "-opengl es2". After hours compiling, when it finally came time to link it complained about not being able to link libGL and I had to start all over again. The Raspbery Pi doesn't have libGL, only libGLES)
To configure QtCreator 2.5 to use the BuildRoot qmake you can follow the instructions here (these are for qtonpi. Replace /opt/qt5/bin with your BuildRoot output host/bin path):
To get QtCreator 2.5 running on your PC (I'm using 64-bit Ubuntu 12.04) with the BuildRoot version of qmake and not complain about a bad “default mkspec” you have to copy host/usr/mkspecs as staging/usr/mkspecs in your BuildRoot output directory.
QtCreator 2.5 doesn't seem to be able to create new BuildRoot/Qt5 projects properly, so you have to:
* copy the hello-qtonpi project from qtonpi
* replace all instances of hello-qtonpi with your project name
* add the BuildRoot output host/usr/bin directory to PATH (check that “which qmake” leads to the BuildRoot qmake)
* run qmake once
* load the project into QtCreator 2.5 and continue normally from there