FreeOrion

Forums for the FreeOrion project
It is currently Sat Nov 18, 2017 9:21 pm

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: compile error
PostPosted: Mon Jan 23, 2017 12:41 pm 
Offline
Graphics
User avatar

Joined: Tue Jul 01, 2003 8:27 pm
Posts: 705
Since I last pulled the source from master when trying to compile I receive a lot of errors of this type:
Code:
error C3646: 'noexcept' : unknown override specifier (..\..\GG\src\Button.cpp)   C:\Users\...\Documents\FreeOrion\FreeOrion\GG\GG\Exception.h   48   1   GiGi
Any idea what causes it? (MSVC 2013)

_________________
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Mon Jan 23, 2017 1:00 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
The Silent One wrote:
(MSVC 2013)
Might need to update to 2015 for additional C++11 features...

Edit: yep: https://msdn.microsoft.com/en-us/library/hh567368.aspx

Presumably since: https://github.com/freeorion/freeorion/ ... efff1fa596 (although the commit log doesn't really make that clear...)


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Mon Jan 23, 2017 1:24 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4241
Location: Sol III
As Geoff mentioned, we've switched to MSVC 2015 and C++11 support. So you need MSVC 2015 and the new SDK to build commit e8f3881 (tagged "with-FreeOrionSDK-v3") or later.

See this post in the FreeOrion Windows SDK thread.

The current v3 of the new SDK for Windows still might have a glitch, please report back if you encounter issues. I think there might be a problem when you try to run the FO executable built with the new SDK. A fix has already been committed, but Marcel hasn't released a new version yet.


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Mon Jan 23, 2017 5:27 pm 
Offline
Graphics
User avatar

Joined: Tue Jul 01, 2003 8:27 pm
Posts: 705
Thanks for your help guys. I've installed MSVC 2015 and the new SDK, here's what I get when compiling:
Code:
1>freetype255MT.lib(winfnt.obj) : warning LNK4099: PDB "freetype.pdb" wurde nicht mit "freetype255MT.lib(winfnt.obj)" oder an "C:\Users\...\Documents\FreeOrion\FreeOrion\freetype.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
Lots of those and:
Code:
>------ Erstellen gestartet: Projekt: Common, Konfiguration: Release Win32 ------
4>  Configuring Version.cpp
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" wurde mit dem Code -1073741515 beendet.
After that some errors because common.lib hasn't been created.

_________________
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Mon Jan 23, 2017 6:09 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
How did you "install" the SDK?


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Mon Jan 23, 2017 6:50 pm 
Offline
Graphics
User avatar

Joined: Tue Jul 01, 2003 8:27 pm
Posts: 705
I ran bootstrap.bat as administrator.

_________________
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Tue Jan 24, 2017 4:14 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4241
Location: Sol III
The Silent One wrote:
Code:
>------ Erstellen gestartet: Projekt: Common, Konfiguration: Release Win32 ------
4>  Configuring Version.cpp
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" wurde mit dem Code -1073741515 beendet.
Ah yes, that has been the glitch. Now I remember, it's not that the final build crashes, but this strange build error. Don't have time right now, have to catch a bus, but will get back to you ASAP.


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Wed Jan 25, 2017 5:56 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4241
Location: Sol III
@TheSilentOne, here is another version of the SDK for Windows for you to try:

https://dl.dropboxusercontent.com/u/50689031/FreeOrionSDK_4rc1_MSVC-v140-xp.zip


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Wed Jan 25, 2017 6:00 pm 
Offline
Programmer
User avatar

Joined: Fri Mar 01, 2013 9:52 am
Posts: 1040
Location: Germany
Vezzra wrote:
The Silent One wrote:
Code:
>------ Erstellen gestartet: Projekt: Common, Konfiguration: Release Win32 ------
4>  Configuring Version.cpp
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" wurde mit dem Code -1073741515 beendet.
Ah yes, that has been the glitch. Now I remember, it's not that the final build crashes, but this strange build error. Don't have time right now, have to catch a bus, but will get back to you ASAP.


Is this already fixed in the SDK?

Quote:
A fix has already been committed, but Marcel hasn't released a new version yet.


I don't remember any report similar to that. :/

_________________
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Wed Jan 25, 2017 6:28 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4241
Location: Sol III
adrian_broher wrote:
Is this already fixed in the SDK?
Sure, since over a month, by yourself actually: 72f135c
Quote:
I don't remember any report similar to that. :/
Ok, you must really have been stressed out at that time - apparently you pushed the fix and immediately forgot about it. I've been wondering when you were getting around to release v4 with that fix, as it's quite important, but thought that you probably had some other unfinished stuff you wanted included... so maybe release v4 now before we get more complaints about an already fixed issue? :D


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Thu Jan 26, 2017 1:18 pm 
Offline
Graphics
User avatar

Joined: Tue Jul 01, 2003 8:27 pm
Posts: 705
Vezzra wrote:
@TheSilentOne, here is another version of the SDK for Windows for you to try:

https://dl.dropboxusercontent.com/u/50689031/FreeOrionSDK_4rc1_MSVC-v140-xp.zip
Works, thank you.

_________________
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Wed Feb 15, 2017 4:44 pm 
Offline
Programmer
User avatar

Joined: Fri Mar 01, 2013 9:52 am
Posts: 1040
Location: Germany
I think it's time to drop the Visual Studio 2013 project files to avoid confusion. A good chunk is now C++11 enabled and that won't change anymore.

_________________
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz


Top
 Profile  
 
 Post subject: Re: compile error
PostPosted: Wed Feb 15, 2017 5:30 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
adrian_broher wrote:
I think it's time to drop the Visual Studio 2013 project files...
Done.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 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:  
Powered by phpBB® Forum Software © phpBB Group