Boost ptr_container library not installed after compilation from source

I have an updated boost library from the previous 1.54 (svn source) to 1.57 (git source). Although I used the same parameters. / b 2, the destination directory does not contain the ptr_container library.

The cloned repository directory contains the ptr_container library correctly on this path:

 boost_git/libs/ptr_container 

I create it with the following command:

  ./b2 --install --prefix=$SHL_PATH/boost -sNO_BZIP2=1 -sNO_ZLIB runtime-link=shared link=shared -j2 install 

but without success.


Edit:

It seems that the problem only occurs when building from git. When I downloaded the zip package from boost, the target directory contains ptr_container correctly.

These are the git commands that I use to get the source code:

 git clone --recursive https://github.com/boostorg/boost.git boost_git git checkout tags/boost-1.57.0 git submodule foreach --recursive git checkout tags/boost-1.57.0 

I also tried to get the latest version, but this version is generally not applicable. Immediately after I completed. / b 2, I get a strange error similar to this: Buidling boost error: Name clash for '<pstage \ lib> boost_system-vc120-mt-1_58.dll'

I will be grateful for any tips on how to properly get and install boost from the git repository.

+4
c ++ boost boost-ptr-container
source share
1 answer
  git clone https://github.com/boostorg/boost.git
 cd boost
 git checkout boost-1.57.0
 git submodule update --init --recursive
 ./bootstrap.sh
 sudo ./b2 install
 sudo ./b2 headers

As pointed out by rivanov in the comments, ./b2 headers does the trick to include header-only files in the installation directory.

0
source share

All Articles