Install Boost

English

Intall boost on Mac 

Install boost on Mac using following command;

$ ./bootstrap.sh --prefix=/usr/local/boost-1_62 --with-toolset=clang
$ sudo ./b2 -j4 toolset=clang cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++" -s BZIP2_SOURCE=~/src/bzip2-1.0.6 install

Install boost on Linux

QtPlatz file io require bzip2 iostream, thus boost_bzip2 should be built.  As of July 2015, on Debian 8.1 multiarch environment, apt-get install libbz2-dev:armhf replases host system libbz2 that result bzip2 host command will fail.  In order to avoid host-system library break, build boost_bzip2 library with source code as below;

cd ~/src;
wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
tar xvf bzip2-1.0.6.tar.gz

Install boost on 32bit Linux

./bootstrap.sh
sudo ./b2 cxxflags="-std=c++11" -s BZIP2_SOURCE=~/src/bzip2-1.0.6 install

Install boost on 64bit Linux

./bootstrap.sh
sudo ./b2 address-model=64 cflags=-fPIC cxxflags="-fPIC -std=c++11" -s BZIP2_SOURCE=~/src/bzip2-1.0.6 install

 

User login