Easy way to install Qt 5.10 on Raspberry Pi ?
I've managed to install Qt 5.7.1 by using
apt-get install qt5-default
Now I need some features in Qt 5.10
Is there an easy way upgrade or install 5.10 without compiling the source ?
Tried to compile the source before but never been successful.
Hi and welcome to devnet,
No you can't avoid compiling. However if you are developing directly on the Pi you can natively compile Qt which might be easier than cross-compiling.
Hi SGaist, thanks for the quick reply.
There is a binary for 5.7.1 is there any reason why there is no binary for 5.10 ?
I've tried to follow the instruction to compile for 5.10 with the latest Raspbian Stretch but there is a problem with some library's not found.
It would be so much easier if I can just install 5.10 without doing all the compilation.
Because Raspbian is a Debian derivative and AFAIK they follow their packages versions. If you want something as new as 5.10 then you'll have to either wait for the Raspbian folks to provide it or build it yourself.
What are the missing libraries ?
I'm using the instruction from this site:
I get this errors:
ERROR: Feature 'opengles2' was enabled, but the pre-condition 'config.win32 || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.
ERROR: Feature 'eglfs' was enabled, but the pre-condition '!config.android && !config.darwin && !config.win32 && features.egl' failed.
ERROR: The OpenGL functionality tests 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 the mkspec for your platform.
Tried to post a message on their site but somehow the message got deleted.
JonB last edited by
From your link, in the comments section at the bottom, others are havingexcatly the same problem, two months ago. Did you read it all? Your error message is reported in https://stackoverflow.com/questions/44639014/qt-cross-compilation-for-raspberry-pi-cannot-find-glesv2. https://stackoverflow.com/a/44648097/489865 claims to solve.
MStephenO last edited by
@Dave_uk: I had some difficulty with this myself, and the stackoverflow link didn't fix it in my case. Installed libgles2-mesa and libgles2-mesa-dev in addition after updating my mkspecs as suggested on the stackoverflow post (https://stackoverflow.com/questions/44639014/qt-cross-compilation-for-raspberry-pi-cannot-find-glesv2/44648097#44648097) and doing an rpi-update. This fixed the OPENGL errors for me.
kylin last edited by
@Dave_uk Hello,now are you ok?