Compiling CVS v .2 for Linux

For topics that do not fit in another sub-forum.

Moderator: Oberlus

Post Reply
Message
Author
MisterMerf
Space Squid
Posts: 67
Joined: Sat Oct 02, 2004 3:38 am
Location: Saint Paul, MN (USA)

Compiling CVS v .2 for Linux

#1 Post by MisterMerf »

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?

LaplaceOperator
Space Squid
Posts: 60
Joined: Wed Sep 08, 2004 3:20 pm
Location: Switzerland

#2 Post by LaplaceOperator »

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

MisterMerf
Space Squid
Posts: 67
Joined: Sat Oct 02, 2004 3:38 am
Location: Saint Paul, MN (USA)

#3 Post by MisterMerf »

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?

Tyreth
FreeOrion Lead Emeritus
Posts: 885
Joined: Thu Jun 26, 2003 6:23 am
Location: Australia

#4 Post by Tyreth »

Try adding these two lines to Makefile.am, insterting them amongst the other similar lines:
universe/Meter.cpp \
universe/Meter.h \

MisterMerf
Space Squid
Posts: 67
Joined: Sat Oct 02, 2004 3:38 am
Location: Saint Paul, MN (USA)

#5 Post by MisterMerf »

#: 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?

Tyreth
FreeOrion Lead Emeritus
Posts: 885
Joined: Thu Jun 26, 2003 6:23 am
Location: Australia

#6 Post by Tyreth »

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.

MisterMerf
Space Squid
Posts: 67
Joined: Sat Oct 02, 2004 3:38 am
Location: Saint Paul, MN (USA)

#7 Post by MisterMerf »

Well, I'll be damned. I may feel stupid now, but you have my thanks =]

Tyreth
FreeOrion Lead Emeritus
Posts: 885
Joined: Thu Jun 26, 2003 6:23 am
Location: Australia

#8 Post by Tyreth »

You are welcome :)

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

MisterMerf
Space Squid
Posts: 67
Joined: Sat Oct 02, 2004 3:38 am
Location: Saint Paul, MN (USA)

#9 Post by MisterMerf »

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:
viewtopic.php?t=47&start=105

Post Reply