# NX softbag **Repository Path**: lixuejiangit/nx-softbag ## Basic Information - **Project Name**: NX softbag - **Description**: ceres protobuf ... - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-03 - **Last Updated**: 2022-03-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README https://www.cnblogs.com/tengzijian/p/15057379.html > 背景 > 官网 https://www.boost.org/users/download/ > 尝试解决 > 1. 重新下载 boost 1.74.0,编译安装 > 问题依旧 > 2. 手动删除安装的头文件和库 > sudo rm -f /usr/local/lib/libboost* > sudo rm -rf /usr/local/include/boost > 3. 删除 /usr/local/lib/cmake 中残留文件 > sudo rm -rf /usr/local/lib/cmake/*-1.76.0* > 执行完毕之后,删除 vsomeip 的 build 目录,重新编译安装,搞定。 > https://blog.csdn.net/u011641865/article/details/73498533 > 查看boost版本号 > vi /usr/include/boost/version.hpp > wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz > tar zxvf boost_1_64_0.tar.gz > cd boost_1_64_0.tar.gz > ./bootstrap.sh --with-libraries=all --with-toolset=gcc ##--with-libraries指定编译哪些boost库,all的话就是全部编译,只想编译部分库的话就把库的名称写上,之间用 , 号分隔即可,可指定的库下面介绍。--with-toolset指定编译时使用哪种编译器,Linux下使用gcc即可,如果系统中安装了多个版本的gcc,在这里可以指定gcc的版本,比如--with-toolset=gcc-4.4 > 命令执行完后看到如下所示即为成功: > Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2 > Detecting Python version... 2.6 > Detecting Python root... /usr > Unicode/ICU support for Boost.Regex?... not found. > Generating Boost.Build configuration in project-config.jam... > Bootstrapping is done. To build, run: > ./b2 > To adjust configuration, edit 'project-config.jam'. > Further information: > - Command line help: > ./b2 --help > - Getting started guide: > http://www.boost.org/more/getting_started/unix-variants.html > - Boost.Build documentation: > http://www.boost.org/build/doc/html/index.html > 编译 > ./b2 toolset=gcc > 1 > 安装boost > ./b2 install --prefix=/usr ##--prefix=/usr用来指定boost的安装目录,不加此参数的话默认的头文件在/usr/local/include/boost目录下,库文件在/usr/local/lib/目录下。这里把安装目录指定为--prefix=/usr则boost会直接安装到系统头文件目录和库文件目录下,可以省略配置环境变量。 > 1 > 最后,如果安装后想马上使用boost库进行编译,还需要执行一下这个命令: > ldconfig >