Ich versuche, ein Programm mit Boost MPI zu starten, aber die Sache ist, ich habe nicht die .lib. Also versuche ich, eine zu erstellen, indem Sie den Befehl nach bei http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.configversuchen, Boost MPI zu erstellen, aber die lib-Dateien werden nicht erstellt. Was ist los?
Die Anweisung sagt: „Für viele Anwender mit LAM/MPI, MPICH oder OpenMPI, Konfiguration fast automatisch ist“, ich habe mich OpenMPI in C: \, aber ich habe nichts mehr damit gemacht. Müssen wir etwas damit machen? Ich habe auch MPICH2 in Programme aufgenommen und habe auch nichts mehr damit gemacht. An dieser Stelle der Instruktion bin ich ziemlich unsicher, was genau wir tun müssen.
Daneben eine weitere Anweisung aus der Anweisung: "Wenn Sie nicht bereits eine Datei user-config.jam in Ihrem Home-Verzeichnis haben, kopieren Sie tools/build/v2/user-config.jam dort." Nun, ich tue einfach, was es sagt. Ich habe mir "user-config.jam" in C: \ boost_1_43_0> zusammen mit "using mpi;" in die Datei.
Als nächstes ist es das, was ich getan habe: bjam --with-mpi
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>
Ich sehe, dass es viele Libs in C: \ boost_1_43_0 \ Stufe \ lib, aber ich sehe keine Spur von libboost_mpi-vc100-mt-1_43.lib oder libboost_mpi-vc100-mt-gd-1_43.lib überhaupt. Dies sind die Bibliotheken, die für die Verknüpfung in mpi-Anwendungen benötigt werden.
Was könnte möglicherweise schief gehen, wenn Bibliotheken nicht gebaut werden?