FreeOrion

Forums for the FreeOrion project
It is currently Sun Nov 19, 2017 3:22 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: compile problem
PostPosted: Sat Dec 12, 2015 5:05 am 
Offline
Space Kraken

Joined: Mon Nov 16, 2015 5:57 am
Posts: 105
Im getting a error in one spot the freeorion project itself.

In the class Designwnd.cpp ...
in method float GetMainStat ...
in the first switch statement ...

two cases are throwing a undefined error
im getting a error for these two


case PC_FIGHTER_BAY:
case PC_FIGHTER_WEAPON:


What am i missing ?
Did something go wrong when the bootstrap when it grabed the master.
What should i do now ...?

I didn't understand the boot strapper at all it made it easy but its not compiling.
Shouldn't i have had to fork a branch or something.
I really stink with github stuff.


Top
 Profile  
 
 Post subject: Re: compile problem
PostPosted: Sat Dec 12, 2015 5:13 am 
Offline
Space Squid

Joined: Mon Aug 27, 2012 7:24 pm
Posts: 56
This is a bug in the latest commit, which is a risk when using experimental builds. What I would suggest is to comment out the two offending lines and recompile.

_________________
All contributions are submitted under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidlines.


Top
 Profile  
 
 Post subject: Re: compile problem
PostPosted: Sat Dec 12, 2015 5:16 am 
Offline
Space Kraken

Joined: Mon Nov 16, 2015 5:57 am
Posts: 105
i was just about to start trying that but you know deleting on a first compile i was thinking its me.


Top
 Profile  
 
 Post subject: Re: compile problem
PostPosted: Sat Dec 12, 2015 6:11 am 
Offline
Space Squid

Joined: Mon Aug 27, 2012 7:24 pm
Posts: 56
Yeah, I know how that goes. Good luck.

_________________
All contributions are submitted under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidlines.


Top
 Profile  
 
 Post subject: Re: compile problem
PostPosted: Sat Dec 12, 2015 8:42 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
Hopefully fixed: https://github.com/freeorion/freeorion/ ... 4ff7677e83


Top
 Profile  
 
 Post subject: Re: compile problem
PostPosted: Sat Dec 12, 2015 7:43 pm 
Offline
Space Kraken

Joined: Mon Nov 16, 2015 5:57 am
Posts: 105
It builds with no errors but then im getting errors when i actually try to run it.
Im very much a noob at git, ive only dabbled with it.
The bootstrapper made it easier but all the more confusing as to what all it did.

Can you normally execute the program after a build ?
Or do you guys just build this then install it to test it ?
The console is saying something about it cant install ?

Im guessing something else messed up this is what appears in the output window.
Quote:
bunches of these
SysWOW64\ws2_32.dll'. Cannot find or open the PDB file (i think thats the symbols for debugging).
followed by
First-chance exception at 0x7532C42D in FreeOrion.exe: Microsoft C++ exception: std::runtime_error at memory location 0x0018FCF0.
However this is not being handled automatically
nor is the debugger continuing to execute so i cant get any more info.


Quote:
Hopefully fixed: https://github.com/freeorion/freeorion/ ... 4ff7677e83


So should i delete the FO folder and run the bootstrapper again?
or
Download again hard reset or fork it or what ?

please advise, thanks.

edit:
Im just dling the whole sdk over again and starting from scratch.
edit:
bootstrapper has a bug see below.


Last edited by xlightwavex on Sun Dec 13, 2015 12:54 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: compile problem
PostPosted: Sun Dec 13, 2015 12:41 am 
Offline
Space Kraken

Joined: Mon Nov 16, 2015 5:57 am
Posts: 105
Found the problem...
The bootstrapper is dropping the "default" folder into a path the app isn't looking, placing it here...

...\FreeOrion_VS2013_sdk_apr_2015\

But the app is searching for the folder within

...\FreeOrion_VS2013_sdk_apr_2015\msvc2013\FreeOrion\

Only the console window gives a clue as to what was wrong, its easy to miss.
Im guessing that is unintended ?

i copied the whole folder over, and it worked.


Top
 Profile  
 
 Post subject: Re: compile problem
PostPosted: Sun Dec 13, 2015 3:48 pm 
Offline
Release Manager, Design
User avatar

Joined: Wed Nov 16, 2011 12:56 pm
Posts: 4241
Location: Sol III
xlightwavex wrote:
The bootstrapper is dropping the "default" folder into a path the app isn't looking, placing it here...

...\FreeOrion_VS2013_sdk_apr_2015\
Well, that isn't exactly correct - the bootstrapper doesn't drop the "default" folder anywhere, it just clones the FO git repo and checks out master. The "default" folder therefore is right where it's located in the source tree as it's provided by the repo. The location you found it is where the "default" folder is intended to be.
Quote:
But the app is searching for the folder within

...\FreeOrion_VS2013_sdk_apr_2015\msvc2013\FreeOrion\
This however is not where the app should look for the default folder. Maybe your config.xml has been messed up, please delete it and try again (see here for the location of the config.xml file).

If that doesn't help, there might be a bug in the MSVC solution or the contained projects settings somewhere that make the FreeOrion.exe executable look for the "default" folder in the wrong location when launched directly from the working copy.


Top
 Profile  
 
 Post subject: Re: compile problem
PostPosted: Sun Dec 13, 2015 6:11 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12013
Location: Munich
If you're attempting to run FreeOrion using the MSVC run button, then you first need to edit the project's working directory to be $(TargetDir). That setting isn't, as far as I know, stored in the project files, so you need to set it locally for that button to work. The normal / expect way to run FreeOrion for dev purposes on Windows is to run "Freeorion.exe" from a command prompt in the FreeOrion directory in the main SDK directory.


Attachments:
working_dir.png
working_dir.png [ 33.91 KiB | Viewed 5213 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 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