2013-02-14 4 views
0

부스트 파일 시스템 라이브러리를 사용하고 싶습니다. 내 Windows 컴퓨터에 부스트를 설치하려고합니다. CodeBolcks를 개발 용으로 사용하고 있습니다.CodeBlocks로 Windows에서 부스트 설정하기

1) I 다운로드하고 부스트 추출 : D : \ boost_1_53_0

2) I 다운로드 추출 잼 실행 파일 : d : \ 과급 걸림 3.1.18-1-ntx86를 I는 다음 제조

3) 내 PATH 환경 변수에 "d : \ boost-jam-3.1.18-1-ntx86"을 추가했습니다. ": \의 boost_1_53_0 D", 다음과 같은 명령을 실행

4) 나는 갈

warning: mismatched versions of Boost.Build engine and core 
warning: Boost.Build engine (bjam) is 03.1.18 
warning: Boost.Build core (at D:/boost_1_53_0/tools/build/v2) is 2011.12-svn 
D:/boost_1_53_0/tools/build/v2/util\path.jam:476: in path.makedirs 
rule MAKEDIR unknown in module path. 
D:/boost_1_53_0/tools/build/v2/build\configure.jam:190: in configure.set-log-file 
D:/boost_1_53_0/tools/build/v2\build-system.jam:725: in load 
D:\boost_1_53_0\tools\build\v2/kernel\modules.jam:283: in import 
D:\boost_1_53_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build 
D:\boost_1_53_0\boost-build.jam:17: in module scope 

이 사람이 어떻게 해결하는 아이디어가 있습니까 : 나는 다음과 같은 출력을 얻을

bjam --toolset=gcc "--prefix=D:\Program Files\CodeBlocks" install 

을 이 문제?

감사

업데이트 1 : 귀하의 조언으로 당

, 나는 부스트 폴더에서, bootstrap.bat을 사용했습니다.

### 
### Using 'gcc' toolset. 
### 

D:\boost_1_53_0\tools\build\v2\engine>if exist bootstrap rd /S /Q bootstrap 

D:\boost_1_53_0\tools\build\v2\engine>md bootstrap 

D:\boost_1_53_0\tools\build\v2\engine>gcc -DNT -o bootstrap\jam0.exe command.c compile.c constants.c debug.c execnt.c filent.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.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.c modules/sequence.c modules/order.c 

D:\boost_1_53_0\tools\build\v2\engine>.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= " clean 
...found 1 target... 
...updating 1 target... 
...updated 1 target... 

D:\boost_1_53_0\tools\build\v2\engine>.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= " 
...found 50 targets... 
...updating 2 targets... 
[COMPILE] bin.ntx86\b2.exe 

"gcc" -o bin.ntx86\b2.exe "-DNDEBUG" "-DOPT_HEADER_CACHE_EXT" "-DOPT_GRAPH_DEBUG_EXT" "-DOPT_SEMAPHORE" "-DOPT_AT_FILES" "-DOPT_DEBUG_PROFILE" "-DOPT_FIX_TARGET_VARIABLES_EXT" "-DOPT_IMPROVED_PATIENCE_EXT" "-DNT" "-DYYSTACKSIZE=5000" "-pedantic" "-fno-strict-aliasing" "-s" "-O3" "-Wno-long-long" "command.c" "compile.c" "constants.c" "debug.c" "function.c" "glob.c" "hash.c" "hcache.c" "headers.c" "hdrmacro.c" "jam.c" "jambase.c" "jamgram.c" "lists.c" "make.c" "make1.c" "mem.c" "object.c" "option.c" "output.c" "parse.c" "regexp.c" "rules.c" "scan.c" "search.c" "subst.c" "w32_getreg.c" "timestamp.c" "variable.c" "modules.c" "strings.c" "filesys.c" "builtins.c" "pwd.c" "class.c" "native.c" "md5.c" "modules/set.c" "modules/path.c" "modules/regex.c" "modules/property-set.c" "modules/sequence.c" "modules/order.c" "execnt.c" "filent.c" "pathunix.c" 

...failed [COMPILE] bin.ntx86\b2.exe... 
...removing bin.ntx86\b2.exe 
...skipped bjam.exe for lack of b2.exe... 
...failed updating 1 target... 
...skipped 1 target... 

조언은 무엇인가 :

D:\boost_1_53_0>bootstrap.bat gcc 
Building Boost.Build engine 

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. 

bootstrap.log 파일은 다음 포함 : 그러나, 나는 다음과 같은 출력을 받았다?

업데이트 2 :

D:\boost_1_53_0\tools\build\v2>bootstrap.bat gcc 
Bootstrapping the build engine 

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

bootstrap.log 파일이 문제가 UPDATE 1과 동일한 내용이 포함? 감사합니다

+0

부스트 배포판에서 bootstrap.bat를 실행 해 보셨습니까? –

+0

가능한 중복 http://stackoverflow.com/questions/14181832/install-boost-on-windows-with-codeblocks/14186795#14186795 – StoryTeller

+0

Windows에서 다운로드 할 것 부스트의 분포는 아니, 자신의 빌드 체인과 함께 제공 별도로 용지 걸림을 설치해야합니다. 당신이 본대로, 이것은 단지 문제로 이어집니다. – us2012

답변

0

은 'gcc.exe는'내 컴퓨터 및 속성을 마우스 오른쪽 버튼으로 클릭하여 envs 변수에 상주하는 곳의 위치는 % PATH % 변수를 설정하고 프롬프트를 다시 시작하고 다시 실행합니다.

2

boost.build 패키지는 다른 소스 (boost tar 배포와 함께 제공되는 소스가 아닌)에서 설치해야합니다.

경고를 제거하려면 부스트 배포본과 동일한 패키지에서 boost-build를 설치해야합니다. 그들이 모두 같고 최신인지 확인하려면 here에서 부스트를 다운로드하고 압축을 풉니 다. 설치가 완료되면 boost (기본적으로 bootstrap, b2)에 대한 설치 지침을 따르고 tools/build/v2로 이동하여 및 b2을 실행하십시오. 그런 다음이 부스트 릴리스에 해당하는 B2와 bjam 파일을 생성하며, 더 이상이 경고를하지 않아도됩니다.