我正在尝试使用适用于Windows 10的MinGW的CMake GUI构建SFML 2.4.1。我收到一条错误消息,说明" libintl-8.dll"缺少一堆其他错误。
我检查了PATH," C:\ MinGW \ bin"和" C:\ MinGW \ msys \ 1.0 \ bin"都在那里。我找到了一个名为" msys-intl-8.dll"在" C:\ MinGW \ msys \ 1.0 \ bin"中,尝试将其重命名为" libintl-8.dll"。 "失踪"错误消失但其余错误仍然存在。
CMake GUI中的消息:
The C compiler identification is GNU 5.3.0
The CXX compiler identification is GNU 5.3.0
Check for working C compiler: C:/MinGW/bin/gcc.exe
CMake Error: Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_73327/fast"
Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/CMake/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_73327/fast"
Generator: execution of make failed. Make command was:
"C:/MinGW/bin/mingw32-make.exe" "cmTC_73327/fast
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:40 (project)
" CMakeOutput.log"的内容:
The system is: Windows - 10.0.14393 - 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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdCXX/a.exe"
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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdCXX/a.exe"
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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdCXX/a.exe"
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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdCXX/a.exe"
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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdCXX/a.exe"
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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdCXX/a.exe"
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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdCXX/a.exe"
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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdC/a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.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:/SFML/SFML-2.4.1-source/build/CMakeFiles/3.7.2/CompilerIdCXX/a.exe"
" CMakeError.log"的内容:
Determining if the C compiler works failed with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_2426e/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_2426e/fast"
Determining if the C compiler works failed with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_acc1b/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_acc1b/fast"
Determining if the C compiler works failed with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_9db84/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_9db84/fast"
Determining if the C compiler works failed with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_4e89a/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_4e89a/fast"
Determining if the C compiler works failed with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_570e4/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_570e4/fast"
Determining if the C compiler works failed with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_ef272/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_ef272/fast"
Determining if the C compiler works failed with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_6bcbb/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_6bcbb/fast"
Determining if the C compiler works failed with the following output:
Change Dir: C:/SFML/SFML-2.4.1-source/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_73327/fast"
Generator: execution of make failed. Make command was: "C:/MinGW/bin/mingw32-make.exe" "cmTC_73327/fast"
答案 0 :(得分:0)
我负责修复问题,我不得不在发电机选项中选择Msys MinGW而不仅仅是MinGW:)