此cmake命令错误的确切含义是什么,告诉我要做什么?

时间:2019-11-17 05:46:17

标签: cmake compilation command ninja

我正在尝试使用以下教程来编译aseprite: https://www.youtube.com/watch?v=si7N0GeqOH8&t=45s 以下命令将不起作用:

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_OS_BACKEND=skia 
      -DSKIA_DIR=C:\deps\skia -DSKIA_OUT_DIR=C:\deps\skia\out\Release -G Ninja ..

及其发出的错误消息是:

CMake Deprecation Warning at CMakeLists.txt:15 (cmake_policy):
  The OLD behavior for policy CMP0046 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.


-- The C compiler identification is MSVC 19.16.27034.0
-- The CXX compiler identification is MSVC 19.16.27034.0
CMake Error at cmake/c_flag_overrides.cmake:1:
  Parse error.  Expected a command name, got bad character with text "".
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.16/Modules/CMakeRCInformation.cmake:27 (include)
  C:/Program Files/CMake/share/cmake-3.16/Modules/Platform/Windows-MSVC.cmake:439 (enable_language)
  C:/Program Files/CMake/share/cmake-3.16/Modules/Platform/Windows-MSVC.cmake:423 (__windows_compiler_msvc_enable_rc)
  C:/Program Files/CMake/share/cmake-3.16/Modules/Platform/Windows-MSVC-C.cmake:5 (__windows_compiler_msvc)
  C:/Program Files/CMake/share/cmake-3.16/Modules/CMakeCInformation.cmake:48 (include)
  CMakeLists.txt:34 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Aseprite/build/CMakeFiles/CMakeOutput.log".

我不确定该如何处理此错误消息。我需要另一个版本的cmake吗? 软件本身或我尝试使用的命令是否有问题?另外,它们是更简单的编译asperite的方法吗?

0 个答案:

没有答案