Linux cmake解析错误路径

Linux cmake解析错误路径,linux,qt,build,cmake,kde,Linux,Qt,Build,Cmake,Kde,我在我的主目录中设置了我的kdevelopment环境(框架、应用程序),并在系统范围内设置了所有qt-5.9相关内容(lib、headers等)。 现在我试图通过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/lib6

我在我的主目录中设置了我的kdevelopment环境(框架、应用程序),并在系统范围内设置了所有qt-5.9相关内容(lib、headers等)。 现在我试图通过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
中只能找到标题

这取决于您是如何安装的以及您使用的操作系统。也许你应该试试KDE Craft。我正在使用opensuseleap42.2。许多其他应用程序正在构建中,例如kmix。但是,这并不意味着您可能缺少一些
-devel
软件包。好的,谢谢,是否有任何方法可以确定缺少哪一个?似乎在suse上,没有可用的qt5 devel软件包。这可能是原因吗?