2012-04-15 2 views
2

QtCreator로 부스트를 사용하고 싶습니다. Windows 7을 사용하고 있으며 QtSDK를 mingw와 함께 설치했습니다. 내가 bootstrap.bat을 실행할 때 나는 bootstrap.log는 다음QtSDK의 mingw 빌드를 사용하여 빌드하기

### 
### Using 'msvc' toolset. 
### 

C:\boost\boost_1_49_0\tools\build\v2\engine>if exist bootstrap rd /S /Q bootstrap 

C:\boost\boost_1_49_0\tools\build\v2\engine>md bootstrap 

C:\boost\boost_1_49_0\tools\build\v2\engine>cl /nologo /GZ /Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib /Febootstrap\jam0 command.c compile.c debug.c execnt.c expand.c filent.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c pwd.c class.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.cmodules/sequence.c modules/order.c 

내 첫번째 추측가 향상 될 것 포함

C:\boost\boost_1_49_0>bootstrap 
Building Boost.Build engine 
'cl' is not recognized as an internal or external command, 
operable program or batch file. 

Failed to build Boost.Build engine. 
Please consult bootstrap.log for furter diagnostics. 

You can try to obtain a prebuilt binary from 

    http://sf.net/project/showfiles.php?group_id=7586&package_id=72941 

Also, you can file an issue at http://svn.boost.org 
Please attach bootstrap.log in that case. 

대신에와 Mingw의 MSVC로 구축하려고 다음과 같은 오류를 얻을,하지만 난 더이 그 행동을 바꾸는 방법. 어떤 도움을 주시면 감사하겠습니다.

답변

5

question을 발견 한 후 bootstrap.bat gcc을 시도했는데 gcc를 찾을 수 없으므로 오류가 발생했습니다. QtSDK가 추가하지 않았기 때문에 path 환경 변수를 잠깐 살펴보면 QtSDK\mingw\bin의 경로가 누락되었습니다.

이 솔루션은 단순히

path = %PATH%;C:\QtSDK\mingw\bin 
bootstrap.bat gcc 
.\b2 --toolset=gcc 
했다
관련 문제