2013-09-27 77 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文件 –