Page 1 of 1

Cmake Error - The CXX compiler identification is unknown

PostPosted: 04 Aug 2015, 17:09
by Pineapple29
Hi All,

I'm trying to compile the code but having an error when using Cmake
I get "The C compiler identification is unknown. The CXX compiler identification is unknown"
I have Visual Studio 2015 installed per the instructions on the site
And I downloaded with SVN all the files
and also the main code folder, and also the dependencies

but I still get this error... can't figure out why, even after using Google!
I'm using Windows 8.1 if that matters
Latest Cmake (though I also tried older versions)
And also tried all the versions of Visual Studio to choose from in the Cmake Configure button
But I should be using the version 14 (2015) one... all of them produce the same error though
And I also tried running Cmake as Administrator

Does anyone have any idea how to go about this?
I think it has to do with the Env Variables of the Visual Studio not being set the way Cmake needs them to be... But I'm not sure how to go about changing that, if that's really the culprit here...

Re: Cmake Error - The CXX compiler identification is unknown

PostPosted: 05 Aug 2015, 00:45
by Auria
It would appear that CMake is unable to deletect VS2015. I do not really know what is the status, maybe cmake will need to be updated to support VS2015? I've tried searching on google but not much comes up

Re: Cmake Error - The CXX compiler identification is unknown

PostPosted: 05 Aug 2015, 03:07
by hiker

Re: Cmake Error - The CXX compiler identification is unknown

PostPosted: 06 Aug 2015, 05:25
by Pineapple29
Thank you that was indeed the problem! Had to start a project manually for VS to install the compiler for C++, then I could use Cmake to make a build.

But now I have a problem building the project in VS2015. I get almost 1000 warnings and 166 errors.
All the errors start the same way with only the file in the parentheses different:
Error C2011 'timespec': 'struct' type redefinition (compiling source file C:\supertuxkart-0.9-src\stk-code-master\src\achievements\achievement.cpp) supertuxkart C:\supertuxkart-0.9-src\stk-code-master\dependencies\include\pthread.h 307

What do you think is causing all those errors?

Re: Cmake Error - The CXX compiler identification is unknown

PostPosted: 06 Aug 2015, 05:32
by deve
It's known bug and can be workarounded in our cmake file. See:
https://github.com/supertuxkart/stk-code/issues/2257

I didn't find proper solution yet.

You probably will need also to disable wiimote support or rebuild wiimote library. It looks for me that it was built with openmp support, which is not needed at all in this case.

Re: Cmake Error - The CXX compiler identification is unknown

PostPosted: 06 Aug 2015, 19:19
by deve
Okay, now compiation with VS2015 should work without problems. I also fixed some gcc 5.1 warnings.