Please forgive the newbie questions, but I am trying and failing to build boost with MinGW. I've grabbed the CVS sources of boost from the sourceforge anonymous mirror. I've installed MinGW and MinSYS. The MinGW tools are in my path. From the MinSYS console: $ cd ~/boostcvs $ which which c++ /mingw/bin/c++ $ c++ --version c++.exe (GCC) 3.2.3 (mingw special 20030504-1) Just to check that the tools are working: $ cd libs/spirit/phoenix/test $ c++ -I$HOME/boostcvs -o new_test new_test.cpp $ ./new_test /////////////////////////////////////////////////////////////////////////////// Tests concluded SUCCESS!!! /////////////////////////////////////////////////////////////////////////////// Now trying to do something similar using bjam: $ cd ~/boostcvs/libs/test/build $ bjam '-sTOOLS=mgw' CALL "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\VCVARS32.BAT" >nul "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\cl" /Zm800 -nologo /EHsc -c -DBOOST_TEST_NO_AUTO_LINK=1 /Z7 /Od /Ob0 /EHsc /GR /MTd /Op /Zc:forScope /Zc:wchar_t -I"..\..\..\bin\boost\libs\test\build" -I"d:\MinSYS\1.0\home\Angus\boost_cvs" -Fo"..\..\..\bin\boost\libs\test\build\libboost_unit_test_framework.lib\vc7.1\debug\runtime-link-static\threading-multi\unit_test_main.obj" -Tp"d:\MinSYS\1.0\home\Angus\boost_cvs\libs\test\build\../src/unit_test_main.cpp" ...failed vc-C++ ..\..\..\bin\boost\libs\test\build\libboost_unit_test_framework.lib\vc7.1\debug\runtime-link-static\threading-multi\unit_test_main.obj... vc-C++ ..\..\..\bin\boost\libs\test\build\libboost_unit_test_framework.lib\vc7.1\debug\runtime-link-static\threading-multi\supplied_log_formatters.obj The system cannot find the path specified. The system cannot find the path specified. [ snip all other, similar messages ] For the life of me I can't see why bjam is trying to build the VC++ target. I can't even run $ bjam --help because it just does the same thing, trying and failing to build stuff with VC++. I have also tried running from the top level boost directory and with the '-sMINGW_ROOT_DIRECTORY=/d/mingw' command line option to bjam, all to no avail. (From my understanding of the docs at http://www.boost.org/tools/build/v1/mingw-tools.html, that shouldn't be necessary.) I have changed the TOOLS name to 'mingw' rather than 'mgw'. Again , no dice. Finally, in desperation, opening up a DOS prompt and repeating the exercise. Nope. Same result. Can anyone help me out? Regards, Angus
Angus Leeming: [snip]
Now trying to do something similar using bjam:
$ cd ~/boostcvs/libs/test/build $ bjam '-sTOOLS=mgw'
The correct value is 'mingw'. [snip]
For the life of me I can't see why bjam is trying to build the VC++ target. I can't even run
$ bjam --help
because it just does the same thing, trying and failing to build stuff with VC++.
Try "bjam -help". :)
I have also tried running from the top level boost directory and with the '-sMINGW_ROOT_DIRECTORY=/d/mingw' command line option to bjam, all to no avail. (From my understanding of the docs at http://www.boost.org/tools/build/v1/mingw-tools.html, that shouldn't be necessary.) I have changed the TOOLS name to 'mingw' rather than 'mgw'. Again , no dice.
Finally, in desperation, opening up a DOS prompt and repeating the exercise. Nope. Same result.
I've never tried compiling Boost under MSYS, but running bjam -sMINGW_ROOT_DIRECTORY=d:\mingw -sTOOLS=mingw from the top level Boost directory under Windows CLI should work. Sorry if you already tried MINGW_ROOT_DIRECTORY and TOOLS in combination; I couldn't tell from your mail. -- Daniel Schlyder http://bitblaze.com/
Daniel Schlyder wrote: Hi, Daniel.
I've never tried compiling Boost under MSYS, but running
bjam -sMINGW_ROOT_DIRECTORY=d:\mingw -sTOOLS=mingw
from the top level Boost directory under Windows CLI should work. Sorry if you already tried MINGW_ROOT_DIRECTORY and TOOLS in combination; I couldn't tell from your mail.
Yes, this works. Thank you. However, I'd really like to do this under MSYS. Am I asking for the impossible? Angus
Angus Leeming:
However, I'd really like to do this under MSYS. Am I asking for the impossible?
Just tried it. The following works for me: bjam -sMINGW_ROOT_DIRECTORY=/d/mingw -sTOOLS=mingw -- Daniel Schlyder http://bitblaze.com/
participants (2)
-
Angus Leeming
-
Daniel Schlyder