如何将“Qt5QmlModels”的安装前缀添加到 CMAKE_PREFIX_PATH

如何将“Qt5QmlModels”的安装前缀添加到 CMAKE_PREFIX_PATH
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 上的搜索结果

相关内容