![如何将“Qt5QmlModels”的安装前缀添加到 CMAKE_PREFIX_PATH](https://linux22.com/image/1184314/%E5%A6%82%E4%BD%95%E5%B0%86%E2%80%9CQt5QmlModels%E2%80%9D%E7%9A%84%E5%AE%89%E8%A3%85%E5%89%8D%E7%BC%80%E6%B7%BB%E5%8A%A0%E5%88%B0%20CMAKE_PREFIX_PATH.png)
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by "Qt5QmlModels" with
any of the following names:
Qt5QmlModelsConfig.cmake
qt5qmlmodels-config.cmake
Add the installation prefix of "Qt5QmlModels" to CMAKE_PREFIX_PATH or set
"Qt5QmlModels_DIR" to a directory containing one of the above files. If
"Qt5QmlModels" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:621 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/Parveen_Linphone/linphone-sdk/build/WORK/desktop/Build/ms2/CMakeFiles/CMakeOutput.log".
答案1
对于现代 Ubuntu 系统(21.04 及更高版本),你必须安装对应包经过
sudo apt-get install qtdeclarative5-dev
还应该注意的是,Linphone 是为 Ubuntu 打包的,请参阅packages.ubuntu.com 上的搜索结果。