2017-02-03 13 views
0

Я пытаюсь создать SFML 2.4.1 с CMake GUI для MinGW в Windows 10. Я получаю сообщение об ошибке «libintl-8.dll» отсутствует и куча другие ошибки.Не удается построить SFML 2.4.1 с CMake

Я проверил PATH, «C: \ MinGW \ bin» и «C: \ MinGW \ msys \ 1.0 \ bin» находятся там. Я нашел библиотеку под названием msys-intl-8.dll в «C: \ MinGW \ msys \ 1.0 \ bin», попытался переименовать ее в «libintl-8.dll». «Отсутствующая» ошибка исчезла, но остальная часть ошибок сохраняется.

сообщение в GUI CMake:

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

Мне удалось устранить проблему, мне пришлось выбирать Msys MinGW в опции генератора вместо MinGW :)

 Смежные вопросы

  • Нет связанных вопросов^_^