1

私は長い間この問題を解決しようとしてきましたが、うまくいきませんでした。

ソースを構成して生成したい。それをしようとすると、いくつかのエラーが発生します。

これは結果です:

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1106 (message):
Unable to find the requested Boost libraries.

Boost version: 1.54.0

Boost include path: C:/Program Files (x86)/boost_1_54_0

The following Boost libraries could not be found:

      boost_serialization

No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.

Call Stack (most recent call first):
CMakeLists.txt:6 (find_package)

IRRLICHT_INCLUDE_DIR = IRRLICHT_INCLUDE_DIR-NOTFOUND
IRRLICHT_LIBRARY = IRRLICHT_LIBRARY-NOTFOUND
Could NOT find IRRLICHT (missing:  IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR) 
CMake Warning (dev) at CMakeLists.txt:16 (link_directories):
This command specifies the relative path

IRRLICHT_LIBRARY-NOTFOUND

as a link directory.

Policy CMP0015 is not set: link_directories() treats paths relative to the source dir.  Run "cmake --help-policy CMP0015" for policy details.  Use the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:16 (link_directories):
  This command specifies the relative path

as a link directory.

Policy CMP0015 is not set: link_directories() treats paths relative to the source dir.  Run "cmake --help-policy CMP0015" for policy details.  Use the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.
4

1 に答える 1

0

cmake-gui プログラムを実行し、適切なパス (ソースとビルド) を設定します。

次に、下のウィンドウでいくつかの変数を手動で編集できるようになります。

そこに見つける必要があります:

Boost_SERIALIZATION_LIBRARY

Boost_SERIALIZATION_LIBRARY_DEBUG

適切なブーストライブラリを指すように設定します。例:

D:/boost_1_53_0/stage/lib/libboost_serialization-mgw48-mt-1_53.a
D:/boost_1_53_0/stage/lib/libboost_serialization-mgw48-mt-d-1_53.a

-d- 2 番目のパスの名前はデバッグを表します

于 2013-09-27T17:31:03.720 に答える