我正在尝试在我的ubuntu 12中构建amarok。我已经在我的电脑中安装了Qt5和Qt4.8.1。当我试图构建时,我在Cmake中遇到了以下错误。
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find Qt4: Found unsuitable version "4.8.2", but required is at least "4.8.3" (found /usr/bin/qmake) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:313 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindQt4.cmake:1393 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:83 (find_package)
您需要使用Qt5特定的CMake函数,如Qt5 CMake文档页面上所述:
cmake_minimum_required(VERSION 2.8.11)
find_package(Qt5Core)
然后就没有涉及任何问题4了。在任何地方