2013-09-27 70 views
1

我一直試圖解決這個問題很長時間沒有成功。CMake錯誤(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. 

回答

0

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

然後,您將能夠在下面的窗口中編輯manualy中的一些變量。

你需要找到有:在名稱

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-:

Boost_SERIALIZATION_LIBRARY 

Boost_SERIALIZATION_LIBRARY_DEBUG 

,並設定他們,因此他們將指向正確的Boost庫前第二條路徑代表調試

+0

偉大的: ) 解決了一個問題。 Still IRRLICHT問題 試圖添加條目到包括目錄但仍然問題 – user2824393

+0

偉大:)一個問題解決了。仍然IRRLICHT問題試圖添加條目到包含目錄但仍然問題 – user2824393

+0

@ user2824393:對於irrlicht它應該是類似的:設置IRRLICHT_INCLUDE_DIR的值,以便它指向包含的目錄。它通常如下所示:d:/ libs/irrlicht/include。然後相同的庫,但這裏你需要直接指向lib文件 –