Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Configuring errors with cmake  (Read 14328 times)

0 Members and 1 Guest are viewing this topic.

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Configuring errors with cmake
« on: July 01, 2013, 10:52:27 am »
Hello guys,
I have some really big and strange problems with Visual Studio, maybe you saw the post with the linker.exe error (http://en.sfml-dev.org/forums/index.php?topic=11888.0)

Anyways I thought, maybe this is a problem with my current SFML build in some sort of strange error, I don't know. And for some days a newer version of SFML released, so I thought, why not build this version and everythign should work then. However I can't even configure it with cmake: I tried to re install cmake, but still same errors and I did the same thing like always (and like in the tutorial).
These are the errors:

The C compiler identification is unknown
The CXX compiler identification is unknown
Looking for sys/types.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:2 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for sys/types.h - not found
Looking for stdint.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:2 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for stdint.h - not found
Looking for stddef.h
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:2 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for stddef.h - not found
Check size of void*
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:2 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
Check size of void* - failed
CMake Error at cmake/Config.cmake:13 (message):
  Unsupported architecture
Call Stack (most recent call first):
  CMakeLists.txt:20 (include)


Configuring incomplete, errors occurred!

Hopefully somebody knows what is going on with my Compiler, I really want to use VS 2012...
Greetings Geheim!
« Last Edit: July 01, 2013, 01:06:30 pm by Geheim »
Failing to succeed does not mean failing to progress!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Configuring errors with cmake
« Reply #1 on: July 01, 2013, 11:04:15 am »
Does it work if you select the nmake generator instead of Visual Studio 2012?

And by the way, why do you want to recompile SFML?
Laurent Gomila - SFML developer

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Configuring errors with cmake
« Reply #2 on: July 01, 2013, 11:45:47 am »
It seems that I miss some path variables  :-\

I guess because I re installed VS quite often, something messed up with the variables and now I don't have them any longer...

This could also be the problem why it did not work before, right?
So I just have to add VS to the System environment variables?
However I have no clue what to add to which variable :/
I guess something in the VC folder?

And by the way, why do you want to recompile SFML?
No, sry I meant to compile my project(s) which use SFML, because I always get these errors (liner.exe, rc.exe) and can't compile them anymore :/
Failing to succeed does not mean failing to progress!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Configuring errors with cmake
« Reply #3 on: July 01, 2013, 11:54:24 am »
Open a console, call

<path-to-visual-studio>\Common7\Tools\VsDevCmd.bat

... and then run cmake (or cmake-gui) from this console.
Laurent Gomila - SFML developer

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Configuring errors with cmake
« Reply #4 on: July 01, 2013, 12:08:36 pm »
This really works perfectly now! I hope the linker.exe and rc.exe errors are gone, too...
Thanks a lot Laurent!
Failing to succeed does not mean failing to progress!

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Configuring errors with cmake
« Reply #5 on: July 01, 2013, 01:07:58 pm »
Screw VS :/
Now I have the rc.exe error in cmake...

The CXX compiler identification is MSVC 17.0.60610.1
Check for working CXX compiler using: Visual Studio 11
Check for working CXX compiler using: Visual Studio 11 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio
  11.0/VC/bin/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/Users/Julian/Downloads/build/CMakeFiles/CMakeTmp

 

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

 

  Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.60610.1.

  Copyright (C) Microsoft Corp.  Alle Rechte vorbehalten.

  1>------ Erstellen gestartet: Projekt: cmTryCompileExec2651584848,
  Konfiguration: Debug Win32 ------

  1> Microsoft (R) C/C++-Optimierungscompiler Version 17.00.60610.1 fr x86

  1> Copyright (C) Microsoft Corporation.  Alle Rechte vorbehalten.

  1>

  1> cl /c /Zi /W1 /WX- /Od /Ob0 /Oy- /D _DEBUG /D "CMAKE_INTDIR=\"Debug\""
  /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope
  /Fo"cmTryCompileExec2651584848.dir\Debug\\"
  /Fd"C:/Users/Julian/Downloads/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2651584848.pdb"
  /Gd /TP /analyze- /errorReport:prompt testCXXCompiler.cxx

  1>

  1> testCXXCompiler.cxx

  1>LINK : fatal error LNK1327: Fehler beim Ausfhren von rc.exe

  ========== Erstellen: 0 erfolgreich, 1 fehlerhaft, 0 aktuell, 0
  bersprungen ==========

 

 

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


Configuring incomplete, errors occurred!

What can cause this?
Failing to succeed does not mean failing to progress!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Configuring errors with cmake
« Reply #6 on: July 01, 2013, 01:36:26 pm »
Quote
Check for working CXX compiler using: Visual Studio 11 -- broken
:-\

You should try with the nmake generator as I suggested. Just to see if your compiler is really broken.

Quote
Fehler beim Ausfhren von rc.exe
Can you translate that please?
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Configuring errors with cmake
« Reply #7 on: July 01, 2013, 01:48:13 pm »
Quote
Fehler beim Ausfhren von rc.exe
Can you translate that please?
"Error when executing rc.exe"

Expressive as always :D
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Configuring errors with cmake
« Reply #8 on: July 01, 2013, 01:49:58 pm »
Yes, nmake works, but the "Microsoft Resource Compiler" crashed during the generating without kidding over 20 times... So my compiler is totally broken?

Yes the translation is correct :D
Failing to succeed does not mean failing to progress!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Configuring errors with cmake
« Reply #9 on: July 01, 2013, 01:55:53 pm »
Quote
So my compiler is totally broken?
It seems like it is.
Laurent Gomila - SFML developer

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Configuring errors with cmake
« Reply #10 on: July 01, 2013, 01:59:24 pm »
Hmm :/ What can I do then? Re installing did not seem to work, because I did 3 times (repairing 2 times, same)
Do I have to delete some registry values? I honestly have no clue at all what to do now  :-\
Failing to succeed does not mean failing to progress!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Configuring errors with cmake
« Reply #11 on: July 01, 2013, 02:22:21 pm »
I don't know. I've never seen this kind of problem before.

Have you tried to Google the error messages that CMake gives you, to see if it's a known error?
Laurent Gomila - SFML developer

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Configuring errors with cmake
« Reply #12 on: July 01, 2013, 03:11:32 pm »
Yes unfortunately I did...
I will try this now: http://support.microsoft.com/kb/2771441

How can I check if it is removed completely? Because I tried 3 times before and everytime if I installed it again, it was authorized, and all my extentions where there too
Failing to succeed does not mean failing to progress!

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Configuring errors with cmake
« Reply #13 on: July 01, 2013, 07:04:46 pm »
Wow it did not work again, what a surprise  >:(
Probably my last chance will be to contact microsoft...
Anyways, thank you for your help!
Failing to succeed does not mean failing to progress!

 

anything