Ir para conteúdo
  • 0

Erro no CMake


masdead

Pergunta

Estou com um rpoblema eu fiz tudo como manda nesse tutorial:

http://www.xtibia.com/forum/forum/924-tutoriais/

 

E mesmo assim está dando um erro no CMake

 

 

 

 

The C compiler identification is GNU 4.7.2

The CXX compiler identification is unknown

Check for working C compiler: C:/MinGW/bin/gcc.exe

Check for working C compiler: C:/MinGW/bin/gcc.exe -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Check for working CXX compiler: C:/MinGW/bin/g++.exe

Check for working CXX compiler: C:/MinGW/bin/g++.exe -- broken

CMake Error at C:/Arquivos de programas/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):

The C++ compiler "C:/MinGW/bin/g++.exe" is not able to compile a simple

test program.

It fails with the following output:

Change Dir: C:/Documents and Settings/Administrador/Desktop/CMakeFiles/CMakeTmp

 

Run Build Command:C:/MinGW/bin/mingw32-make.exe

"cmTryCompileExec3172453586/fast"

C:/MinGW/bin/mingw32-make.exe -f

CMakeFiles\cmTryCompileExec3172453586.dir\build.make

CMakeFiles/cmTryCompileExec3172453586.dir/build

mingw32-make.exe[1]: Entering directory 'C:/Documents and

Settings/Administrador/Desktop/CMakeFiles/CMakeTmp'

"C:\Arquivos de programas\CMake 2.8\bin\cmake.exe" -E cmake_progress_report

"C:\Documents and

Settings\Administrador\Desktop\CMakeFiles\CMakeTmp\CMakeFiles" 1

Building CXX object

CMakeFiles/cmTryCompileExec3172453586.dir/testCXXCompiler.cxx.obj

C:\MinGW\bin\g++.exe -o

CMakeFiles\cmTryCompileExec3172453586.dir\testCXXCompiler.cxx.obj -c

"C:\Documents and

Settings\Administrador\Desktop\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"

g++.exe: error: CreateProcess: No such file or directory

CMakeFiles\cmTryCompileExec3172453586.dir\build.make:59: recipe for target

'CMakeFiles/cmTryCompileExec3172453586.dir/testCXXCompiler.cxx.obj' failed

mingw32-make.exe[1]: ***

[CMakeFiles/cmTryCompileExec3172453586.dir/testCXXCompiler.cxx.obj] Error

1

mingw32-make.exe[1]: Leaving directory 'C:/Documents and

Settings/Administrador/Desktop/CMakeFiles/CMakeTmp'

Makefile:116: recipe for target 'cmTryCompileExec3172453586/fast' failed

mingw32-make.exe: *** [cmTryCompileExec3172453586/fast] Error 2

 

 

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt:2 (project)

Configuring incomplete, errors occurred!

 

 

Alguém sabe o que pode me ajudar?

 

-----------------------Edit---------------------

 

Consegui arrumar esse erro tive que reinstalar o MinGW, agora consegui compilar sem nenhum erro, mas quando eu vou abrir o executável compilado (já está na pasta das sources) ele da erro e precisa ser fechado

 

 

CgdnAi.png

 

 

Alguém pode me ajudar?

Editado por DuMal
Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

×
×
  • Criar Novo...