一、Cmake Ubuntu安装教程:
1.下载最新的Linux x86_64版本的cmake-3.21.3-linux-x86_64.tar.gz安装包
2. 按照下列步骤进行Bash命令操作,即可添加安装完成cmake
1 mkdir /tools/cmake-3.21.3 2 sudo mv ./cmake-3.21.3-linux-x86_64/* /tools/cmake-3.21.3/ 3 sudo ln -sf /tools/cmake-3.21.3/bin/* /usr/bin/
3. 检查Cmake是否安装完成
cmake --version
结果如下所示:
Reference:
https://blog.kitware.com/cross-compiling-for-raspberry-pi/
cmake交叉编译
https://zhuanlan.zhihu.com/p/100367053
https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/CrossCompiling
.pc文件:
https://blog.csdn.net/HKjinzhao/article/details/3858992