CMake błędy podczas kompilacji GLFW

Odpowiedz Nowy wątek
2014-02-19 18:40
0

Witam gdy kompiluje GLFW w CMake wyskakują mi takie błędy

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:1 (project)

Pozostało 580 znaków

2014-02-19 18:59
0

Przede wszystkim CMake nie kompiluje kodu.
Po drugie podaj więcej szczegółów, takich jak: jaki os (windows?), jaki kompilator, etc.

Pozostało 580 znaków

2014-02-19 19:24
0

os: windows 7
Kompilator: Visual studio 2010( w CMake napisane jest : Visual studio 10 )

Plik CMakeOutput.log
The system is: Windows - 6.1 - AMD64

Plik CMakeErorr.log

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:  
Build flags: 
Id flags: 

The output was:
1

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Determining if files pthread.h exist failed with the following output:

Source:
/* */
#include <pthread.h>

int main(){return 0;}

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:  
Build flags: 
Id flags: 

The output was:
1

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:  
Build flags: 
Id flags: 

The output was:
1

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:  
Build flags: 
Id flags: 

The output was:
1

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:  
Build flags: 
Id flags: 

The output was:
1

Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":

Sorry pierwszy raz używam CMake i go nie ogarniam

edytowany 1x, ostatnio: bartis, 2014-02-19 19:24

Pozostało 580 znaków

2014-02-19 19:38

Spróbuj podać jako argument -G "Visual Studio 10".

Pozostało 580 znaków

2014-02-19 21:06
0

łupie pytanie a gdzie mam wpisać tan argument bo używam wersji gui cmake'a i go jeszcze nie ogarniam

Pozostało 580 znaków

2014-02-19 22:04
0

W GUI to nie mam pojęcia. W konsoli (po przejściu do katalogu głównego, który zawiera CMakeLists.txt) wpisz cmake -G "Visual Studio 10".

Pozostało 580 znaków

2014-02-21 16:20
0

Dobra teraz takie coś mi wyświetla w gui i konsoli

 The C compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
  10.0/VC/bin/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: E:/OpenGL/GLFW/CMake/CMakeFiles/CMakeTmp

  Run Build Command:C:\PROGRA~2\MICROS~4.0\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2715610898

  Microsoft (R) Visual Studio Version 10.0.30319.1.

  Copyright (C) Microsoft Corp.  All rights reserved.

  1>------ Build started: Project: cmTryCompileExec2715610898, Configuration:
  Debug Win32 ------

  1>Build started 2014-02-21 16:20:01.

  1>PrepareForBuild:

  1> Creating directory "E:\OpenGL\GLFW\CMake\CMakeFiles\CMakeTmp\Debug\".

  1>InitializeBuildStatus:

  1> Creating
  "cmTryCompileExec2715610898.dir\Debug\cmTryCompileExec2715610898.unsuccessfulbuild"
  because "AlwaysCreate" was specified.

  1>ClCompile:

  1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
  for 80x86

  1> Copyright (C) Microsoft Corporation.  All rights reserved.

  1> 

  1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
  "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
  /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2715610898.dir\Debug\\"
  /Fd"cmTryCompileExec2715610898.dir\Debug\vc100.pdb" /Gd /TC /analyze-
  /errorReport:prompt testCCompiler.c

  1> 

  1> testCCompiler.c

  1>LINK : fatal error LNK1123: failure during conversion to COFF: file
  invalid or corrupt

  1>

  1>Build FAILED.

  1>

  1>Time Elapsed 00:00:01.09

  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
  ==========

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)

Configuring incomplete, errors occurred!
See also "E:/OpenGL/GLFW/CMake/CMakeFiles/CMakeOutput.log".
See also "E:/OpenGL/GLFW/CMake/CMakeFiles/CMakeError.log".

Pozostało 580 znaków

2014-02-21 17:20
1
1>LINK : fatal error LNK1123: failure during conversion to COFF: file
invalid or corrupt

Zainstaluj SP1 do Visual Studio 2010.

edytowany 2x, ostatnio: Azarien, 2014-02-21 17:20

Pozostało 580 znaków

2014-02-22 11:17
0

Dzięki działa

Pozostało 580 znaków

Odpowiedz
Liczba odpowiedzi na stronę

1 użytkowników online, w tym zalogowanych: 0, gości: 1, botów: 0