我现在使用KDevelop for C在
Linux下,我想编译一个Qt4应用程序,但是当我这样做时,它会给我以下错误:
我编译:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug /home/myname/projects/First Qt projet/
这些是错误:
-- Configuring incomplete,errors occurred! CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindQt4.cmake:1200 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:3 (find_package)
我该怎么办 ?
解决方法
sudo apt-get install libqt4-core libqt4-dev libqt4-gui qt4-dev-tools
这应该为你安装qt4:/usr/lib64 / qt …从那里cmake应该能够为你拿起qt的位置.
如果命令行不是你的风格,你也可以使用那个Ubuntu包管理器.