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?
Compiling CVS v .2 for Linux
Moderator: Oberlus
-
- Space Squid
- Posts: 67
- Joined: Sat Oct 02, 2004 3:38 am
- Location: Saint Paul, MN (USA)
-
- Space Squid
- Posts: 60
- Joined: Wed Sep 08, 2004 3:20 pm
- Location: Switzerland
-
- Space Squid
- Posts: 67
- Joined: Sat Oct 02, 2004 3:38 am
- 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?
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?
-
- Space Squid
- Posts: 67
- Joined: Sat Oct 02, 2004 3:38 am
- 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?
/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?
-
- Space Squid
- Posts: 67
- Joined: Sat Oct 02, 2004 3:38 am
- Location: Saint Paul, MN (USA)
-
- Space Squid
- Posts: 67
- Joined: Sat Oct 02, 2004 3:38 am
- Location: Saint Paul, MN (USA)
...Not precisely =PTyreth wrote:So does that mean that FreeOrion is now compiled and running on your system?
I just posted in the Programming help thread:
viewtopic.php?t=47&start=105