I like to build boost 1.58.0 using the (new) Visual Studio 2015 (Enterprise). In the past I proceeded in the following way:
C:\thirdparty\vs2013\x64\boost_1_58_0
)VS2013 x64 Native Tools Command Prompt
)cd C:\thirdparty\vs2013\x64\boost_1_58_0
).\bootstrap.bat
.\b2 -j8 --toolset=msvc-14.0 address-model=64 --build-type=complete stage
But in VS2015 there is not VS2015 command prompt.
Also the vcvarsall.bat
is missing that I used sometimes to setup a VS2013 command prompt.
How can I compile the source code of boost using VS2015?
If C:\boost\include\boost-1_64 is where you installed Boost (i.e. unpacked the source package) then that is the path you should add to your include directories, not C:\boost\include\boost-1_64\boost . The trailing boost directory is present in #include directives in the code.
To participate in development, you need to subscribe to the Boost developers' list. Once you've done that, some paths to contribution are: Submit patches for new features or bug fixes. Pick any ticket from our bug tracking system on GitHub and get started.
Unfortunately Boost documentation is quite verbose because it tries to take care of all OS and environments. Also, it skips over some time saving details. Here's quick steps specifically for VS2015 with Boost 1.61.
First, let's understand that Boost is huge library with lots of contributors. Consequently, all of the Boost code is divided in to two parts: headers only libraries and header+cpp libraries. The former doesn't require compilation. You just include them and you are done. Later does require building. You typically don't need to worry about extra steps of building, although its good idea to just set everything up once.
Using Boost Header Only Libraries
Now you should be able to use most of the Boost libraries by using statement like #include <boost/thread/mutex.hpp>
.
Using Boost Header+CPP Libraries
Examples of these are Boost.Chrono, Boost.Filesystem, Boost.GraphParallel, Boost.IOStreams, Boost.Locale, Boost.Regex, Boost.Thread, Boost.System etc. Unless you are using these libraries, following steps are not needed.
Now you are all set!
Note: Original question about not finding command prompt is addressed by answer from @Arnaud. Above are more clarified steps for Boost installation also step #5 below for more detail on command prompt.
I Tried to install Qt and I had the same issue: vcvarsall.bat was missing. In my case the problem was that I unchecked The Visual C++ Common Tools.
I modified my VS 2015 installation and added the missing feature Common Tools for Visual C++ 2015:
After the modification, the File is in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With