Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9024033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:54:27+00:00 2026-06-16T05:54:27+00:00

I tried to build Boost from source for 64bit using MinGW (x64) but failed

  • 0

I tried to build Boost from source for 64bit using MinGW (x64) but failed when creating the bjam.exe. Any pointer to help is appreciated. Thanks.

  • Package: Boost 1.52.0 (download from sourceforge, C:\BoostSrc)
  • Package: MinGW-w64 (4.7.2-x64 rubenvb, C:\MinGW\rubenvb-4.7.2-64)

I created the following batch file to ensure repeatable building, but things got wrong. I cannot build the bjam.exe with supplied batch file. I’m not using the supplied “bootstrap.bat” as the non-standard installation path of MinGW (I have multiple mingw sets), and I have no MSVC installed in my machine

SET BOOST_VER=boost_1_52_0
SET PATH_MINGW=C:\MinGW\rubenvb-4.7.2-64
SET PATH_BJAM=%~dp0\%BOOST_VER%\tools\build\v2\engine
SET PATH="%PATH_MINGW%\bin"
PUSHD "%PATH_BJAM%"

REM check path
mingw32-make -version

REM error below
build.bat mingw --toolset-root=%PATH_MINGW% --show-locate-target

SET PATH=%OPATH%
POPD
REM ... some more ...

Error message

gcc: error: CreateProcess: No such file or directory

When I type the command directly from command prompt (set the path, go to location and invoke build.bat), it goes smoothly (with warnings which i think can be ignored)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:54:29+00:00Added an answer on June 16, 2026 at 5:54 am

    After digging into build.bat located at BOOST_ROOT\tools\build\v2\engine, when supplying “mingw” as the toolset, the script by-passed the “guessing toolset” step and failed to define the variable “BOOST_JAM_TOOLSET_ROOT”, leaving calls to gcc-related executables failed.

    Now I changed the batch as follow

    PUSHD "%PATH_BJAM%"
    SET "PATH=%PATH_MINGW%\bin"
    
    REM add the line below
    SET "BOOST_JAM_TOOLSET_ROOT=%PATH_MINGW%\"
    
    build.bat mingw --show-locate-target
    SET PATH=%OPATH%
    

    I manually set the BOOST_JAM_TOOLSET_ROOT variable from external batch file and this worked fine. Beware of the ending “\” character, as the build.bat inside append the path variable as this:

    set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"
    

    Thanks very much for any comments and suggestions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone tried to build an e-commerce site atop MS Dynamics, using the new
I tried to reuse the .pch to speed the build using the following way:
I pulled the latest BOOST log from https://boost-log.svn.sourceforge.net/svnroot/boost-log/trunk/ and tried building it against my
I'm trying to build Boost.MPI 1.47 with Intel MPI 4.0.0.012, but Boost is not
I'm tryin to use boost threads on mingw (TDM-mingw, 32bit based on gcc4.6) from
I am trying to build the cpp-netlib library from Visual Studio 2010 but get
How do I link to an OS X framework using boost build? I have
I tried to insert a value into a boost unordered_multimap using the following code
I have been using Boost 1.36 for a while without any problems. Had to
I'm using boost.log. Apart from the extreme amount of agro actually getting and building

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.