FreeOrion

Forums for the FreeOrion project
It is currently Sat May 25, 2013 3:06 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: invalid use of undefined type `const struct UniverseObject'
PostPosted: Sun Jun 12, 2005 12:28 pm 
Offline
Space Krill

Joined: Sun Jun 12, 2005 12:24 pm
Posts: 5
hey all. huge fan of the orion games and i can't wait to try out freeorion...problem is i can't compile it. I'm running gentoo. My install process was as follows:

emerge boost-1.32
emerge log4cpp
emerge devIL
download and install GiGi from CVS

Then I ./configure and make FreeOrion. Both the 0.2 release and the CVS give me similar errors. Here's the 0.2 error:

Code:
In file included from universe/Predicates.cpp:1:
universe/Predicates.h: In member function `bool IsOwnedObjectFunctor<T>::operator()(const UniverseObject*) const':
universe/Predicates.h:59: error: invalid use of undefined type `const struct UniverseObject'
universe/Predicates.h:5: error: forward declaration of `const struct UniverseObject'
universe/Predicates.h:59: error: invalid use of undefined type `const struct UniverseObject'
universe/Predicates.h:5: error: forward declaration of `const struct UniverseObject'
make[1]: *** [universe/server-Predicates.o] Error 1


anyone had this before or know how to fix it? thanks.

snoe7


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 13, 2005 1:12 pm 
Offline
Programmer
User avatar

Joined: Sat Jun 28, 2003 8:17 pm
Posts: 376
Location: Heidelberg, Germany
CVS will not compile with G++ 3.4 at the moment.
Either wait for the weekend, when I plan to fix this, or use 3.3


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 13, 2005 10:07 pm 
Offline
Space Krill

Joined: Sun Jun 12, 2005 12:24 pm
Posts: 5
Thank you for the explanation. Can't wait for the fix. Thanks.

snoe7


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 17, 2005 9:21 pm 
Offline
Programmer
User avatar

Joined: Sat Jun 28, 2003 8:17 pm
Posts: 376
Location: Heidelberg, Germany
Should be fixed now.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 18, 2005 1:52 am 
Offline
Space Krill

Joined: Sun Jun 12, 2005 12:24 pm
Posts: 5
alright! yeah that fixed it. you rock!

hate to say it but...onto other issues. I may be completely missing something but the CVS i d/led has no artwork in it. So when I do start up freeorion it bonks with devil errors saying some image file does not exist. I d/led the 0.2 version and copied over some of the artwork and changed some file names, etc and freeorion starts. Great. but it goes for about 2 seconds until I start a game and then more graphics errors. So where can I get these mysterious "graphics" files? hehe. it's been a long day. sorry for my sarcasm.

Thank you much for the compile fix.

snoe7


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 18, 2005 2:26 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7898
Location: Vancouver, BC
http://freeorion.org/index.php/Compile# ... ng_Artwork


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 18, 2005 2:05 pm 
Offline
Space Krill

Joined: Sun Jun 12, 2005 12:24 pm
Posts: 5
great. Thank you very much. I knew I was just missing something stupid.

snoe7


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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