Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Native Build Raspberry
I would like to build Qt on a raspberry and i try to follow this tuto :
it's writen we have to tweak /opt/qt5/qtbase/configure script by replacing or adding code into it.
My problem is i can't find where to paste the code in the file. do someone has already done it?
i am not sure i am openning the right file but even using grep into the repository, i can't find the line.
Hm, another wiki which recommends cloning Qt instead of using a tarball. Weird. If you want to save space, I recommend taking a look at https://download.qt.io/official_releases/qt/5.10/5.10.1/single/
Regarding the native compilation - there is a much simpler way, although it comes with some caveats. Plus, it's been a good several months since I last attempted it so YMMW.
- get Qt source code
- do not modify any config script nor mkspecs
- just run configure natively like on a desktop Linux (without -device, -device-option, CROSS_COMPILE flags etc.)
This way definitely works for qtbase (so QtCore, QtNetwork, QtGui and the like). With other modules you may be less lucky. Also, I think it only worked for XCB. For EGLFS plugin, some extra tweaking would be necessary (mkspecs - to enable the VC4 OpenGL driver and EGLFS config).
Thanks you sierdzio, i would like to use QtQuick on my raspberry, i think i would need OpenGL. i will look at your link and try this.
Ah, then you need OpenGL indeed. QML performance on xcb plugin is abysmal, EGLFS is the only way to go there.
Still the same problème :
OPENGL Test Failed
sudo apt-get install build-essential libgl1-mesa-dev