我正在尝试安装使用cmake构建Unix Makefile的python Gym-retro库。但是,在此过程中出现以下错误:
我在Windows 10 x64上运行。 Python 3.6.3和Gym-Retro 0.6.0
CmakeErrorList:
Detecting C compiler ABI info failed to compile with the following output:
Change Dir: C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp
Run Build Command:"C:/PROGRA~2/CODEBL~1/make.exe" "cmTC_fc586/fast"
Starting cbp2make rev.147...
Using default configuration.
Cannot copy output executable
''
to destination specified by COPY_FILE:
'C:/Git/gym-retro/bin/CMakeFiles/3.12.2/CMakeDetermineCompilerABI_C.bin'
Unable to find the executable at any of:
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/cmTC_fc586.exe
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/Debug/cmTC_fc586.exe
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/Development/cmTC_fc586.exe
Detecting C [-std=c11] compiler features failed to compile with the following output:
Change Dir: C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp
Run Build Command:"C:/PROGRA~2/CODEBL~1/make.exe" "cmTC_9e0fb/fast"
Starting cbp2make rev.147...
Using default configuration.
Cannot copy output executable
''
to destination specified by COPY_FILE:
'C:/Git/gym-retro/bin/CMakeFiles/feature_tests.bin'
Unable to find the executable at any of:
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/cmTC_9e0fb.exe
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/Debug/cmTC_9e0fb.exe
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/Development/cmTC_9e0fb.exe
Detecting CXX compiler ABI info failed to compile with the following output:
Change Dir: C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp
Run Build Command:"C:/PROGRA~2/CODEBL~1/make.exe" "cmTC_318a9/fast"
Starting cbp2make rev.147...
Using default configuration.
Cannot copy output executable
''
to destination specified by COPY_FILE:
'C:/Git/gym-retro/bin/CMakeFiles/3.12.2/CMakeDetermineCompilerABI_CXX.bin'
Unable to find the executable at any of:
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/cmTC_318a9.exe
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/Debug/cmTC_318a9.exe
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/Development/cmTC_318a9.exe
Detecting CXX [-std=c++1z] compiler features failed to compile with the following output:
Change Dir: C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp
Run Build Command:"C:/PROGRA~2/CODEBL~1/make.exe" "cmTC_aeefc/fast"
Starting cbp2make rev.147...
Using default configuration.
Cannot copy output executable
''
to destination specified by COPY_FILE:
'C:/Git/gym-retro/bin/CMakeFiles/feature_tests.bin'
Unable to find the executable at any of:
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/cmTC_aeefc.exe
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/Debug/cmTC_aeefc.exe
C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp/Development/cmTC_aeefc.exe
CMakeOutput:
The system is: Windows - 10.0.17134 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/MinGW/bin/gcc.exe
Build flags:
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.exe"
The C compiler identification is GNU, found in "C:/Git/gym-retro/bin/CMakeFiles/3.12.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/c++.exe
Build flags:
Id flags:
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
The CXX compiler identification is GNU, found in "C:/Git/gym-retro/bin/CMakeFiles/3.12.2/CompilerIdCXX/a.exe"
Determining if the C compiler works passed with the following output:
Change Dir: C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp
Run Build Command:"C:/PROGRA~2/CODEBL~1/make.exe" "cmTC_b7619/fast"
Starting cbp2make rev.147...
Using default configuration.
Determining if the CXX compiler works passed with the following output:
Change Dir: C:/Git/gym-retro/bin/CMakeFiles/CMakeTmp
Run Build Command:"C:/PROGRA~2/CODEBL~1/make.exe" "cmTC_1bba6/fast"
Starting cbp2make rev.147...
Using default configuration.
运行pip3 install gym-retro后的Powershell日志: Pastebin
我不知道为什么会这样,我尝试重新安装MinGW和CMake或以管理员身份运行pip3 install,但这没有用。