Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Can';t在VS2015中使用CMake编译Aseprite_C++_Git_Cmake - Fatal编程技术网

C++ Can';t在VS2015中使用CMake编译Aseprite

C++ Can';t在VS2015中使用CMake编译Aseprite,c++,git,cmake,C++,Git,Cmake,我正在尝试使用CMake制作一个Visual Studio解决方案,以编译最新版本的Aseprite 我已经有了Visual Studio 2015和DirectX SDK,我正在关注 我还发现了一个帖子,有一个类似但不同的问题。接下来,我尝试了命令cmake-G“Visual Studio 14 2015”。此命令的输出如下所示: C:\Users\LorddMichael\Downloads\aseprite-master\aseprite-master\build>cmake ..

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

我已经有了Visual Studio 2015和DirectX SDK,我正在关注

我还发现了一个帖子,有一个类似但不同的问题。接下来,我尝试了命令
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".

C:/Users/LorddMichael/Downloads/aseprite master/aseprite master/src/flic我想这意味着您的下载错误或文件夹错误,因为CMake需要CmakeList.txt进一步查看库:我猜当您进行git克隆时,您错过了
--recursive
参数,因此没有克隆外部。flic是一个位于上的外部存储库,作为不同的存储库。如果没有这个外部CMake的源,它将失败。@drescherjm它成功了,谢谢:)@LorddLazaro-我遇到了同样的问题,然后用--recursive解决方案修复了它,但我仍然没有得到一个包含可执行文件的bin文件夹。你能分享一下你为解决这个问题做了什么吗?