[ tcmu-runner]# cmake -Dwith-glfs=false -Dwith-qcow=false -DSUPPORT_SYSTEMD=ON -DCMAKE_INSTALL_PREFIX=/usr
– The C compiler identification is GNU 7.3.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Found PkgConfig: /usr/bin/pkg-config (found version “1.5.3”)
– Checking for module ‘gio-unix-2.0’
– Package ‘gio-unix-2.0’, required by ‘virtual:world’, not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:436 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPkgConfig.cmake:602 (_pkg_check_modules_internal)
CMakeLists.txt:33 (pkg_check_modules)
– Configuring incomplete, errors occurred!
See also “/root/tcmu-runner/CMakeFiles/CMakeOutput.log”.
提示缺少Package ‘gio-unix-2.0’,但是没有找到该包。
本文详细解析了在使用CMake进行项目配置时遇到的错误,具体为找不到gio-unix-2.0模块,该模块是虚拟世界的依赖。文章深入探讨了错误发生的原因,并提供了检查和解决问题的步骤。
1582

被折叠的 条评论
为什么被折叠?



