On 11/02/2016 12:00 PM, LAMOTTE Thierry wrote:
Dear Boost community,
For the purpose of a project that uses Boost libraries, I tried rebuild Boost but I failed. I would please need some help to complete that building.
My context is Microsoft Windows 7, 32 bits, Visual Studio 13 (msvc-12), Boost 1.54.0
My goal is to the create static libraries : libboost_chrono, regex, system, thread and datetime.
Hello there! I wrote a 'manual' for myself, because I compile boost 'by hand' too. Here is it; it builds the selected boost libraries to their static (multihreaded) versions: How to build boost on M$ Windows: In Visual Studio Command Prompt do: 1. Go to the directory tools\build\ 2. Run bootstrap.bat 3. return to previous directory: cd ..\.. 4. Change user config header: echo #define BOOST_ASIO_DISABLE_STD_CHRONO 1 >> boost\config\user.hpp 5. build boost libs: tools\build\b2.exe --build-dir=.\boost-build toolset=msvc ^ link=static threading=multi runtime-link=shared --build-type=minimal ^ --with-atomic --with-chrono --with-container --with-date_time --with-exception ^ --with-filesystem --with-graph --with-graph_parallel --with-iostreams ^ --with-locale --with-log --with-mpi --with-program_options ^ --with-random --with-regex --with-serialization --with-signals ^ --with-system --with-thread --with-timer ^ stage 6. Library files reside in .\stage\lib Header Files reside in .\boost Depending on your requirements you might want to skip 4. and adjust the libraries to be build in 5. Hope this helps. Andreas