build and install boost subset does not install the header files
Hi, I am trying to use github boost to obtain a subset of the libraries. I found that using the following subset of modules allows me to build boost_system. git submodule update --init tools/build || exit 1 git submodule update --init tools/inspect || exit 1 git submodule update --init libs/assert || exit 1 git submodule update --init libs/config || exit 1 git submodule update --init libs/core || exit 1 git submodule update --init libs/predef || exit 1 git submodule update --init libs/system || exit 1 git submodule update --init libs/utility || exit 1 The problem is that ./b2 ... install does not copy the header files. Is this a bug that I am hitting? My commands are: ./bootstrap.sh --prefix=../../boost --includedir=../../boost/include || exit 1 PATH=$CLANGBIN:$PATH \ ./b2 \ toolset=clang \ cxxflags="-std=c++11 -stdlib=libc++ -isystem/Developer/SDKs/MacOSX10.7.sdk/usr/include" \ linkflags="-stdlib=libc++" \ install threading=multi link=static Thanks, -g
After some digging in the jam files adding headers as target solved the
problem. Is this something new?
---------- Forwarded message ----------
From: George Georgiev
On 21 Nov 2015, at 23:10, George Georgiev
wrote: After some digging in the jam files adding headers as target solved the problem. Is this something new?
Yes, as of about 2 years ago. When you build from git repositories “b2 headers” is needed to stage all headers in the BOOST_ROOT/boost directory, in particular headers that is not used when you build boost. After transition to “modular” git based source code structure "b2 install" is still using files in BOOST_ROOT/boost as source for headers. There is no propper dependency to the git controlled headers in each respective git submodule. https://svn.boost.org/trac/boost/wiki/ModBigPicture https://svn.boost.org/trac/boost/wiki/TryModBoost I think this is the only documentation of this workflow for git repository based boost builds. That could be improved, or even better the stage and install targets should be improved to work without the explicit call to the headers target. — Bjørn
Thanks, this is the first time I am using the git distribution.
-g
On Sat, Nov 21, 2015 at 4:18 PM, Bjørn Roald
On 21 Nov 2015, at 23:10, George Georgiev
wrote: After some digging in the jam files adding headers as target solved the problem. Is this something new?
Yes, as of about 2 years ago. When you build from git repositories “b2 headers” is needed to stage all headers in the BOOST_ROOT/boost directory, in particular headers that is not used when you build boost. After transition to “modular” git based source code structure "b2 install" is still using files in BOOST_ROOT/boost as source for headers. There is no propper dependency to the git controlled headers in each respective git submodule.
https://svn.boost.org/trac/boost/wiki/ModBigPicture https://svn.boost.org/trac/boost/wiki/TryModBoost
I think this is the only documentation of this workflow for git repository based boost builds. That could be improved, or even better the stage and install targets should be improved to work without the explicit call to the headers target.
— Bjørn
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Bjørn Roald
-
George Georgiev