簡體   English   中英

CMake錯誤(Windows GUI)

[英]CMake errors (windows gui)

我一直在努力解決這個問題,但沒有成功。

我想配置並生成源; 當我嘗試這樣做時,我會收到幾個錯誤。

結果如下:

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.

運行cmake-gui程序並設置適當的路徑(源和構建)。

然后,您將可以在下面的窗口中手動編輯一些變量。

您需要在這里找到:

Boost_SERIALIZATION_LIBRARY

Boost_SERIALIZATION_LIBRARY_DEBUG

並設置它們,以便它們指向正確的boost庫,例如:

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-在第二個路徑的名稱代表調試

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM