Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

How to build boost 1_57_0 Ubuntu platform

micfan edited this page Nov 11, 2014 · 4 revisions

PPA安装

It's a good idea to open https://github.com/avplayer/avim/blob/master/.travis.yml, follow it install Boost with PPA. Also, you can try bellow:

$ sudo apt-get install libboost1.55-all-dev

源码安装

依赖


libssl-dev
gcc-4.9
g++-4.9
cmake
make
lib64bz2-dev
python-dev

sudo apt-get install libssl-dev gcc g++ gcc-4.9 g++-4.9 cmake make lib64bz2-dev python-dev

源码

sudo mkdir /opt/download
sudo wget http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.gz /opt/download/
sudo cd /opt/download/
sudo tar -vxf boost_1_57_0.tar.gz

编译

cd /opt/download/boost_1_57_0
./bootstrap.sh
./b2
./bjam -j8 variant=release link=static runtime-link=shared threading=multi install --layout=system \
    --prefix=/usr --with-system --with-thread --with-locale --with-atomic --with-coroutine \
    --with-context --with-filesystem --with-program_options --with-regex --with-date_time --with-timer \
    --with-chrono --with-python

Developers Help

Clone this wiki locally