我正在尝试在Ubuntu 13.10上构建sdrangelove,它需要Qt 5并使用CMake作为其构建系统。我需要安装什么软件包才能为其提供在此请求的文件?
有很多*qt5*
软件包,我尝试安装有前途的软件包,但没有任何效果。我发现的所有讨论都可以使事情顺利进行,或者正在谈论编写CMake构建规则,而不是执行它们。我对Debian / Ubuntu包装的组织没有太多经验。
CMake Error at CMakeLists.txt:14 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Core"
(requested version 5.0) with any of the following names:
Qt5CoreConfig.cmake
qt5core-config.cmake
Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.
我缺少的两件事:
在构建失败之后,我必须删除CMakeCache.txt
(或简单地清除构建目录)。否则,cmake
即使已安装所需的软件包,也会报告相同的错误。
提供*.cmake
配置文件的软件包具有格式名称qt*5-dev
,例如,针对我的问题中的错误qtcore5-dev
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句