I am having issues while building the Boost Library on Ubuntu 16.04 LTS with gcc-8.
Currently I need to build both the Debug and Release built libraries.
Here are the commands I have used to build the library for debug build:
$ ./bootstrap.sh --with-libraries=all --with-python-version=3.5 --with-icu="/usr/include/x86_64-linux-gnu/"
###################
# For Debug build #
###################
$ ./b2 toolset=gcc-8 cxxflags="-std=c++17" variant=debug
#####################
# For Release build #
#####################
$ ./b2 toolset=gcc-8 cxxflags="-std=c++17" variant=release
The issue is that even with variant specified as debug
or release
, the build builds the libraries with the same names.
Each build step overwrites the libraries built by the previous command.
How can I get the Debug libraries with probable suffix -d
as per the documentation mentioned here?
I also tried to look into the boost-build
reference mentioned here.
But I am getting a Error 404 page is not found.
The old reference for Boost Build as found here also does not seems to have the necessary details of building the boost libraries in both debug and release modes.
Thanks in advance.
As mentioned in the
--help
information, on Unix type systems the default for--layout
issystem
which doesn't add the tagging that allows for multiple build variations to coexist:You can use either the
--layout=tagged
or--layout=versioned
options to allow the multiple variants when you build.There is also a
--buildid=ID
option, also listed in the--help
output, that will let you put a custom tag on the results. Useful in the cases where you want a shorter name or to keep things as simple as possible. But beware that since it's custom consumers, i.e. build systems, will not likely know how to deal with the names.