FreeOrion

Forums for the FreeOrion project
It is currently Tue May 21, 2013 11:41 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Problem compiling with Visual C++ Express 2008
PostPosted: Mon Sep 13, 2010 4:20 pm 
Offline
Space Floater
User avatar

Joined: Thu Sep 09, 2010 8:59 am
Posts: 39
I want to complile FO (rev 3795) with Visual C++ Express 2008.
The problem is that in FO svn directory is many files to open...

I tried to open \Free Orion\trunk\FreeOrion\msvc2008\FreeOrion\FreeOrion.sln

But many errors are generated during compilation...

Quote:
Compiling...
ClientApp.cpp
e:\Free Orion\trunk\FreeOrion\GG\GG/Enum.h(33) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
ClientFSMEvents.cpp
e:\Free Orion\trunk\FreeOrion\GG\GG/Enum.h(33) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory
HumanClientApp.cpp
..\..\..\client\human\HumanClientApp.cpp(2) : fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
HumanClientFSM.cpp


What do I do wrong?


Top
 Profile  
 
 Post subject: Re: Problem compiling with Visual C++ Express 2008
PostPosted: Mon Sep 13, 2010 5:32 pm 
Offline
Space Floater
User avatar

Joined: Thu Jun 10, 2010 8:20 am
Posts: 22
Location: Croatia
Look like you don't have Boost and glew.h. They are not part of FO source so you have to get them separately. I don't know where to get glew.h (.h file itself is not problem but I don't know from what library it is). Boost can be downloaded at http://www.boost.org/, though I'm not sure which version works with FO. Geoff could answer with more info.


Top
 Profile  
 
 Post subject: Re: Problem compiling with Visual C++ Express 2008
PostPosted: Mon Sep 13, 2010 8:22 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7890
Location: Vancouver, BC
Did you download the FreeOrion Win32 SDK from sourceforge, or just check out the source alone? The SDK has the various required dependencies, such as boost, in the locations expected by the solution file you opened. You can also locate or compile all the dependencies yourself, but this is not really necessary unless you're having a problem with one of the precompiled ones in the SDK.

The solution file you opened should have had GiGi projects in it as well. Did they build successfully before the errors you quoted, or did you just build the freeorion project? You need to build the whole solution, so that the GiGi libraries get built first, as these are needed to build FreeOrion itself.

glew is, I believe, the (Open) GL Extention Wrangler, a library used on Windows for OpenGL coding.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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 © 2000, 2002, 2005, 2007 phpBB Group