My Configuration :
Fedora Core 2
freeglut-2.2.0-11
openal-0.0.7-1.rhfc2.nr
cryptopp-5.1-1.1.fc2.fr
Using vegainstall.sh 0.4.2
Everything gets downloaded fine , compiles till soundserver, where the problems begin :
1. ---------------------------
then mv -f ".deps/soundserver.Tpo" ".deps/soundserver.Po"; else rm -f ".deps/soundserver.Tpo"; exit 1; fi
soundserver.cpp: In function `int main(int, char**)':
soundserver.cpp:282: error: `O_SHLOCK' undeclared (first use this function)
soundserver.cpp:282: error: (Each undeclared identifier is reported only once
for each function it appears in.)
make[4]: *** [soundserver.o] Error 1
make[4]: Leaving directory `/opt/alex/i/vegastrike/vegastrike/src/networking'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/alex/i/vegastrike/vegastrike/src/networking'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/alex/i/vegastrike/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/alex/i/vegastrike/vegastrike'
make: *** [all] Error 2
Error running 'make'
Performing a simple hack i pass this error
2. ----------------------------------------------------------------
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_AL=1 -I/usr/include/python2.3 -DHAVE_PYTHON=1 -DUSE_BOOST_131=1 -I../../src/boost129 -I../../src -pipe -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/include/SDL -D_REENTRANT -pthread -pipe -MT soundserver.o -MD -MP -MF ".deps/soundserver.Tpo" -c -o soundserver.o soundserver.cpp; \
then mv -f ".deps/soundserver.Tpo" ".deps/soundserver.Po"; else rm -f ".deps/soundserver.Tpo"; exit 1; fi
g++ -pipe -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/include/SDL -D_REENTRANT -pthread -pipe -L/usr/X11R6/lib -L/usr/X11R6/lib -o soundserver inet.o soundserver.o -L/usr/local/lib -L/usr/lib -lSDL -lpthread -lSDL_mixer -lutil-L/usr/lib -lSDL -lpthread -lGL -lGLU -lglut -lXi -lXmu -lexpat -lpng -ljpeg -lopenal /usr/lib/python2.3/config/libpython2.3.a -Xlinker -export-dynamic -pthread
soundserver.o(.text+0x16): In function `my_getchar(int)':
: undefined reference to `fNET_fgetc(int)'
soundserver.o(.text+0x660): In function `music_finished()':
: undefined reference to `fNET_Write(int, int, char const*)'
soundserver.o(.text+0x965): In function `main':
: undefined reference to `fNET_startup()'
soundserver.o(.text+0x119d): In function `main':
: undefined reference to `fNET_close(int)'
soundserver.o(.text+0x11ae): In function `main':
: undefined reference to `fNET_close(int)'
soundserver.o(.text+0x124e): In function `main':
: undefined reference to `fNET_cleanup()'
collect2: ld returned 1 exit status
make[1]: *** [soundserver] Error 1
make[1]: Leaving directory `/opt/alex/i/vegastrike/vegastrike/src/networking'
make: *** [all-recursive] Error 1
And i'm stuck here ....
Someone ???
Compiling VegaStrike 0.42 on Fedra Core 2 (Please Help)
-
- Star Pilot
- Posts: 5
- Joined: Sun Oct 24, 2004 11:11 am
-
- Lead Network Developer
- Posts: 2560
- Joined: Sun Jan 12, 2003 9:13 am
- Location: Palo Alto CA
- Contact:
Very strange compiler errors.. I've never seen those before.
But here's an attempt to fix them:
Go to the directory vegastrike/src/networking/ in the terminal.
There should be a file called inet_file.cpp and soundserver.cpp.
The missing functions are defined in inet_file.cpp. Compile it:
And link it to soundserver with:
then continue the make in the src directory.
Hope that fixes it!
But here's an attempt to fix them:
Go to the directory vegastrike/src/networking/ in the terminal.
There should be a file called inet_file.cpp and soundserver.cpp.
The missing functions are defined in inet_file.cpp. Compile it:
Code: Select all
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_AL=1 -I/usr/include/python2.3 -DHAVE_PYTHON=1 -DUSE_BOOST_131=1 -I../../src/boost129 -I../../src -pipe -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/include/SDL -D_REENTRANT -pthread -pipe -MT inet_file.o -MD -MP -MF ".deps/inet_file.Tpo" -c -o inet_file.o inet_file.cpp
Code: Select all
g++ -pipe -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/include/SDL -D_REENTRANT -pthread -pipe -L/usr/X11R6/lib -L/usr/X11R6/lib -o soundserver inet.o soundserver.o inet_file.o -L/usr/local/lib -L/usr/lib -lSDL -lpthread -lSDL_mixer -lutil-L/usr/lib -lSDL -lpthread -lGL -lGLU -lglut -lXi -lXmu -lexpat -lpng -ljpeg -lopenal /usr/lib/python2.3/config/libpython2.3.a -Xlinker -export-dynamic -pthread
Hope that fixes it!
-
- Merchant
- Posts: 39
- Joined: Sun Oct 24, 2004 5:02 am
just today i had to do this to get cvs to compile...however i had to add ../lin_time.o to the last step(missing micro_sleep function I believe). could be wrong but if not, hope this helps.ace123 wrote:Very strange compiler errors.. I've never seen those before.
But here's an attempt to fix them:
Go to the directory vegastrike/src/networking/ in the terminal.
There should be a file called inet_file.cpp and soundserver.cpp.
The missing functions are defined in inet_file.cpp. Compile it:And link it to soundserver with:Code: Select all
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_AL=1 -I/usr/include/python2.3 -DHAVE_PYTHON=1 -DUSE_BOOST_131=1 -I../../src/boost129 -I../../src -pipe -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/include/SDL -D_REENTRANT -pthread -pipe -MT inet_file.o -MD -MP -MF ".deps/inet_file.Tpo" -c -o inet_file.o inet_file.cpp
then continue the make in the src directory.Code: Select all
g++ -pipe -falign-loops=2 -falign-jumps=2 -falign-functions=2 -I/usr/include/SDL -D_REENTRANT -pthread -pipe -L/usr/X11R6/lib -L/usr/X11R6/lib -o soundserver inet.o soundserver.o inet_file.o -L/usr/local/lib -L/usr/lib -lSDL -lpthread -lSDL_mixer -lutil-L/usr/lib -lSDL -lpthread -lGL -lGLU -lglut -lXi -lXmu -lexpat -lpng -ljpeg -lopenal /usr/lib/python2.3/config/libpython2.3.a -Xlinker -export-dynamic -pthread
Hope that fixes it!
Hi! I'm lost. I'm going to go look for myself, so if I return before I get back, keep me here!
-
- Star Pilot
- Posts: 5
- Joined: Sun Oct 24, 2004 11:11 am
Yes, last night i did this to make it compile ... but i just commented out the lines with micro_sleep in inet_file.cpp not to link with lin_time.o
And what's with the O_EXLOCK ??? what is this error all about ??
Another things i've managed to see :
1. vegainstall.sh script on installing expects the data directory to copy from to be named "data" and not "data4.x".
2. vegalauncher doesn't seem to recognize the correct location of installed data dir, and supposes that it is located in $HOME/.vegastrike.
I've tryied everything i found on forums but no help. Specifying -dDIR is not working.
Running vegastrike directly does the trick ....
And what's with the O_EXLOCK ??? what is this error all about ??
Another things i've managed to see :
1. vegainstall.sh script on installing expects the data directory to copy from to be named "data" and not "data4.x".
2. vegalauncher doesn't seem to recognize the correct location of installed data dir, and supposes that it is located in $HOME/.vegastrike.
I've tryied everything i found on forums but no help. Specifying -dDIR is not working.
Running vegastrike directly does the trick ....
-
- Artisan
- Posts: 1270
- Joined: Fri Jan 03, 2003 3:27 am
- Location: Perth, Western Australia
- Contact:
-
- Merchant
- Posts: 39
- Joined: Sun Oct 24, 2004 5:02 am
you can also add the datadir variable to the config filedandandaman wrote:change to the data dir and *then* run vslauncher
Dan.a
in ~/.vegastrike/vegastrike.config look for this:
Code: Select all
<variables>
<section name="data">
<var name="sectors" value="sectors"/>
<var name="UnitCSV" value="units.csv"/>
...
Code: Select all
<var name="datadir" value="/usr/local/share/vegastrike/data"/>
Hi! I'm lost. I'm going to go look for myself, so if I return before I get back, keep me here!