FreeOrion

Forums for the FreeOrion project
It is currently Fri Aug 22, 2014 5:54 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Oct 10, 2004 6:42 pm 
Offline
Space Squid
User avatar

Joined: Sat Oct 02, 2004 3:38 am
Posts: 67
Location: Saint Paul, MN (USA)
I've been trying to compile FO CVS and I keep running into trouble. Here's a list of problems (undefined reference messages for the first section omittted) and the "fixes" I applied. I suspect that my modified includes may be causing the linker error at the end:

-----------------
ProdCenter.h : #include <Meter.h> -> #include "Meter.h"
UniverseObject.h : #include <Universe.h> -> #include "Universe.h"
PopCenter.h : #include <Meter.h> -> #include "Meter.h"
Meter.h : #include <UniverseObject.h> -> #include "UniverseObject.h"


universe/Universe.cpp:713: error: invalid initialization of non-const reference of type 'Delauney::DTTriangle&' from a temporary of type 'Delauney::DTTriangle'

Universe.cpp 713: Delauney::DTTriangle &tri = Delauney::DTTriangle(); -> Delauney::DTTriangle tri = Delauney::DTTriangle();


universe/server-PopCenter.o(.text+0x13c): In function `PopCenter::PopCenter()':
: undefined reference to `Meter::Meter()'
----------------------------

I'm using gcc 3.4.2 and am running Fedora Core 2.91 (a test version). I have automake 1.9.2 and autoconf 2.59 and have been using autogen.sh to generate my configure script. Does anyone have suggestions for slogging all the way through this compile?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 10, 2004 8:06 pm 
Offline
Space Squid

Joined: Wed Sep 08, 2004 3:20 pm
Posts: 60
Location: Switzerland
the current build is broken. so just wait until new commits are made, that fix those problems. I hope in one or two days it should work again


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 5:28 pm 
Offline
Space Squid
User avatar

Joined: Sat Oct 02, 2004 3:38 am
Posts: 67
Location: Saint Paul, MN (USA)
Not to be a nag, but I subscribed to the CVS mailling list and over the course of three days have seen several simple fixes made that I attempted myself (or were similar), redundancy removed from the Star names list, and one other thing I believe.

When the build has been unbroken, can I expect that this news will appear somewhere or shall I just run my FO_Update script every evening until it works?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 15, 2004 12:19 am 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 884
Location: Australia
Try adding these two lines to Makefile.am, insterting them amongst the other similar lines:
universe/Meter.cpp \
universe/Meter.h \


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 16, 2004 5:41 am 
Offline
Space Squid
User avatar

Joined: Sat Oct 02, 2004 3:38 am
Posts: 67
Location: Saint Paul, MN (USA)
#: slocate libGiGi.so.0
/usr/local/lib/libGiGi.so.0
/usr/local/lib/libGiGi.so.0.0.0
/home/whatever/download/FreeOrion/GG/src/.libs/libGiGi.so.0
/home/whatever/download/FreeOrion/GG/src/.libs/libGiGi.so.0.0.0

# ./freeorion
./freeorion: error while loading shared libraries: libGiGi.so.0: cannot open shared object file: No such file or directory

If there is a better place to ask about such things, please let me know.
In the mean time, could someone enlighten me on the subject of linking? If I made it through the ./confgure successfully (it found GiGi), and the files are easily located, and I'm the root user (to eliminate permissions considerations), why is it handing me this message?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 16, 2004 5:46 am 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 884
Location: Australia
Usually the programming forum is a more appropriate place.

For this problem, edit /etc/ld.so.conf with whatever console editor you like, and add the line:
/usr/local/lib

in the list somewhere.

Then run as root:
ldconfig

Then try running the game again.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 16, 2004 6:33 am 
Offline
Space Squid
User avatar

Joined: Sat Oct 02, 2004 3:38 am
Posts: 67
Location: Saint Paul, MN (USA)
Well, I'll be damned. I may feel stupid now, but you have my thanks =]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 16, 2004 6:42 am 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 884
Location: Australia
You are welcome :)

So does that mean that FreeOrion is now compiled and running on your system?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 16, 2004 7:23 am 
Offline
Space Squid
User avatar

Joined: Sat Oct 02, 2004 3:38 am
Posts: 67
Location: Saint Paul, MN (USA)
Tyreth wrote:
So does that mean that FreeOrion is now compiled and running on your system?


...Not precisely =P

I just posted in the Programming help thread:
http://www.freeorion.org/forum/viewtopi ... &start=105


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