|
Boost Users : |
Subject: [Boost-users] Install boost on OS X via homebrew with c++11 and libc++
From: christoffer.buchholz_at_[hidden]
Date: 2012-09-12 07:10:01
I'm trying to install boost on OS X with c++11 and libc++. I'm using
homebrew (boost formular with the --build-from-source argument) and
have tried various options with adding stuff like
* toolset=clang
* cxxflags="-stdlib=libc++ -std=c++11"
* cxxflags="-stdlib=libc++"
* linkflags="-stdlib=libc++ -std=c++11"
* linkflags="-stdlib=libc++"
as arguments to bjam, but it all fails.
Now... The "toolset" part doesn't do anything to make it fail though,
its the cxx- and linkflags part that does.
This is what I get when it fails
clang-darwin.archive
bin.v2/libs/exception/build/clang-darwin-4.2.1/release/link-
static/threading-multi/libboost_exception-mt.a
common.copy /usr/local/Cellar/boost/1.50.0/lib/libboost_exception-mt.a
clang-darwin.compile.c++
bin.v2/libs/wave/build/clang-darwin-4.2.1/release/link-
static/threading-multi/cpplexer/re2clex/cpp_re.o
clang-darwin.archive
bin.v2/libs/wave/build/clang-darwin-4.2.1/release/link-static/threading-multi/libboost_wave-mt.a
common.copy /usr/local/Cellar/boost/1.50.0/lib/libboost_wave-mt.a
...failed updating 2 targets...
...skipped 4 targets...
...updated 10592 targets...
Error: #<BuildError: Failed executing: ./bjam toolset=clang
cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++"
--prefix=/usr/local/Cellar/boost/1.50.0 --
libdir=/usr/local/Cellar/boost/1.50.0/lib -j2 --layout=tagged
--user-config=user-config.jam threading=multi install>
How do I get boost installed on OS X Mountain Lion with c++11 and
libc++ preferably via homebrew for the ease it adds.
Sincerely,
Christoffer Buchholz
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net