Is there a working guide on how to get Qt5.6 or even 5.5 built on the Raspberry Pi3?
I found several Wiki guides that seem to be incomplete in some way, the last one I tried was:
https://wiki.qt.io/RaspberryPi2EGLFS
Which was fine until I got to:
./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
I am not sure of its because of its for Pi2, but these are errors with:
The OpenGL ES 2.0 functionality test failed! You migh need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in /home/.../raspi/qtbase/mkspace/mkspecs/devices/linux-rasp-p2-g++.
I'm not sure how to move forward, thanks.
Edit, here is a bit more information:
I have a raspberry Pi 3 working:
Linux pi3 4.1.21.v7+
The first error I see is:. / configure: 3497: ./ configure: / home / simon / raspi / tools / arm-bcm2708 / gcc-linaro-arm-linux-gnueabihf-raspbian / bin / arm-linux-gnueabihf-g ++: not found
I went to:
~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
And typed: hand-linux-gnueabihf-g ++
It has not been installed, therefore: sudo apt-get install g ++ - arm-linux-gnueabihf
Installation is fine, then tried to run configure again, the same result, still unable to find arm-linux-gnueabihf-g ++
Edit 2016/06/12 ... I tried another source:
enter the link here
This also has problems, there are two libraries that are the problem:
libjpeg62-dev and libxcb-sync0-dev
Can anyone link to information that is accurate and works?
Edit 2016/06/13, After you sent the information sent by RSATom, I tried both the information on the wiki page and the Qt download, both results coincide when configure ...
Running configuration tests (step 2) ... Failed to process makepec for platform devices / linux -rasp-pi2-g ++ 'Project ERROR: compiler / home / pi / raspi / tools / arm -bcm2708 / gcc-linaro-arm-linux -gnueabihf-raspbian / bin / arm-linux-gnueabihf-g ++ not found. Check the value of the CROSS_COMPILE -device parameter. The configuration file qmake / home / pi / qtbase / mkspecs / devices / linux-rasp-pi2-g ++ / qmake.conf could not be read. Error processing project file: / dev / null
make make: * No targets specified and no makefile found. Stop. pi @ pi3: ~ / qtbase $ make install make:: * There is no rule for setting a target. Stop.
Second attempt, 2016/06/14 ...
OpenGL ES 2.0 is disabled. Failed to verify the functionality of OpenGL ES 2.0! You may need to change the library search and search paths by editing QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in / home / pi / raspi / qt 5pi / qtbase / mkspecs / devices / linux-rasp-pi.
Third attempt, 2016/06/15 ...
Ok, starting from scratch and following the directions:
https://wiki.qt.io/RaspberryPi2EGLFS
Firstly, I tested my OS on the Pi 3:
uname -a
Result:
Linux pi3 4.4.9-v7+
Then:
lsb_release -a
Result:
No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 8.0 (jessie) Release: 8.0 Codename: jessie
Having established this, I proceeded to stage 3.
Step 4, I did not read it correctly for the first time, I do not need cross-platform development, which I want to develop directly on the Pi 3.
However, I have an Oracle VirtualBox working with version 5.0.20 r106931 with a Ubuntu virtual machine, launched this current version of Ubuntu:
uname -a Linux simon-VirtualBox 3.19.0-59-generic
Completed steps 4, 5, 6.
Replaced the link in step 7 with:
wget download.qt.io/official_releases/qt/5.6/5.6.0/single/qt-everywhere-opensource-src-5.6.0.tar.gz
Then extract:
tar -zxvf qt-everywhere-opensource-src-5.6.0.tar.gz
After the fully renamed folder "qt-everywhere-opensource-src-5.6.0" to "qtbase":
mv qt-everywhere-opensource-src-5.6.0 qtbase
It then continued with step 7 after the clone command:
cd qtbase
At this point, a lot of errors appear after a few seconds of scrolling through messages that end in:
OpenGL ES 2.0 disabled. The OpenGL ES 2.0 functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
/ home / simon / raspi / qtbase / qtbase / mkspecs / devices / Linux-rasp-pi2-g ++.
4th attempt, 2016/06/18 ...
Thanks to the efforts of RSATom, something has changed.
I updated my Jessie installation using:
wget https:
Make the downloaded executable script:
chmod +x qt5_twolife_jessie_setup.sh
Run the script command:
./qt5_twolife_jessie_setup.sh
This will add a new repository to update, update the system:
sudo apt-get update sudo apt-get upgrade
Make sure you have all the necessary tools:
sudo apt-get install build-essential
Make sure you have the necessary opengl components:
sudo apt get install libgl1-mesa-dev libglu1-mesa-dev
Install qt5:
sudo apt-get install qt5-default
Update the system again:
sudo apt-get update sudo apt-get upgrade
I'm stuck here, as the system will not allow me to install qtcreator:
sudo apt-get install qtcreator
These are errors, and if I restart Pi, it will not boot, I have executed this sequence twice, and while it seems to install Qt5.5, it is not complete and blocks Pi, or at least it will not boot until the SD card will not blink again.
Now I am looking for a solution for this, to find out why Pi will not place an order after installing this update and why qtcreator will not be installed.
5th attempt, 2016/06/19 ...
Downloaded Qt5.7 source:
wget http:
Excerpts:
tar -zxvf qt-everywhere-opensource-src-5.7.0.tar.gz
Thanks dbmitch for the links:
Preparing Raspberry Pi 3
It is so frustrating that the link above looks very promising, but I cannot find a link to the mentioned Pi 3 Qt image.
2016/06/29 Found it today, it looks promising, let's try tonight: Create your own embedded Linux image
My patience is ending soon, following the instructions on the link above, I really do not think that the authors of this page have tried this with the tools available by links.
QtCreator has menu links that aren't there. Is it not easy to follow, do they want to promote the use of the product? I use the Qt environment at work every day and itโs great, but why is it so difficult to play what should be a supported platform?
2016/07/01 Sixth time lucky? ...
Work through: Step-by-step instructions
I just changed 5.6 to 5.7 on this line:
git clone git://code.qt.io/qt/qtbase.git -b 5.6
And it works ... at least I build and do 5.7 on Ubuntu 16.04, when I finish it, I will rsync it through ... I will come back and send the results.
See my answer ...