Closed kt10aan closed 10 years ago
Qt5_DIR
cannot be a collection of dirs, it should be a single directory, just the first one should work: /usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5
As an alternative, you can try to set (or append) the CMAKE_PREFIX_PATH
environment variable to /usr/local/Qt/5.3.1/gcc_64
I tried /usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5 before I tried the collection of dirs. It was not working, complaining about missing packages. The CMAKE_PREFIX_PATH solution didnt work either :(. All this on stock debian wheezy. Cmake was from the backports, 2.8.11.1, in case it matters. Also, even the env variable Qt5_DIR is set (and bashrc sourced etc etc) and i can view it with echo $Qt5_DIR, when ccmake starts, it states Qt5_DIR as not found. Shouldn't it have as a value the value of $Qt5_DIR?
I had some progress by checking the AddOns during Qt installation. Now in cmake configure I get the error
CMake Error at /usr/local/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
"/usr/local/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/local/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:31 (_qt5_Gui_check_file_exists)
/usr/local/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:58 (_qt5gui_find_extra_libs)
/usr/local/Qt/5.3/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:143 (include)
/usr/local/Qt/5.3/gcc_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:88 (find_package)
/usr/local/Qt/5.3/gcc_64/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package)
CMakeLists.txt:68 (find_package)
I had the same problem, which is also discussed here:
http://qt-project.org/forums/viewthread/44605
It seems to be a problem with the installer script in qt. I solved it on Ubuntu 13.10 by installing libegl1-mesa-dev:
apt-get install libegl1-mesa-dev
Thanks @lornat75! Installing libegl1-mesa-dev worked. Maybe the package should added in the README.md instructions.
done!
Hi,
After happily using the qtguis in debian testing, I am trying to compile the qt guis in Debian Stable. I have install Qt through the Qt project website and placed it in /usr/local/Qt.
I check in the top level CMakeLists.txt of qtyarp what cmake files are needed and I setup an variable Qt5_DIR in my bashrc:
/usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5:/usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5Core:/usr/local/Qt/ 5.3.1/gcc_64/lib/cmake/Qt5Widgets:/usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5Quick:/usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5Qml:/usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5Multimedia:/usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5Xml:/usr/local/ Qt/5.3.1/gcc_64/lib/cmake/Qt5PrintSupport:/usr/local/Qt/5.3.1/gcc_64/lib/cmake/Qt5Network
But I do get: CMake Error at cmake/FeatureSummary.cmake:537 (message): feature_summary() Error: REQUIRED package(s) are missing, aborting CMake run.
The same happens if I enter the above collection of paths in the Qt5_DIR in ccmake.
Are there any more Qt5* paths I should include?
Or even better, is it possible for Cmake to go through these packages automatically if the user just sets up the Qt5_DIR variable to the top level Qt5 install directory (in this case, /usr/local/Qt).
Thanks, Kostas