我在我的主目录中设置了我的kdevelopment环境(框架,应用程序),并在系统范围内设置了所有qt-5.9相关的东西(libs,header等)。
现在我尝试通过cmake安装akonadi-17.04
。然而,这会因以下错误而崩溃:
$ cmake -DCMAKE_INSTALL_PREFIX=~/Dev/kf5-frameworks-5.36 -DCMAKE_MODULE_PATH=~/Dev/kf5-frameworks-5.36 ..
...
CMake Error at /usr/lib64/cmake/Qt5Sql/Qt5SqlConfig.cmake:27 (message):
The imported target "Qt5::Sql" references the file
"/usr/include/qt5/QtSql/5.9.1"
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/lib64/cmake/Qt5Sql/Qt5SqlConfig.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/lib64/cmake/Qt5Sql/Qt5SqlConfig.cmake:71 (_qt5_Sql_check_file_exists)
CMakeLists.txt:40 (find_package)
-- Configuring incomplete, errors occurred!
为什么cmake会解析为/usr/include/qt5/QtSql/5.9.1
?在/usr/include/qt5/QtSql
中只能找到标题