Problem installing on RedHat 8, can't find libGL.so
-
wrote on 9 Mar 2023, 16:24 last edited by
Hi, I'm trying to get started with Qt but have hit a roadblock on installation on my RHEL8 system. When running the ../qt5/configure script exactly as shown in the instructions, I'm getting the following error.
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.The config.log file shows the following:
None of [libGL.so libGL.a] found in [] and global paths.
I have verified that libGL.so is indeed present in /usr/lib64 and I added a link to it in /usr/lib in an attempt to have it be seen. I have also tried adding the QMAKE_LIBDIR_OPENGL and QMAKE_LIBDIR_OPENGL_ES2 macros to the
qtbase/mkspecs/linux-g++/qmake.conf file.I would appreciate some guidance on this.
Thank you!
-
Hi and welcome to devnet,
You should check the test logs, there might be more hint about what exactly failed.
-
Hi and welcome to devnet,
You should check the test logs, there might be more hint about what exactly failed.
wrote on 9 Mar 2023, 20:19 last edited by@SGaist Thank you, is that something other than the config.log file?
-
@SGaist Thank you, is that something other than the config.log file?
If memory serves well, there's a folder containing the tests and their result that should also be there.
I don't remember whether RedHat has that option but on Debian you can request for the build dependencies of a package to be installed. This allows to install everything that is needed when you want to manually build a library such as Qt that has packages for that distribution.
1/4