[英]CMake errors (windows gui)
I have been trying long time to fix this problem with no success . 我一直在努力解决这个问题,但没有成功。
I want to configure and generate a source ; 我想配置并生成源; When I try to do that , I receive a couple of errors.
当我尝试这样做时,我会收到几个错误。
This is the results : 结果如下:
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.
Run cmake-gui program and set proper paths (sources and build). 运行cmake-gui程序并设置适当的路径(源和构建)。
Then you will be able to edit manualy some variables in window below. 然后,您将可以在下面的窗口中手动编辑一些变量。
You need to find there: 您需要在这里找到:
Boost_SERIALIZATION_LIBRARY
and 和
Boost_SERIALIZATION_LIBRARY_DEBUG
and set them so they will point to proper boost libraries ex: 并设置它们,以便它们指向正确的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- in name of second path stands for debug -d-在第二个路径的名称代表调试
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.