top bar

Difference between revisions of "Building Boost on MacOS X"

m
Line 1: Line 1:
As of this writing, MM is using the Boost 1.40 release. There are reasonably complete instructions here: http://www.boost.org/doc/libs/1_40_0/more/getting_started/unix-variants.html But here is what I recommend:
+
As of this writing, MM is using the Boost 1.40 release. There are reasonably complete instructions here: http://www.boost.org/doc/libs/1_40_0/more/getting_started/unix-variants.html  
  
0. Download Boost and place it in your usual third party working directory as follows: (for example)
+
Briefly:
  
/Users/karl/projects/3rdparty
+
1. Download boost
 
+
2. ./bootstrap.ch, (to build the bjam tool)
1. Start a terminal session, if this directory is not already a subversion working copy, issue the following command
+
3. sudo ./bjam install
        svn co -N http://svn.boost.org/svn/boost/tags/release .
+
 
+
2. Create a text file called externals_value.definition
+
 
+
3. In that text file put exactly this key + URL:
+
 
+
        boost http://svn.boost.org/svn/boost/tags/release/Boost_1_40_0/
+
 
+
4. In order to create an uncomitted 'externals' definition in your working directory, type exactly the following command
+
 
+
        svn propset svn:externals . -F externals_value.definition
+
+
5. Still in the 3rdparty directory issue:
+
        svn up
+
 
+
6. After boost has been downloaded, to build the bjam tool, in the 3rdparty/boost directory issue:
+
        ./bootstrap.sh
+
 
+
7. Ensure that you've got write access to /usr/local. Then after the bjam.exe tool is built issue:
+
        ./bjam
+
 
+
8. Then
+
        ./bjam install
+
 
+
9. The result should be a set of headers in /usr/local/include/boost and a set of libraries in /usr/local/lib/boost
+

Revision as of 10:56, 18 November 2009

As of this writing, MM is using the Boost 1.40 release. There are reasonably complete instructions here: http://www.boost.org/doc/libs/1_40_0/more/getting_started/unix-variants.html

Briefly:

1. Download boost 2. ./bootstrap.ch, (to build the bjam tool) 3. sudo ./bjam install

© Micro-Manager : Vale Lab, UCSF 2006-2011 | All Rights Reserved | Contact