zoukankan      html  css  js  c++  java
  • ubuntu下编译boost

    目前测试在linux下编译boost的两个可行方法:1、下载发布的release版本包;2、github的编译指引。

    这里主要简单说明一下第二种方法。

    一、下载发布的源码版本包编译

    可参考http://www.cnblogs.com/oloroso/p/4632848.html

    二、github的编译指引   https://github.com/boostorg/boost/wiki/Getting-Started

    1、安装配置git工具

    安装:

    git config --global user.name "My Name"

    git config --global user.email my-email@whatever.domain

    2、git下载boost源码

    git clone --recursive https://github.com/boostorg/boost.git 这一步一定要加上--recursive递归下载boost依赖的所有库代码,要不然后续编译不成功

    3、检测依赖创建编译工具b2

    cd boost

    git checkout develop # or whatever branch you want to use

    ./bootstrap.sh  --prefix=/home/xxx/xxx 检测依赖创建编译工具b2, --prefix指定你希望安装的boost路径,默认/usr/local

    4、编译 

    ./b2 install  编译安装

    编译的时候可能会长一点,可编译成功。

  • 相关阅读:
    Zigbee安全基础篇Part.3
    Zigbee安全基础篇Part.2
    Zigbee安全基础篇Part.1
    mini2440 Nor Flash工作原理分析
    fuck the browser mode
    valgrind使用
    windows下自己常用的几个bat
    二叉树可视化
    npm的使用
    tp5的phpword使用
  • 原文地址:https://www.cnblogs.com/wisherzhang/p/6672931.html
Copyright © 2011-2022 走看看