[boost] build and install boost subset does not install the header files

149 views
Skip to first unread message

George Georgiev

unread,
Nov 21, 2015, 3:35:52 PM11/21/15
to bo...@lists.boost.org
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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

George Georgiev

unread,
Nov 21, 2015, 5:11:01 PM11/21/15
to bo...@lists.boost.org
After some digging in the jam files adding headers as target solved the
problem. Is this something new?

Bjørn Roald

unread,
Nov 21, 2015, 7:18:50 PM11/21/15
to bo...@lists.boost.org

> On 21 Nov 2015, at 23:10, George Georgiev <george.ge...@gmail.com> 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

George Georgiev

unread,
Nov 21, 2015, 10:16:21 PM11/21/15
to bo...@lists.boost.org
Thanks, this is the first time I am using the git distribution.

-g

Reply all
Reply to author
Forward
0 new messages