我正在尝试在 ubuntu 12 上构建 AMAROK。虽然我已经安装了 Qt5,但我收到以下错误。请帮助我。
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)
答案1
您必须安装 libqtcore 4.8.2 版本。您可以从 Kubuntu Backports PPA 获取它。
添加 PPA
sudo add-apt-repository ppa:kubuntu-ppa/backports
更新软件包列表
sudo apt-get update
安装新版本的 libqtcore
sudo apt-get install libqtcore