Page 1 of 1

Compiling CVS v .2 for Linux

Posted: Sun Oct 10, 2004 6:42 pm
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 to generate my configure script. Does anyone have suggestions for slogging all the way through this compile?

Posted: Sun Oct 10, 2004 8:06 pm
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

Posted: Thu Oct 14, 2004 5:28 pm
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?

Posted: Fri Oct 15, 2004 12:19 am
by Tyreth
Try adding these two lines to, insterting them amongst the other similar lines:
universe/Meter.cpp \
universe/Meter.h \

Posted: Sat Oct 16, 2004 5:41 am
by MisterMerf
#: slocate

# ./freeorion
./freeorion: error while loading shared libraries: 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?

Posted: Sat Oct 16, 2004 5:46 am
by Tyreth
Usually the programming forum is a more appropriate place.

For this problem, edit /etc/ with whatever console editor you like, and add the line:

in the list somewhere.

Then run as root:

Then try running the game again.

Posted: Sat Oct 16, 2004 6:33 am
by MisterMerf
Well, I'll be damned. I may feel stupid now, but you have my thanks =]

Posted: Sat Oct 16, 2004 6:42 am
by Tyreth
You are welcome :)

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

Posted: Sat Oct 16, 2004 7:23 am
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: