2010-05-23 7 views
8

Boost MPI를 사용하여 프로그램을 실행하려하지만, .lib가 없습니다. 그래서 명령을 따라 작성하려고합니다 http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.configBoost MPI를 빌드하려고하지만 lib 파일이 작성되지 않습니다. 무슨 일이야?

"LAM/MPI, MPICH 또는 OpenMPI를 사용하는 많은 사용자에게 구성이 거의 자동으로 이루어지기 때문에"나는 C : \에서 OpenMPI를 얻었지만 더 이상 아무것도하지 않았다. 우리가 그걸로 무엇인가해야합니까? 나 또한 Program Files에서 MPICH2를 가지고 있으며 더 이상 아무것도하지 않았다. 지시의이 시점에서 나는 우리가 정확히 무엇을해야하는지 확실히 확신 할 수 없다.

그 외에도 다음과 같은 명령문이 있습니다. "홈 디렉토리에 user-config.jam 파일이 아직 없으면 tools/build/v2/user-config.jam을 복사하십시오." 글쎄, 나는 그것이하는 말을 단순히한다. C : \ boost_1_43_0>에서 "mpi 사용"과 함께 "user-config.jam"을 얻었습니다. 파일로

다음으로,이 내가 무슨 짓을했는지 있습니다 : bjam --with-MPI 내가 거기에 C에서 많은 libs와 것을 볼

C:\boost_1_43_0>bjam --with-mpi 
WARNING: No python installation configured and autoconfiguration 
     failed. See http://www.boost.org/libs/python/doc/building.html 
     for configuration instructions or pass --without-python to 
     suppress this message and silently skip all Boost.Python targets 

Building the Boost C++ Libraries. 


warning: skipping optional Message Passing Interface (MPI) library. 
note: to enable MPI support, add "using mpi ;" to user-config.jam. 
note: to suppress this message, pass "--without-mpi" to bjam. 
note: otherwise, you can safely ignore this message. 
warning: Unable to construct ./stage-unversioned 
warning: Unable to construct ./stage-unversioned 

Component configuration: 

    - date_time    : not building 
    - filesystem    : not building 
    - graph     : not building 
    - graph_parallel   : not building 
    - iostreams    : not building 
    - math      : not building 
    - mpi      : building 
    - program_options   : not building 
    - python     : not building 
    - random     : not building 
    - regex     : not building 
    - serialization   : not building 
    - signals     : not building 
    - system     : not building 
    - test      : not building 
    - thread     : not building 
    - wave      : not building 

...found 1 target... 


The Boost C++ Libraries were successfully built! 

The following directory should be added to compiler include paths: 

    C:\boost_1_43_0 

The following directory should be added to linker library paths: 

    C:\boost_1_43_0\stage\lib 


C:\boost_1_43_0> 

: \ boost_1_43_0 \ 무대 \ lib 디렉토리는,하지만 난의 흔적을 볼 수 없습니다 libboost_mpi-vc100-mt-1_43.lib 또는 libboost_mpi-vc100-mt-gd-1_43.lib. mpi 응용 프로그램에서 링크하는 데 필요한 라이브러리입니다.

라이브러리를 제작하지 않을 때 무엇이 ​​잘못 될 수 있습니까?

답변

14

user-config.jam을 읽지 않는 것 같습니다 ... 빌드가 user-config.jam을 참조하고 검색 할 때 % HOME % 위치에서 그렇게합니다. Boost 소스의 루트 디렉토리 나 현재 디렉토리에 없습니다. 하지만 특정 user-config.jam 파일을 사용할 수 있습니다 : bjam --user-config=user-config.jam ... 옵션. 어느 것이 현재의 dir에서만 그것을 찾을 것입니다. 또는 파일의 전체 경로를 지정할 수도 있습니다. mpi.jam 도구 파일 (mpi.jam)의 주석을 읽으면 어떤 조건에서 mpi 도구가 자동으로 설정되는지 설명해야합니다. 경로에 mpic++이 있다는 메모/V2/사용자 config.jam

을 구축/

정력 도구를 설치 boost_1.55 ./bjam 링크 = 공유 --prefix =/소프트웨어/:

0

나는 다음 명령 MPI와 부스트 1.55을 구축

-> user-config.jam의 끝에서 "mpi 사용;"

./b2 링크 = 공유 --prefix =/소프트웨어/내가 같은 문제를 가지고 --with-MPI 제공하는 경우

를 설치 boost_1.55 (따옴표없이), 그러므로 나는 그것을 구축 한 그 방법.