2014-10-25 5 views
4

У меня проблема с созданием проекта под Windows 7 64bit. Я уже посмотрел похожие вопросы на SO, но не нашел правильного решения. Когда я бегу:MinGW «Точка входа процедуры libintl_setlocale не может быть найдена ...»

cmake -v -G "MSYS Makefiles" CMakeLists.txt 

это дает мне следующий вывод:

> -- The C compiler identification is unknown 
-- Check for working C compiler: c:/MinGW/bin/gcc.exe 
-- Check for working C compiler: c:/MinGW/bin/gcc.exe -- broken 
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/CMakeTestCCo 
mpiler.cmake:61 (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:/Users/Sony/Documents/Computer_Graphics/assignment_01/programmi 
ng/glfw/CMakeFiles/CMakeTmp 



    Run Build Command:"C:/MinGW/msys/1.0/bin/make.exe" 
    "cmTryCompileExec1735268707/fast" 

    /usr/bin/make -f CMakeFiles/cmTryCompileExec1735268707.dir/build.make 
    CMakeFiles/cmTryCompileExec1735268707.dir/build 

    make[1]: Entering directory 
    `/c/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMak 
eFiles/CMakeTmp' 


    "/C/Program Files (x86)/CMake/bin/cmake.exe" -E cmake_progress_report 
    /C/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMake 
Files/CMakeTmp/CMakeFiles 
    1 

    Building C object 
    CMakeFiles/cmTryCompileExec1735268707.dir/testCCompiler.c.obj 

    /c/MinGW/bin/gcc.exe -o 
    CMakeFiles/cmTryCompileExec1735268707.dir/testCCompiler.c.obj -c 
    /C/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMake 
Files/CMakeTmp/testCCompiler.c 


    make[1]: *** 
    [CMakeFiles/cmTryCompileExec1735268707.dir/testCCompiler.c.obj] Error 1 

    make[1]: Leaving directory 

Кроме того, я получаю следующее сообщение, сообщение об ошибке в 3 раза, при попытке компиляции, он говорит: «Точка libintl_setlocale входа процедура не может быть расположен в библиотека libintl-8.dll»

CMakeError.log:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags:

The output was: 1

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags: -c

The output was: 1

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa

The output was: 1 :0:1: error: missing '(' after predicate

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp

Run Build Command:"C:/MinGW/msys/1.0/bin/make.exe" "cmTryCompileExec2453403923/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec2453403923.dir/build.make CMakeFiles/cmTryCompileExec2453403923.dir/build make[1]: Entering directory /c/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp' "/c/Program Files (x86)/CMake/bin/cmake.exe" -E cmake_progress_report /C/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2453403923.dir/testCCompiler.c.obj /c/MinGW/bin/gcc.exe -o CMakeFiles/cmTryCompileExec2453403923.dir/testCCompiler.c.obj -c /C/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp/testCCompiler.c make[1]: Leaving directory /c/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp' make[1]: * [CMakeFiles/cmTryCompileExec2453403923.dir/testCCompiler.c.obj] Error 1 make: * [cmTryCompileExec2453403923/fast] Error 2

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags:

The output was: 1

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags: -c

The output was: 1

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa

The output was: 1 :0:1: error: missing '(' after predicate

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp

Run Build Command:"C:/MinGW/msys/1.0/bin/make.exe" "cmTryCompileExec78678067/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec78678067.dir/build.make CMakeFiles/cmTryCompileExec78678067.dir/build make[1]: Entering directory /c/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp' "/C/Program Files (x86)/CMake/bin/cmake.exe" -E cmake_progress_report /C/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec78678067.dir/testCCompiler.c.obj /c/MinGW/bin/gcc.exe -o CMakeFiles/cmTryCompileExec78678067.dir/testCCompiler.c.obj -c /C/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp/testCCompiler.c make[1]: make[1]: Leaving directory /c/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp' * [CMakeFiles/cmTryCompileExec78678067.dir/testCCompiler.c.obj] Error 1 make: * [cmTryCompileExec78678067/fast] Error 2

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags:

The output was: 1

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags: -c

The output was: 1

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa

The output was: 1 :0:1: error: missing '(' after predicate

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp

Run Build Command:"C:/MinGW/msys/1.0/bin/make.exe" "cmTryCompileExec1735268707/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec1735268707.dir/build.make CMakeFiles/cmTryCompileExec1735268707.dir/build make[1]: Entering directory /c/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp' "/C/Program Files (x86)/CMake/bin/cmake.exe" -E cmake_progress_report /C/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1735268707.dir/testCCompiler.c.obj /c/MinGW/bin/gcc.exe -o CMakeFiles/cmTryCompileExec1735268707.dir/testCCompiler.c.obj -c /C/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp/testCCompiler.c make[1]: *** [CMakeFiles/cmTryCompileExec1735268707.dir/testCCompiler.c.obj] Error 1 make[1]: Leaving directory /c/Users/Sony/Documents/Computer_Graphics/assignment_01/programming/glfw/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec1735268707/fast] Error 2

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags:

The output was: 1

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: c:/MinGW/bin/gcc.exe Build flags: Id flags: -c

The output was: 1

Альс o my Path Environment Variable:

C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Sony\VAIO Improvement\;C:\Program Files (x86)\Sony\VAIO Startup Setting Tool;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\MVActiveX\;C:\Java\jdk1.7.0_09\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\TortoiseHg\;C:\Program Files\MATLAB\R2013a\runtime\win64;C:\Program Files\MATLAB\R2013a\bin;C:\MinGW\bin;C:\Program Files (x86)\CMake\bin

Я установил и переустановил mingw и исследовал переменную пути, но до сих пор не имеет решения. Любые идеи, где я ошибаюсь?

ответ

1

Drop libintl-8.dll в System32/SysWOW64, и он должен работать нормально.

+0

Я действительно сделал, я также попытался заменить его, но ничего не работает – TheGreatLamer

0

Это несколько неосведомленная догадка, но проблема с libintl-8.dll может возникнуть из-за проблем с дорогой. Где-то на вашем пути у вас может быть более старая версия lib с разными точками входа. Убедитесь, что у вас установлена ​​последняя версия MinGW и всех соответствующих библиотек, а затем попробуйте переместить MinGW \ bin в верхнюю часть переменной пути.

Для другого примера того, что, как представляется, эта проблема в действии, см: MinGW "The procedure entry point libiconv could not be located ..."

Ответ на этот вопрос связан помог мне решить подобную проблему у меня был.

+0

Я видел эту ссылку, как тысячу других. К сожалению, это не было в моем случае. Наверное, у меня неправильная конфигурация для начала. – TheGreatLamer

6

Я только что нашел ответ на это: у меня был другой libintl-8.dll на моем пути.

ли это из командной строки:

where libintl-8.dll 

Затем переименуйте все из них, кроме того, в дереве MinGW.

Если это не удается, может потребоваться переустановка вашего дерева MinGW. Удачи.

+0

команда «где» была именно тем, что мне нужно. У меня была установка Lua, в которой была и DLL, и это вызвало конфликты. –

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