Cmake Error - The CXX compiler identification is unknown

Cmake Error - The CXX compiler identification is unknown

Postby Pineapple29 » 04 Aug 2015, 17:09

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...
Pineapple29
 
Posts: 2
Joined: 04 Aug 2015, 16:54

Re: Cmake Error - The CXX compiler identification is unknown

Postby Auria » 05 Aug 2015, 00:45

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Cmake Error - The CXX compiler identification is unknown

Postby hiker » 05 Aug 2015, 03:07

hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Cmake Error - The CXX compiler identification is unknown

Postby Pineapple29 » 06 Aug 2015, 05:25

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?
Pineapple29
 
Posts: 2
Joined: 04 Aug 2015, 16:54

Re: Cmake Error - The CXX compiler identification is unknown

Postby deve » 06 Aug 2015, 05:32

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.
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Re: Cmake Error - The CXX compiler identification is unknown

Postby deve » 06 Aug 2015, 19:19

Okay, now compiation with VS2015 should work without problems. I also fixed some gcc 5.1 warnings.
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Who is online

Users browsing this forum: No registered users and 1 guest