Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to build Boost as static libraries under Mountain Lion and XCODE 4.6
    text
    copied!<p>I'm trying to install and use Boost 1_53_0 on MAC OS X Mountain Lion and use it with the latest XCODE 4.6 I want to port a small MS VS MFC C++ app. I developed on Windows to MAC.</p> <p>Specifically I need to install and build boost as static libraries. I'm completely new to programming on the MAC. I understand that XCODE now uses LLVM Clang, with libc++ and not GCC. I've used GCC some on Linux.</p> <p>I started following the instructions at: <a href="http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html" rel="nofollow">http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html</a></p> <p>but quickly ran into trouble. Does anyone have detailed instructions for how to install and compile boost statically under Mountain Lion and XCode 4.6?</p> <p>Below is the terminal input and output showing how far I got.</p> <p>Thanks.</p> <p>Terminal IO:</p> <pre><code>./bootstrap.sh --with-bjam=BJAM --with-toolset=TOOLSET users-Mac-mini:boost_1_53_0 user$ ./bootstrap --with-bjam=BJAM --with-toolset=TOOLSET -bash: ./bootstrap: No such file or directory users-Mac-mini:boost_1_53_0 user$ ./bootstrap.sh --with-bjam=BJAM --with-toolset=TOOLSET -n Detecting Python version... 2.7 -n Detecting Python root... /System/Library/Frameworks/Python.framework/Versions/2.7 -n Unicode/ICU support for Boost.Regex?... not found. Generating Boost.Build configuration in project-config.jam... Bootstrapping is done. To build, run: ./b2 To adjust configuration, edit 'project-config.jam'. Further information: - Command line help: ./b2 --help - Getting started guide: &lt;had to remove link in order to post question&gt; - Boost.Build documentation: &lt;had to remove link in order to post question&gt; users-Mac-mini:boost_1_53_0 user$ ./b2 link=static threading=multi toolset=darwin cxxflags="-arch i386 -arch x86_64" macosx-version=10.6 stage -bash: ./b2: No such file or directory </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload