为什么cmake无法找到提升?

时间:2018-03-10 12:52:36

标签: c++ boost cmake open-source

我正在尝试使用此指令构建SuperTux:

https://github.com/SuperTux/supertux/blob/master/INSTALL.md#installing-under-windows-using-cmake-and-visual-studio

但是CMake 3.11给了我错误:

D:\OpenSourceProjects\SuperTux\supertux\build>cmake ..
CMake Deprecation Warning at CMakeLists.txt:49 (CMAKE_POLICY):
  The OLD behavior for policy CMP0043 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
  CMakeLists.txt:125 (FIND_PACKAGE)


CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
  CMakeLists.txt:125 (FIND_PACKAGE)


CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
  CMakeLists.txt:125 (FIND_PACKAGE)


CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
  CMakeLists.txt:125 (FIND_PACKAGE)


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

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:125 (FIND_PACKAGE)


CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandle
StandardArgs.cmake:137 (message):
  Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.
cmake:378 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindOpenAL.cmake:96 (FIND_PACK
AGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:171 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "D:/OpenSourceProjects/SuperTux/supertux/build/CMakeFiles/CMakeOutput.l
og".

我试图将BOOST_INCLUDEDIR指定为

SET(BOOST_INCLUDEDIR, "/dependencies64/include/boost")

但没有任何改变。在CMakeOutput.log中Visual Studio说建筑已经完成。我做错了什么?

0 个答案:

没有答案