I'm trying to build boost libraries on windows using mingw compiler. I'm following instructions from here (section 5.2). I've successfully gone through step one and two. I had to change .\bootstrap.bat to .\bootstrap.bat mingw. The next step, running b2.exe, seems to do nothing. I've tried changing --prefix, --build-dir, toolset.
What may be the problem?
            Asked
            
        
        
            Active
            
        
            Viewed 667 times
        
    0
            
            
        
        capi1500
        
- 115
 - 1
 - 6
 
- 
                    See the answer [here](https://stackoverflow.com/questions/35217511/boost-1-60-0-zip-installation-in-windows/35223257#35223257). The key issue is to call `.\bootstrap.bat gcc` before calling `.\b2 toolset=gcc` – kenba Feb 19 '21 at 16:02
 
1 Answers
0
            
            
        In recent versions it's not b2.exe but bjam.exe (located under tools/build/src/engine/bjam.exe).
When I build boost 1.75.0 with MinGW-w64 under the MSYS2 shell the command looks something like:
INSTALLPREFIX=/usr/local
BITS=64
$COMSPEC //C "CD tools\\build & bootstrap.bat mingw" &&
BOOST_ROOT=$(pwd) MINGW=/ tools/build/src/engine/bjam.exe -q --prefix=$INSTALLPREFIX --build-dir=build_win --build-type=complete --layout=tagged --enable-icu --disable-filesystem2 toolset=gcc target-os=windows abi=ms link=static,shared runtime-link=static,shared variant=release threading=single,multi threadapi=win32 context-impl=fcontext address-model=$BITS --without-python --without-mpi release stage install cxxflags="-fpermissive -DBOOST_LOG_WITHOUT_SYSLOG"
        Brecht Sanders
        
- 6,215
 - 1
 - 16
 - 40