How can I configure QT source code if it can't detect default installed OpenGl ES?
-
@SGaist, Error log:
loaded result for library config.qtbase_gui.libraries.opengl
Trying source 0 (type pkgConfig) of library opengl ...- /usr/bin/pkg-config --exists --silence-errors gl
pkg-config did not find package.
=> source produced no result.
Trying source 1 (type makeSpec) of library opengl ...
header entry 'config.qtbase_gui.libraries.opengl.headers.0' passed condition.
GL/gl.h not found in [] and global paths.
=> source produced no result.
test config.qtbase_gui.libraries.opengl FAILED
loaded result for library config.qtbase_gui.libraries.opengl_es2
Trying source 0 (type pkgConfig) of library opengl_es2 ... - /usr/bin/pkg-config --exists --silence-errors glesv2
pkg-config did not find package.
=> source produced no result.
Trying source 1 (type makeSpec) of library opengl_es2 ...
header entry 'config.qtbase_gui.libraries.opengl_es2.headers.0' passed condition.
GLES2/gl2.h not found in [] and global paths.
=> source produced no result.
test config.qtbase_gui.libraries.opengl_es2 FAILED
loaded result for library config.qtbase_gui.libraries.drm
Trying source 0 (type pkgConfig) of library drm ... - /usr/bin/pkg-config --exists --silence-errors libdrm
pkg-config did not find package.
=> source produced no result.
Trying source 1 (type inline) of library drm ...
xf86drmMode.h not found in [] and global paths.
xf86drm.h not found in [] and global paths.
=> source produced no result.
Trying source 2 (type inline) of library drm ...
=> source failed condition 'config.integrity'.
test config.qtbase_gui.libraries.drm FAILED
loaded result for library config.qtbase_gui.libraries.openvg
Trying source 0 (type pkgConfig) of library openvg ... - /usr/bin/pkg-config --exists --silence-errors vg
pkg-config did not find package.
=> source produced no result.
Trying source 1 (type makeSpec) of library openvg ...
VG/openvg.h not found in [] and global paths.
=> source produced no result.
test config.qtbase_gui.libraries.openvg FAILED
- /usr/bin/pkg-config --exists --silence-errors gl
-
What exact packages did you install for OpenGL development ?
-
Did you restart the build from a clean state after you installed the development packages ?
-
How do I do that? I'm new in C++, I came from Java. The "clean state" thing... But did some tests, openGL works well for me in the terminal...
-
Use an out of source build and nuke it if something goes wrong.
By the way, why are you trying to build from sources ? You can either use the version provided with your distribution or the pre-built version provided by the Qt Company.
-
The one provided by my distro is outdated, very outdated. I downloaded the "offline installer" because there are times I'm without internet.
-
The offline installer already provides you with a pre-built Qt.
-
How do I activate it? In tutorial they where explaining how to build from source only... From what I remember. I kinda read the readme file... And the instruction in readme file is:
./configure -prefix $PWD/qtbase <license> -nomake tests make -j 4
-
Did you actually ran the offline installer ?
-
There is no runnable binary, for what I can see. Or I don't know the name... There are many modules here.
-
@UltraBurstXD The offline installer is just one file. But offline installers are not available anymore for open source users (without commercial license). So, what exactly did you download?
-
I downloaded here: https://www.qt.io/offline-installers
-
@UltraBurstXD As I said: offline installer is just one file. Make it executable (chmod u+x OFFLINE_INSTALLER_FILE) and execute it. No need to build anything.
-
@UltraBurstXD Lets do one step after another: you downloaded the offline installer, is that correct? Like http://download.qt.io/official_releases/qt/5.12/5.12.10/qt-opensource-linux-x64-5.12.10.run
-
Yes, I did and extracted the files to home. As seen:
The archive name is qt-everywhere-src-5.15.2.tar.xz
-
@UltraBurstXD You did NOT download the offline installer, you downloaded the source code. Can you please post the exact file name you downloaded?
-
It turns out I downloaded Qt 5.15.x Source Packages... My internet data plan... And it can't configure because of OpenGL.
-
@UltraBurstXD Didn't you want to install Qt using offline installer as @SGaist suggested? So, what do you want to do now? It is much much easier to install prebuild Qt than to build it by yourself. I suggest you use offline or (better) online installer to install prebuild Qt.