1、Catch2 library not found
CMake Warnig at CMakeLists.txt:75(message):
Building Tests requested, but Catch2 library not found.
解决方法:在自己工程目录下找到finad_package(Catch2 ...,如图所示:
修改成:
2、No package 'wayland-protocols' found
如图:
使用:
sudo apt-get install wayland-protocols安装
3、编译pangolin时:contained an invalid value: "17".
编译pangolin时候报错,是cmake版本过低导致的:
CMake Error at components/pango_core/CMakeLists.txt:38 (target_compile_features):
The CXX_STANDARD property on target "pango_core" contained an invalid
value: "17".
Call Stack (most recent call first):
CMakeLists.txt:96 (include)
在cmake版本过低的情况下,这时候首先使用cmake --version来查看自己的cmake版本,如何去github下载使用低版本cmake的pangolin 如 :
git clone https://gitcode.net/mirrors/stevenlovegrove/pangolin.git
然后再重新编译就可以了!
*或者安装高版本cmake,但是我没有试,因为怕环境乱了