Boost libraries include many benefits for C++ programmers, such as shared_ptr, arrays, serialization, I/O etc. , which most of the time causes troubles. So it becomes crucial to invest time to learn Boost libraries for a C++ programmer to use these benefits and advantages.
Most Linux distributions come with pre-installed Boost libraries. However, they do not always contain the latest version of Boost libraries.
In order to build and start using on Ubuntu OS following steps can be followed :
1- download boost_1_55_0.zip file from
http://sourceforge.net/projects/boost/files/boost/1.55.0/
2- unzip your downloaded boost_1_55_0.zip file
$ unzip boost_1_55_0.zip
3- get required dependencies which are going to help you during build process
$ sudo apt-get update
$ sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev
4- change your location into your unzipped boost_1_55_0 folder from terminal
$ cd boost_1_55_0/
5- start bootstrapping
$ ./bootstrap.sh --prefix=/usr/local
6- start building boost libraries
$ sudo ./b2
7- after waiting for a time-period all the Boost libraries are built successfully.
"The Boost C++ Libraries were successfully built!"
8- now Boost header files and libraries are ready for being used in your C++ applications.
No comments:
Post a Comment