无法在VS2015中使用CMake编译Aseprite

时间:2015-11-01 11:25:04

标签: c++ git cmake

我正在尝试使用CMake制作Visual Studio解决方案来编译最新版本的Aseprite。

我已经拥有Visual Studio 2015和DirectX SDK,我正在关注this tutorial

我还发现一篇帖子有类似但不同的问题here。在此之后,我尝试了命令cmake .. -G "Visual Studio 14 2015"。该命令的输出如下:

C:\Users\LorddMichael\Downloads\aseprite-master\aseprite-master\build>cmake .. -G "Visual Studio 14 2015"
-- The C compiler identification is MSVC 19.0.23026.0
-- The CXX compiler identification is MSVC 19.0.23026.0
-- Check for working C compiler using: Visual Studio 14 2015
-- Check for working C compiler using: Visual Studio 14 2015 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 14 2015
-- Check for working CXX compiler using: Visual Studio 14 2015 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Performing Test HAVE_STDINT_H
-- Performing Test HAVE_STDINT_H - Success
-- Performing Test HAVE_SCHED_YIELD
-- Performing Test HAVE_SCHED_YIELD - Failed
-- Performing Test ASEPRITE_LITTLE_ENDIAN
-- Performing Test ASEPRITE_LITTLE_ENDIAN - Success
CMake Warning (dev) at src/CMakeLists.txt:100 (add_subdirectory):
  The source directory

    C:/Users/LorddMichael/Downloads/aseprite-master/aseprite-master/src/flic

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt.  Run
  "cmake --help-policy CMP0014" 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.

-- Found DXGUID: C:/Program Files (x86)/Windows Kits/8.1/Lib/winv6.3/um/x86/dxguid.lib
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - not found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file gl/gl.h
-- Looking for include file gl/gl.h - not found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file rle.h
-- Looking for include file rle.h - not found
-- Looking for include file stdarg.h
-- Looking for include file stdarg.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - not found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - not found
-- Looking for include file varargs.h
-- Looking for include file varargs.h - found
-- Looking for include file X11/Xlib.h
-- Looking for include file X11/Xlib.h - not found
-- Looking for include file X11/Xutil.h
-- Looking for include file X11/Xutil.h - not found
-- Looking for vprintf
-- Looking for vprintf - not found
-- Looking for _doprnt
-- Looking for _doprnt - not found
-- Looking for strdup
-- Looking for strdup - found
CMake Error at third_party/CMakeLists.txt:43 (message):
  gtest/gtest.h is missing.  Initialize submodules: git submodule update
  --init --recursive


-- Configuring incomplete, errors occurred!
See also "C:/Users/LorddMichael/Downloads/aseprite-master/aseprite-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/LorddMichael/Downloads/aseprite-master/aseprite-master/build/CMakeFiles/CMakeError.log".

C:\Users\LorddMichael\Downloads\aseprite-master\aseprite-master\build>cmake ..
-- Building for: Visual Studio 14 2015
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
CMake Warning (dev) at src/CMakeLists.txt:100 (add_subdirectory):
  The source directory

    C:/Users/LorddMichael/Downloads/aseprite-master/aseprite-master/src/flic

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt.  Run
  "cmake --help-policy CMP0014" 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 Error at third_party/CMakeLists.txt:43 (message):
  gtest/gtest.h is missing.  Initialize submodules: git submodule update
  --init --recursive


-- Configuring incomplete, errors occurred!
See also "C:/Users/LorddMichael/Downloads/aseprite-master/aseprite-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/LorddMichael/Downloads/aseprite-master/aseprite-master/build/CMakeFiles/CMakeError.log".

0 个答案:

没有答案