Qt5Gui_EGL_LIBRARY-NOTFOUND
-
I use cmake to configure the VTK for Qt creator.
pop out such kind of error, what is the problem? how to solved it?@CMake Error at /opt/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message):
The imported target "Qt5::Gui" references the file"Qt5Gui_EGL_LIBRARY-NOTFOUND"
but this file does not exist. Possible reasons include:
-
The file was deleted, renamed, or moved to another location.
-
An install or uninstall procedure did not complete successfully.
-
The installation package was faulty and contained
"/opt/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"
but not all the files it references.
Call Stack (most recent call first):
/opt/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:31 (_qt5_Gui_check_file_exists)
/opt/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:58 (_qt5gui_find_extra_libs)
/opt/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:143 (include)
/opt/Qt/5.3/gcc_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:88 (find_package)
GUISupport/Qt/CMakeLists.txt:58 (find_package)@
-
-
same problem just few seconds ago...:D
-
Seems here an half of the answer:
http://www.marshut.com/iyxush/qt-5-3-1-cmake-egl-error.htmlI will try to install the 5.3.0....
Ahahah I just tested, commenting that line with # and it works!! :D
-
hi i just changed back to qt 5.2.1, when use cmake, i give the variable value like this
@cmake -DVTK_QT_VERSION:STRING=5
-DQT_QMAKE_EXECUTABLE:PATH=/path/to/qt5.2.1-install/5.2.1/gcc_64/bin/qmake
-DCMAKE_PREFIX_PATH:PATH=/path/to/qt.5.2.1-install/5.2.1/gcc_64/lib/cmake @[quote author="ginko" date="1404829838"]same problem just few seconds ago...:D[/quote]
-
This bug has been reported https://bugreports.qt-project.org/browse/QTBUG-39859
For now they found another workaround which doesn't involve changing any file: simply install libEGL-dev. (e.g with linux MINT the package libegl1-mesa-dev avoid the error).