FreeOrion

Forums for the FreeOrion project
It is currently Tue Oct 24, 2017 11:05 am

All times are UTC




Post new topic Reply to topic  [ 49 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: FreeOrion Windows SDK
PostPosted: Mon Jul 02, 2007 9:18 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
FO now has an SDK. It includes pre-built binaries for Windows ( MSVC 8 ) for all the FO dependencies, and has a full checkout of the FO and GG code that you can use and abuse. It is fully configured so that you should just be able to download and build with very few (or possibly no) modifications required. This is designed to be as simple as possible for people to use, since building all the dependencies has until now been a Herculean task. It also helps us to ensure that everyone is developing in the same environment as much as possible. You can get it from the SourceForge download page. Enjoy!

https://github.com/freeorion/freeorion-sdk/releases

[edited by Geoff the Medio to add hyperlink]
[edited by Vezzra to update link to SDK folder on SF]
[edited by Vezzra to update link to new SDK download location on github]


Top
 Profile  
 
PostPosted: Thu Jul 05, 2007 2:40 am 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
The Win32 SDK has been updated with a new version of Boost, version 1.34. The requirement for the Python version was changed to 2.5 as well, so please download the SDK again and install Python 2.5 if you were using 2.4 previously. (Note that installing a new Python may require you to install a new SCons and update your system PATH environment variable accordingly.)


Top
 Profile  
 
PostPosted: Wed Aug 20, 2008 9:39 pm 
Offline
Krill Swarm
User avatar

Joined: Mon Aug 04, 2008 2:33 pm
Posts: 14
Location: Germany
In the current SDK, there are too many outdated sourcefiles. I recommend to delete all sourcefiles in freelords_sdk/freelords/*, i.e. all files that are also in the svn (in a newer version). Also the boost_vc90_mt libraries for msvc 2008 could be added. If somebody tells me how to upload it, I could do it or provide somebody else who wants to do it with a detailed list of what to do. :)

Greetings Jan


Top
 Profile  
 
PostPosted: Wed Aug 20, 2008 10:23 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12007
Location: Munich
Trilarion wrote:
all sourcefiles in freelords_sdk/freelords/*

Is that a typo, or are you posting on the wrong forums?

Removing files from the SDK that are in SVN would probably make sense, even if just to reduce the download times. The missing MSVC 2008 version of the boost library has been noted and is mentioned in compile instructions on the wiki, and it can be easily gotten from boost consulting.

The file will likely not get updated until tzlaine has some more free time. We don't give SVN write access until someone's been around somewhat longer than you, though I do appreciate the offer.


Top
 Profile  
 
PostPosted: Thu Aug 21, 2008 7:09 am 
Offline
Krill Swarm
User avatar

Joined: Mon Aug 04, 2008 2:33 pm
Posts: 14
Location: Germany
No thanks for that, just wanted to help and make things easier for other newbies like me.

Hope, it was okay to discuss things in announcement threads.

P.S.: Now I see. :lol: Oh yes, it was a typo. Freeorion and Freelords are so simple to mix... I wanted to speak about Freeorion of course. :oops: :)


Top
 Profile  
 
PostPosted: Thu Jan 22, 2009 8:39 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12007
Location: Munich
There appears to be an incompatibility between the versions of the libpng and zlib dlls and libs that are in the SDK that are built with MSVC 2005 and the MSVC 2008 compiler. This results in crashes when running FreeOrion built with MSVC 2008.

Building zlib and libpng with MSVC 2008 fixes the issue, but doing so is a bit tricky.

I've attached a slightly modified version of those libraries and .lib and .dll files built with MSVC 2008 that can be used to get Freeorion running if they replace those that come with the SDK as of this writing. To rebuild them yourself, all you should need to do is open the solution file in the lpng1234\projects\visualc71 directory, select the Release DLL configuration, and build solution.

Note that the SDK versions of the Boost libraries and dlls are also built with MSVC 2005, and you'll need to get newer versions to build FreeOrion with MSVC 2008. These can be downloaded pre-built from BoostPro Consulting.


Attachments:
File comment: MSVC 2008 built .lib and .dll files for libpng and zlib, with source used to build them. (reuploaded)
MSVC_2008_zlib_and_libpng.zip [1.21 MiB]
Downloaded 190 times
Top
 Profile  
 
PostPosted: Thu Jan 22, 2009 9:32 am 
Offline
Creative Contributor
User avatar

Joined: Sun Jun 29, 2003 12:40 am
Posts: 1060
Location: Tucson, Arizona USA
Thanks Geoff, I've now got the full compiling, running, not-crashing FO on my system.


Top
 Profile  
 
PostPosted: Sun Mar 21, 2010 1:59 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12007
Location: Munich
I've just finished uploading a new version of the FreeOrion Windows SDK to sourceforge.

This SDK updates the OGRE version to 1.7, the Boost version to 1.42, the FreeType2 version to 2.38 and includes Python 2.6.5. The MSVC project files in SVN (and the SDK) have been updated to use these new library versions.

I've never made a FreeOrion SDK before this, so I'd apprediate it if some / anyone could download and try it out. Is anything necessary to use the MSVC project files missing? Are things configured improperly? Does the resulting executable run?


Top
 Profile  
 
PostPosted: Wed Aug 11, 2010 12:56 am 
Offline
Space Krill

Joined: Wed Aug 11, 2010 12:33 am
Posts: 1
Downloaded the sdk, important to view readme for dev. environment setup notes. So far so good. Thanks.


Top
 Profile  
 
PostPosted: Sat Dec 04, 2010 9:27 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12007
Location: Munich
I've just uploaded a FreeOrion SDK for MSVS 2010. It's available here:

https://sourceforge.net/projects/freeor ... ion%20SDK/

This has all the dependencies needed to build FreeOrion and GG in the places that the MSVC 2010 project files in SVN expect. Most of the dependencies needed to be rebuilt with MSVC 2010, which has been done.

The above is true with the exception of the graphviz libraries. For a few reasons these have been omitted, which means that to build FreeOrion with these project files, it's necessary to patch TechTreeWnd.cpp first. There is a patch that can do that here:

viewtopic.php?p=44294#p44294

(I'm hoping / planning to remove graphviz completely, so that this patching step won't be necessary.)

Also of note is that I've changed a bit of how the SDK is packaged from the MSVS 2008 SDK: Now there is no FreeOrion or GiGi source code or data files in the SDK. This reduces the SDK size from over 300 MB to just 25 MB. To get the source code for FreeOrion and GiGi, SVN should be used. This isn't much of an inconvenience, since the old SDKs required you to update to SVN after downloading the SDK anyway. In practice, this change will reduce the amount of data that needs to be downloaded to get FreeOrion SVN building, since the code only needs to get downloaded once, instead of downloading an old version in the SDK and then updating it from SVN.

I'd like to hear if anyone has success or problems building FreeOrion with this new MSVS 2010 SDK. Please let me know if you try it.


Top
 Profile  
 
PostPosted: Fri Feb 25, 2011 9:31 am 
Offline
Space Krill

Joined: Thu Feb 24, 2011 10:09 am
Posts: 3
Location: Paris, France
On W7, when using SDK DLLs to run game after compiling, an error appears on wrap_oal.dll. This error appears : "This librairy is not made to run on Windows or has an error, please check bla bla bla..."

Workaround : I download wrap_oal.dll (version 2.2.0.5) on creative labs site and it works.


Top
 Profile  
 
PostPosted: Mon Mar 14, 2011 6:54 pm 
Offline
Space Krill

Joined: Mon Mar 14, 2011 1:30 am
Posts: 1
First: Hello

I am just now running the first compile. (Getting lots of warnings in GG)
As someone just having his first look-around i am wondering what the different Freeorion projects inside the encompassing solution are. My guess is that those are the different major parts server, ai-client and interactive-client as outlined in http://www.freeorion.org/index.php/Programming
I guess it will get more confusing when i really dive in ;D

Edit:
Builds and runs without problems or patching


Top
 Profile  
 
PostPosted: Tue Mar 15, 2011 2:28 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12007
Location: Munich
snv wrote:
...what the different Freeorion projects inside the encompassing solution are. My guess is that those are the different major parts server, ai-client and interactive-client as outlined in http://www.freeorion.org/index.php/Programming

That's correct; in the Windows SDK MSVC solution there are projects for the human client, ai client, and server (as well as projects for GG libraries).


Top
 Profile  
 
PostPosted: Wed Apr 20, 2011 11:48 pm 
Offline
Space Floater

Joined: Tue Oct 05, 2010 10:15 pm
Posts: 23
I also successfully compiled the 2010 version on a Windows 7 platform and had the same problem as Teddy Bear.

Unlike Teddy Bear, I didn't get any message about the library but my game crashed before initialising. I traced the crash to the first default sound initialisation function. When Sound is constructed, it tries to create an OpenAL device. When it fails, it uses the OpenAL error message function to check why. However, this returns a null pointer which causes the logger to crash with an exception thrown deep within an ostringstream << function that is utterly unhelpful. Since the logger crashes, the error message never gets printed and the game crashes without any warning or message why. Should I open a bug on this?

P.S. Rather than replacing the wrap_oal.dll, I simply ran the Creative OpenAL installer from the website, which put new versions of the OpenAL libraries into my system directories. It's easier to Google than wrap_oal.dll and is available for download here: http://connect.creativelabs.com/openal/ ... Items.aspx


Top
 Profile  
 
PostPosted: Mon Apr 25, 2011 6:57 pm 
Offline
Space Floater

Joined: Mon Apr 25, 2011 6:32 am
Posts: 15
yes, i would do so, i will test your tip, ist bad, if you can´t build on all systems, but why you can use the prebuild binaries without this problem to occoure.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page 1, 2, 3, 4  Next

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