努力打造提升:我不能得到的bjam [英] Trying to build Boost: I cannot get bjam
问题描述
我想建立使用两种不同的编译器,MinGW的和Visual C ++ 2010例preSS提升,使用的bjam:
I would like to build boost using two different compilers, MinGW and Visual C++ 2010 Express, using bjam:
bjam toolset=gcc,msvc variant=release link=static,shared threading=multi install
问题是我没有的bjam。我找不到它在升压目录,我从别的地方下载的一个是错误的版本。
The problem is that I do not have bjam. I could not find it in the Boost directory, and the one I downloaded from somewhere else was a wrong version.
我应该能够从code在增强,但如何建立呢?我读,我必须启动的build.bat
从 BOOST_ROOT /工具/果酱/ src目录
目录,但该目录不不存在的!
I should be able to build it from the code in Boost, but how? I read that I must launch build.bat
from the BOOST_ROOT/tools/jam/src
directory, but that directory does not exist !
的谢谢!的
- 平台:Windows7的
- 编译器:MinGW的和Visual C ++ 2010例preSS
更新:
我已经能够得到的bjam有: bootstrap.bat GCC
结果
然后,推出的bjam与previous参数,我只得到MinGW的库文件(.dll和.a)中。结果
这是错误消息,我就到Visual C ++ 10获得的摘录:
I have been able to get bjam with: bootstrap.bat gcc
Then, launching bjam with the previous parameters, I only get libraries for MinGW (.dll and .a).
This is an extract of the error messages I get with regard to Visual C++ 10:
...
call "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo @"bin.v2\libs\test\build\msvc-10.0\release\asynch-exceptions-on\threading-multi\plain_report_formatter.obj.rsp"
...failed compile-c-c++ bin.v2\libs\test\build\msvc-10.0\release\asynch-exceptions-on\threading-multi\plain_report_formatter.obj...
...
...skipped <pbin.v2\libs\test\build\msvc-10.0\release\asynch-exceptions-on\threading-multi>boost_unit_test_framework-vc100-mt-1_48.dll for lack of <pbin.v2\libs\test\build\msvc-10.0\release\asynch-exceptions-on\threading-multi>compiler_log_formatter.obj...
...
common.mkdir bin.v2\libs\thread\build\msvc-10.0\release\threading-multi
common.mkdir bin.v2\libs\thread\build\msvc-10.0\release\threading-multi\win32
compile-c-c++ bin.v2\libs\thread\build\msvc-10.0\release\threading-multi\win32\thread.obj
\Microsoft was unexpected at this time.
...
call "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
cl /Zm800 -nologo @"bin.v2\libs\thread\build\msvc-10.0\release\threading-multi\win32\thread.obj.rsp"
...failed compile-c-c++ bin.v2\libs\thread\build\msvc-10.0\release\threading-multi\win32\thread.obj...
compile-c-c++ bin.v2\libs\thread\build\msvc-10.0\release\threading-multi\win32\tss_dll.obj
\Microsoft was unexpected at this time.
...
...skipped <pC:\Boost\lib>boost_thread-vc100-mt-1_48.lib for lack of <pbin.v2\libs\thread\build\msvc-10.0\release\threading-multi>boost_thread-vc100-mt-1_48.lib
...
尝试使用:结果
bootstrap.bat VC100
结果
我得到的错误:未知工具集:VC100
Trying to use:
bootstrap.bat vc100
I get the error: "Unknown toolset: vc100"
通过两种:结果
bootstrap.bat VC10
结果
或:结果
bootstrap.bat的MinGW
结果
我得到:\\微软在这个时候意外的。
With either:
bootstrap.bat vc10
or:
bootstrap.bat mingw
I get: "\Microsoft was unexpected at this time."
修改项目config.jam中
并没有帮助。
所以,我做了一个很大的进步,但VC10不工作,但...
So, I did a big step forward, but vc10 is not working, yet...
推荐答案
有一个的 bootstrap.bat 的在你的提振目录。运行它。
There is a bootstrap.bat in your boost directory. Run it.
它会自动建立的bjam(可能使用Visual C ++)。
It will build bjam automatically (probably using visual c++).
这篇关于努力打造提升:我不能得到的bjam的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!