本文主要是介绍【环境搭建】Ubuntu16 C++,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1. CMake
-
下载软件包
下载地址
-
解压文件
-
检查依赖
./bootstrap
Q1
:CMake Error at Utilities/cmcurl/CMakeLists.txt:647 (message): Could not find OpenSSL. Install an OpenSSL development package or configure CMake with -DCMAKE_USE_OPENSSL=OFF to build without OpenSSL.
- 安装ssl
sudo apt-get install libssl-dev
- 安装ssl
-
编译
make -j8
-
安装
sudo make install
2. boost
- 下载软件包
下载地址
- 解压压缩包
tar -zxvf xxx.tar.gz
- 编译
./bootstrap.sh --with-libraries=all --with-toolset=gcc
./b2
sudo ./b2 install
删除旧有的环境
sudo rm -f /usr/local/lib/libboost*
sudo rm -rf /usr/local/include/boost
sudo rm -rf /usr/local/lib/cmake/*-1.76.0*
3. pcl
下载地址
Make Error at /usr/local/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
OPENGL_INCLUDE_DIR)
sudo apt-get install libgl1-mesa-dev mesa-common-dev libglu1-mesa-dev
4. gdb
这篇关于【环境搭建】Ubuntu16 C++的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!