C++ 正在尝试使用Cmake在Windows 8上构建SFML。但Cmake正在失败

C++ 正在尝试使用Cmake在Windows 8上构建SFML。但Cmake正在失败,c++,cmake,sfml,C++,Cmake,Sfml,我正在尝试在Windows8上构建SFML,并使用cmake创建一个VisualStudio2010项目。程序给了我一个错误,我不知道该怎么办 有什么帮助吗?这是cmake的输出 The C compiler identification is unknown The CXX compiler identification is unknown Check for working C compiler using: Visual Studio 10 Check for working C com

我正在尝试在Windows8上构建SFML,并使用cmake创建一个VisualStudio2010项目。程序给了我一个错误,我不知道该怎么办

有什么帮助吗?这是cmake的输出

The C compiler identification is unknown
The CXX compiler identification is unknown
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/2.8.10.2/CMakeDetermineCompilerABI_C.bin'

  Unable to find the executable at any of:

    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/cmTryCompileExec3899792351.exe
    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3899792351.exe
    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec3899792351.exe

Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:17 (project)


Detecting C compiler ABI info - done
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:52 (file):
  file STRINGS file
  "C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/2.8.10.2/CMakeDetermineCompilerABI_C.bin"
  cannot be read.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:75 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:17 (project)


Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/2.8.10.2/CMakeDetermineCompilerABI_CXX.bin'

  Unable to find the executable at any of:

    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/cmTryCompileExec1219109554.exe
    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec1219109554.exe
    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec1219109554.exe

Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:17 (project)


Detecting CXX compiler ABI info - done
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:52 (file):
  file STRINGS file
  "C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/2.8.10.2/CMakeDetermineCompilerABI_CXX.bin"
  cannot be read.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:17 (project)


Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of void*
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CheckTypeSize.cmake:92 (try_compile):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CheckTypeSize/SIZEOF_VOID_PTR.bin'

  Unable to find the executable at any of:

    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/cmTryCompileExec3928396189.exe
    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3928396189.exe
    C:/Users/Zachary/Downloads/SFML/build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec3928396189.exe

Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CheckTypeSize.cmake:177 (__check_type_size_impl)
  cmake/Config.cmake:7 (check_type_size)
  CMakeLists.txt:20 (include)


CMake Error at cmake/Config.cmake:13 (message):
  Unsupported architecture
Call Stack (most recent call first):
  CMakeLists.txt:20 (include)


Configuring incomplete, errors occurred!

以管理员身份启动终端。

cygwin帮助了我。

您是从Visual Studio 2010命令提示符执行CMake和/或使用
-G“Visual Studio 10”
CMake标志吗?这是来自CMake gui的。但是我也尝试过在visualstuio2010命令提示符下使用cmake-G“visualstuido10”。您的编译器设置有问题。这个错误发生在任何特定于SFML的东西开始之前。你甚至可以编译一个简单的例子,比如CMake教程吗?您使用的是哪个CMake版本?