the opengl functionality tests failed
-
Hi Qters,
When i configure qt-everywhere-opensource-src-5.9.0. using ubuntu virtual machine ,
the error occur :
the opengl functionality tests failed
You might need to modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platformI have install opengl :
sudo apt-get install build-essential
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install libglut-devNow i do not know how to
modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2Can you provide any clues ?
Thanks in advance!
-
how to add -v?
-
@vincent365 said in the opengl functionality tests failed:
how to add -v?
You are compiling Qt from source, right? The first step is to call configure. So, you need to add '-v' flag there:
configure -v [other config options you use for building Qt, like -confirm-license -nomake examples etc.]
I suspect you miss some OpenGL stuff. Try calling:
sudo apt-get build-dep qt5-default
-
ees.o .obj/uncompr.o .obj/zutil.o
make[3]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src/tools/bootstrap'
make[2]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase'
Makefile:72: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2when I crossing-build the source it show these errors. Do you kown it?
-
@vincent365 said in the opengl functionality tests failed:
ees.o .obj/uncompr.o .obj/zutil.o
make[3]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src/tools/bootstrap'
make[2]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase'
Makefile:72: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2when I crossing-build the source it show these errors. Do you kown it?
This output does not show the error message, please look for it.
Also, please don't steal somebody else's thread, your issue is probably unrelated to what liubbc wrote about.
-
I am also getting same error while compiling qt-everywhere-src-5.12.12 on CetnOS 7
Tried to get more logs with ./configure -v optionERROR: 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.
I already installed : yum install mesa-libGL-devel mesa-libGLU-devel
Still same error -
@jsulm checked config log which has multiple dependency errors:
/root/tmp/qt-everywhere-src-5.12.12/qtdeclarative/config.tests/d3d12/d3d12.cpp:40:19: fatal error: d3d12.h: No such file or directory
/root/tmp/qt-everywhere-src-5.12.12/qtlocation/config.tests/winrt/main.cpp:30:28: fatal error: windows.system.h: No such file or directory
/root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/alsa/alsatest.cpp:29:28: fatal error: alsa/asoundlib.h: No such file or directory
/root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/khr/khr.cpp:29:29: fatal error: KHR/khrplatform.h: No such file or directory
/root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/re2/re2.cpp:29:21: fatal error: re2/re2.h: No such file or directory
/root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/snappy/snappy.cpp:29:20: fatal error: snappy.h: No such file or directoryto resolve it I installed below packages but no luck
libvkd3d-devel kf5-kwindowsystem-devel alsa-lib-devel pcre2-devel snappy-devel
-
@KiranS said in the opengl functionality tests failed:
but no luck
Still same errors?
I suggest to run configure from clean state (new build folder). -