CMake 错误“找不到“Qt5QuickControls2”提供的包配置文件”

CMake 错误“找不到“Qt5QuickControls2”提供的包配置文件”

我试图构建 vvave 音乐播放器在 Debian11/KDE 上运行cmake ..失败 - 显示以下错误:

-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:23 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

当我运行时CXX="gcc" sudo cmake ..它返回:

Installing in /usr/local. Run /home/username/vvave/build/prefix.sh to set the environment for vvave.
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 "Qt5QuickControls2"
  with any of the following names:

    Qt5QuickControls2Config.cmake
    qt5quickcontrols2-config.cmake

  Add the installation prefix of "Qt5QuickControls2" to CMAKE_PREFIX_PATH or
  set "Qt5QuickControls2_DIR" to a directory containing one of the above
  files.  If "Qt5QuickControls2" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:52 (find_package)
    

尽管安装了 Ubuntu 所需的软件包(请参阅链接的自述文件)。软件包Qt5QuickControls2也已安装。

在这里问的部分原因是仍然无法报告 vvave 的错误/问题

相关内容