Thursday, 23 August 2012

How to configure/install Boost C++ libraries

Windows

Using Windows Server 2003 r2 with SP2. 1
  1. Download Boost from, fro example, here http://sourceforge.net/projects/boost/files/boost/1.50.0/ and unzip to an appropriate location eg. C:\boost. 2, 3
  2. To build the Boost libraries first you have to build the tool that builds Boost the boost.build engine bjam. From the command line go to the boost folder eg. C:\boost and execute bootstrap.
    When successfully complete the command line should look something like as follows:
  3. Now we can build the Boost libraries. From the command line go to the boost folder eg. C:\boost and execute b2.
    The  boost.build engine will now build all the libraries, this will take some time...
That is it, boost is built and ready for development use.

Notes

  1. These instructions should be the same for all versions of Windows from XP 32bit to Windows 7 64bit.
  2. If you have an SVN client installed  just open the command line and type the following:
    svn co http://svn.boost.org/svn/boost/tags/release/Boost_1_50_0/ c:\boost
  3. Where 1.50.0 was the latest stable release of boost at the time of writing and C:\boost is the chosen destination folder.

References

http://www.boost.org

No comments:

Post a Comment