-
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 (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!
-
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?
-
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 :/
-
Open a console, call
<path-to-visual-studio>\Common7\Tools\VsDevCmd.bat
... and then run cmake (or cmake-gui) from this console.
-
This really works perfectly now! I hope the linker.exe and rc.exe errors are gone, too...
Thanks a lot Laurent!
-
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 fr 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 Ausfhren 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?
-
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.
Fehler beim Ausfhren von rc.exe
Can you translate that please?
-
Fehler beim Ausfhren von rc.exe
Can you translate that please?
"Error when executing rc.exe"
Expressive as always :D
-
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
-
So my compiler is totally broken?
It seems like it is.
-
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 :-\
-
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?
-
Yes unfortunately I did...
I will try this now: http://support.microsoft.com/kb/2771441 (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
-
Wow it did not work again, what a surprise >:(
Probably my last chance will be to contact microsoft...
Anyways, thank you for your help!