FreeOrion

Forums for the FreeOrion project
It is currently Tue Oct 17, 2017 11:36 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue May 30, 2017 4:59 am 
Offline
Space Krill

Joined: Mon May 29, 2017 10:05 pm
Posts: 7
Does anyone have problem compiling FreeOrion using Microsoft Visual Studio 2015 Update 3?

I follow the instruction at http://freeorion.org/index.php/Compile_In_Windows and got the "master" from GitHub. I am not sure if this is the latest or not. I have to change the Target Platform Version from 8.1 to 10.0.14393.0 otherwise it complains about missing header files. But now I am stuck at

Error C2996 'CombatEvent::serialize': recursive function template definition Common D:\VS\2015\Gaming\FreeOrion\FreeOrion\combat\CombatEvents.cpp 1172

I search the forum but didn't find anyone mention C2996 but searching the web did return 1 hit. It's 3 years old and whatever the problem is it was fixed in Boost 1.56. https://svn.boost.org/trac/boost/ticket/10348

I am not sure what is the actual cause of the error message because I don't know where to look for the problem. Line 1172 is the end of the file. I looked through CombatEvents.cpp but didn't actually see any problem. Any idea what is going on?


Top
 Profile  
 
PostPosted: Tue May 30, 2017 5:58 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 11999
Location: Munich
FOFOFOFO wrote:
I have to change the Target Platform Version from 8.1 to 10.0.14393.0 ...
Where / how do you change this setting?


Top
 Profile  
 
PostPosted: Tue May 30, 2017 6:08 am 
Offline
Space Krill

Joined: Mon May 29, 2017 10:05 pm
Posts: 7
Geoff the Medio wrote:
FOFOFOFO wrote:
I have to change the Target Platform Version from 8.1 to 10.0.14393.0 ...
Where / how do you change this setting?


Right click on each of the projects (Common, FreeOrion, FreeOrionCA, etc), select Properties.
At Project Properties Pages, under Configuration Properties->General->Target Platform Version.

This is only needed because I think Visual Studio does not install Windows 8.1 SDK or CRT or something by default. Anyway I only have Windows 10 installed.


Top
 Profile  
 
PostPosted: Tue May 30, 2017 7:15 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 11999
Location: Munich
Can you get the 8.1 version of the Windows SDK (which I thought used to be called Platform Toolset)? I thought the various SDKs were specific to the MSVC version, not the OS version, though I haven't been cross-compiling for different Windows versions.


Top
 Profile  
 
PostPosted: Wed May 31, 2017 1:54 am 
Offline
Space Krill

Joined: Mon May 29, 2017 10:05 pm
Posts: 7
Geoff the Medio wrote:
Can you get the 8.1 version of the Windows SDK (which I thought used to be called Platform Toolset)? I thought the various SDKs were specific to the MSVC version, not the OS version, though I haven't been cross-compiling for different Windows versions.


Okay I am downloading it now. It will probably take awhile. I should be able to find out tomorrow.


Top
 Profile  
 
PostPosted: Thu Jun 01, 2017 12:21 am 
Offline
Space Krill

Joined: Mon May 29, 2017 10:05 pm
Posts: 7
FOFOFOFO wrote:
Geoff the Medio wrote:
Can you get the 8.1 version of the Windows SDK (which I thought used to be called Platform Toolset)? I thought the various SDKs were specific to the MSVC version, not the OS version, though I haven't been cross-compiling for different Windows versions.


Okay I am downloading it now. It will probably take awhile. I should be able to find out tomorrow.



I installed Windows 8.1 SDK from https://developer.microsoft.com/en-us/w ... ws-8-1-sdk
Is this the one you want me to install?
Change Target Platform version to 8.1 (Project properties->Configuration Properties->General->Target Platform Version = 8.1)
Rebuild Solution
Got tons of "cannot open source file ..." error on header files such as string.h, wchar.h
Change Target Platform version to 10.0.10586.0
Rebuild Solution
Got a few C2996 recursive function template definition errors


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group