cmake报错:CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message)...

文章目录

  • 完整报错
    • 解决办法
    • 报错原因
    • pkg-config是干什么的?
  • 执行上述命令还是会报错:
    • 报错原因:
  • 个人反思

完整报错

CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
CMakeLists.txt:99 (pkg_check_modules)

解决办法

sudo apt-get update
sudo apt-get install pkg-config

报错原因

你可能感兴趣的:(Linux,c++,开发语言)