Again - installation

Just downloaded Vega Strike and need help? Have a question but don't know where to start? Ask here.
martin
Hunter
Hunter
Posts: 80
Joined: Fri Oct 31, 2003 3:17 pm
Location: Berlin, Germany

Post by martin »

spunti: did you set up your gfx-card for hardware OpenGL acceleration? start glxgears and look at the framerate (reported in the console). It should be a few thousand fps if you have a recent card. If you don't have 3D acceleration, try to install it first before you continue with vegastrike.

the setup script (more precise the configure script) looks in certain location for the presence of the libGLU.so file and maybe some other files as well. Take a look at the config.log file - it should say which files are missing. Try to locate them on your harddisk. You can also use the forum search function and try to find something in the "compiling problems" forum.
spunti

only 1.500 FPS

Post by spunti »

I've got a MSI Nvidia Geforce4 420 MX. My driver came with the Suse-Online-Update from the Nvidia-Server, the 3D is activated but I get only 1.500 FPS:-(.
I think this is a little bit less. Some month ago I played vegastrike on this machine in Windows 2000 and the speed was good. I will see, if I can improve my FPS in Linux and then try to come clear with the vegastrike confige script.

Thnx so far
spunti
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Post by symonides »

Ok people! I did go trough ./configure without errors!!!
then I executed ./setup.sh
compilation started...
...some strange things appeared on my screen... OK
and there were some warnings (I mean a lot) is it important?
But then at the end i got this:
UnitCollection::UnitIterator::GetNextValidUnit()' used but never defined
make[3]: *** [gl_init.o] Error 1
make[3]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/src/gldrv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike'
make: *** [all] Error 2
Compiling FleetYards... display_gtk../src/include/display_gtk.cpp: In function `void AddCats(GtkWidget*, char*,
char*)':
../src/include/display_gtk.cpp:133: warning: unused variable `char*new_text'
../src/include/display_gtk.cpp:134: warning: unused variable `int length'
../src/include/display_gtk.cpp:135: warning: unused variable `GtkWidget*button'
../src/include/display_gtk.cpp: In function `void ClickButton(GtkWidget*,
catagory*)':
../src/include/display_gtk.cpp:160: warning: unused variable `GtkWidget*label'
file
setup... Done

Time Elapsed: 7 second
mv: cannot overwrite directory `/home/simon/.vegastrike.3.x/.vegastrike'
mkdir: cannot create directory `/home/simon/.vegastrike': File exists
mv: cannot stat `../vegastrike/src/vegastrike': No such file or directory
cp: cannot stat `../vegastrike/src/networking/soundserver': No such file or directory
cp: cannot stat `../vegastrike/launcher/vslauncher': No such file or directory
ok I need to be root now please enter your password (edit root-setup.sh to see what the script does if you are rightfully careful.)
Password:
if you see a prompt now, that means you don't have su installed, type root password
Password:
../root-setup.sh: line 2: cd: data: No such file or directory
install: cannot stat `./vegastrike': No such file or directory
install: cannot stat `./vslauncher': No such file or directory
mkdir: cannot create directory `/usr/local/man/man1': File exists
mkdir: cannot create directory `/usr': File exists
mkdir: cannot create directory `/usr/local': File exists
mkdir: cannot create directory `/usr/local/share': File exists
mkdir: cannot create directory `/usr/local/share/vegastrike': File exists
cp: cannot stat `data': No such file or directory
run vsinstall to setup your account
then run vslauncher to start Vega Strike
what does it mean this "Error 1" ? Is it critical?
when i run vslauncher the bash error appears: command not found...
So, what do you say my friends?
Is it installed already? or
How can I start the game?
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Re: only 1.500 FPS

Post by symonides »

spunti wrote:I've got a MSI Nvidia Geforce4 420 MX. My driver came with the Suse-Online-Update from the Nvidia-Server, the 3D is activated but I get only 1.500 FPS:-(.
I think this is a little bit less. Some month ago I played vegastrike on this machine in Windows 2000 and the speed was good. I will see, if I can improve my FPS in Linux and then try to come clear with the vegastrike confige script.

Thnx so far
spunti
I am sorry for confusing both of you... i ran glxgears but the graphic window was covered! Sorry for that...
real score is about 2200fps...
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Post by symonides »

OK! i figured out what was wrong with this gl_init.o and stuff
(for lost souls like me: http://vegastrike.sourceforge.net/phpwi ... talling#Q5 it is the trick that helped)

BUT....
compiling ... compiling ....
And what? another error:
soundserver.cpp:8:27: SDL/SDL_mixer.h: No such file or directory
soundserver.cpp: In function `void cleanExit(char*, ...)':
soundserver.cpp:65: error: `Mix_CloseAudio' undeclared (first use this
function)
soundserver.cpp:65: error: (Each undeclared identifier is reported only once
for each function it appears in.)
soundserver.cpp: At global scope:
soundserver.cpp:100: error: syntax error before `*' token
soundserver.cpp:105: error: ISO C++ forbids declaration of `music' with no type
soundserver.cpp:105: error: `file' was not declared in this scope
soundserver.cpp:105: error: `Mix_LoadMUS' was not declared in this scope
soundserver.cpp:106: error: ISO C++ forbids declaration of `changehome' with no
type
soundserver.cpp:106: error: `int changehome' redeclared as different kind of
symbol
soundserver.cpp:73: error: previous declaration of `void changehome(bool, bool)
'
soundserver.cpp:107: error: parse error before `if'
soundserver.cpp:109: error: ISO C++ forbids declaration of `music' with no type
soundserver.cpp:109: error: redefinition of `int music'
soundserver.cpp:105: error: `int music' previously defined here
soundserver.cpp:109: error: `file' was not declared in this scope
soundserver.cpp:109: error: `Mix_LoadMUS' was not declared in this scope
soundserver.cpp:110: error: ISO C++ forbids declaration of `changehome' with no
type
soundserver.cpp:110: error: redefinition of `int changehome'
soundserver.cpp:106: error: `int changehome' previously defined here
soundserver.cpp:111: error: parse error before `if'
soundserver.cpp:116: error: ISO C++ forbids declaration of `sende' with no type
soundserver.cpp:116: error: conflicting types for `int sende'
soundserver.cpp:98: error: previous declaration as `bool sende'
soundserver.cpp:117: error: parse error before `if'
soundserver.cpp:124: error: ISO C++ forbids declaration of `oldmusic' with no
type
soundserver.cpp:124: warning: initialization to non-pointer type `int' from
NULL
soundserver.cpp:124: warning: argument to non-pointer type `int' from NULL
soundserver.cpp:125: error: parse error before `}' token
soundserver.cpp:126: error: ISO C++ forbids declaration of `sende' with no type
soundserver.cpp:126: error: redefinition of `int sende'
soundserver.cpp:116: error: `int sende' previously defined here
soundserver.cpp:127: error: parse error before `if'
soundserver.cpp:133: warning: initialization to `int' from `float'
soundserver.cpp:133: warning: argument to `int' from `float'
soundserver.cpp:134: error: ISO C++ forbids declaration of `Mix_VolumeMusic'
with no type
soundserver.cpp:135: error: parse error before `return'
soundserver.cpp: In function `int main(int, char**)':
soundserver.cpp:181: error: `Mix_Music' undeclared (first use this function)
soundserver.cpp:195: error: `Mix_HookMusicFinished' undeclared (first use this
function)
soundserver.cpp:200: error: `MIX_DEFAULT_FORMAT' undeclared (first use this
function)
soundserver.cpp:200: error: `Mix_OpenAudio' undeclared (first use this
function)
soundserver.cpp:204: error: `Mix_QuerySpec' undeclared (first use this
function)
soundserver.cpp:242: error: `Mix_PlayingMusic' undeclared (first use this
function)
soundserver.cpp:245: error: `PlayMusic' undeclared (first use this function)
soundserver.cpp:308: warning: initialization to `int' from `float'
soundserver.cpp:308: warning: argument to `int' from `float'
soundserver.cpp:309: error: `Mix_VolumeMusic' cannot be used as a function
soundserver.cpp: In function `void
__static_initialization_and_destruction_0(int, int)':
soundserver.cpp:116: warning: statement with no effect
{standard input}: Assembler messages:
{standard input}:107: Error: symbol `music' is already defined
{standard input}:113: Error: symbol `changehome' is already defined
{standard input}:126: Error: symbol `sende' is already defined
make[4]: *** [soundserver.o] Error 1
make[4]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/src/networking'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/src/networking'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike'
make: *** [all] Error 2
I did this "--disable-sound" but as it is shown above it didin't helped!
Can some Allmighty Developer explain the situation?
What to do next? I would be very greatful for any help :).
And you now what? It is (VegaStrike) the hardest to install game I have ever met! :) But i will not give it up! I have learnt a lot about Linux during the "fight" :).

But anyway: is there any easer way to install it? Some kind of instalation for numbs?
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

The "Allmighty Developer" says thou shalt make -k.

Post by ace123 »

run

Code: Select all

make -k
Soundserver is not required, so the -k will force it to continue past the errors. :-)
etheral walker
Elite
Elite
Posts: 1516
Joined: Sat May 10, 2003 5:26 pm
Location: into the depths

Post by etheral walker »

SDL_mixer.h come with libsdl-mixer devel
I see dead polygons....
martin
Hunter
Hunter
Posts: 80
Joined: Fri Oct 31, 2003 3:17 pm
Location: Berlin, Germany

Post by martin »

on SuSE 8.2 it's in SDL_mixer. You can see what files are in a rpm package by running
rpm -qlp <filename.rpm>
If the package is already installed:
rpm -ql <packagename>
To see which packages you have installed:
rpm -qa|sort
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Post by symonides »

etheral walker wrote:SDL_mixer.h come with libsdl-mixer devel
Yeah! I knew it! another "devel" I don't have... :)

Thank you Allmigthy Dev. when "devel" fails I will make -k :)
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Post by symonides »

Next day:
I've installed SDL-mixer-devel... ok soundsever compiled but check this out:
g++ -pipe -O2 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math -I/usr/include/SDL -D_REENTRANT -pipe -L/usr/X11R6/lib -L/usr/X11R6/lib -o vegastrike posh.o stardate.o star_system_xml.o star_system_generic.o universe_generic.o universe_util_generic.o galaxy.o galaxy_xml.o galaxy_gen.o faction_generic.o hashtable.o configxml.o easydom.o xml_serializer.o xml_support.o lin_time.o endianness.o faction_util_generic.o load_mission.o savegame.o vs_globals.o vs_path.o debug_vs.o gfxlib_struct.o in_joystick.o force_feedback.o faction_util.o in_kb.o in_sdl.o in_mouse.o in_main.o in_handler.o main_loop.o physics.o star_system_jump.o star_system.o universe.o universe_util.o config_xml.o macosx_math.o cg_global.o main.o networking/netserver_devices.o aldrv/libaldrv.a common/libvscommon.a networking/libnetclient.a networking/lowlevel/libnetlowlevel.a cmd/script/script_call_briefing.o cmd/script/libscript.a cmd/script/c_alike/libc_alike.a python/briefing_wrapper.o cmd/libcmd.a cmd/base_init.o python/libpython.a gfx/libgfx.a gldrv/libgldrv.a cmd/ai/libai.a gui/libgui.a networking/libnet.a cmd/collide/libcollide.a boost129/libboost_python.a boost/libboost_python.a gfx/nav/libnav.a -lpthread -lz -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_mixer -lGL -lGLU -lglut -lXi -lXmu -lexpat -lpng -ljpeg -lopenal /usr/lib/python2.2/config/libpython2.2.a -Xlinker -export-dynamic
/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o)(.text+0x3845): In function `posix_tmpnam':
: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o)(.text+0x371f): In function `posix_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/lib/libopenal.a(posixthreads.o)(.text+0x217): In function `Posix_AtForkThread':
: undefined reference to `pthread_atfork'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x6a): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_new_data'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x80): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_wantedSpec'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0xf3): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_actualSpec'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x292): In function `MP3_Callback':
: undefined reference to `SMPEG_status'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x2a1): In function `MP3_Callback':
: undefined reference to `SMPEG_play'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x2d1): In function `MP3_Callback':
: undefined reference to `SMPEG_playAudio'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x2eb): In function `MP3_Callback':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x2f7): In function `MP3_Callback':
: undefined reference to `SMPEG_rewind'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x35f): In function `MP3_Callback':
: undefined reference to `SMPEG_enableaudio'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x373): In function `MP3_Callback':
: undefined reference to `SMPEG_enablevideo'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x47e): In function `mp3bid_insert':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x48d): In function `mp3bid_insert':
: undefined reference to `SMPEG_delete'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x621): In function `mp3bid_remove':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x630): In function `mp3bid_remove':
: undefined reference to `SMPEG_delete'
collect2: ld returned 1 exit status
make[3]: *** [vegastrike] Error 1
make[3]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike'
make: *** [all] Error 2
Compiling FleetYards...
Done

Time Elapsed: 0 second
mv: cannot stat `../vegastrike/src/vegastrike': No such file or directory
cp: cannot stat `../vegastrike/launcher/vslauncher': No such file or directory
ok I need to be root now please enter your password (edit root-setup.sh to see what the script does if you are rightfully careful.)
Password:
Can someone explain me what lib or devel or whatever is missing now??? some kind of SMPEG-something?
Please help me I am so close now! :)
spunti

no way for suse-rpm?

Post by spunti »

Is there really no way to offer a Suse-rpm here? As I mentioned it is the biggest Linux-distributer in Germany.
Perhaps I could create such a rpm with help, but I'm very new at linux.

spunti
etheral walker
Elite
Elite
Posts: 1516
Joined: Sat May 10, 2003 5:26 pm
Location: into the depths

Post by etheral walker »

ther is already some rpms, not suse specific but should work fine, grab them and try, there is many posts explaining how to use the rpms, and how to get ride of errors
I see dead polygons....
etheral walker
Elite
Elite
Posts: 1516
Joined: Sat May 10, 2003 5:26 pm
Location: into the depths

Post by etheral walker »

@simonide: which version of openal are you using? how do you installed it?
I see dead polygons....
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Post by symonides »

I've found this two rpms installed:
openal-devel-20030131-32
OpenAL-0.0.6-CVS311202
Maybe they should be exactly te same? What do you think?
I installed them through rmp-something - without errors(double click on rpm packet in Krusader and then window apears - kpackage or something).
Panta Rei
etheral walker
Elite
Elite
Posts: 1516
Joined: Sat May 10, 2003 5:26 pm
Location: into the depths

Post by etheral walker »

your rpm are old as the world! take openal by cvs, it is really easy to compile, and it will be up to date, your rpms are 1 year old
I see dead polygons....
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Post by symonides »

Hi! I am still there... (in the middle of a battle)
I gave up sounds and started to compile with "--disable-sound" option, looked good, but:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. `gtk-config --cflags` -DHAVE_SDL=1 -DSDL_WINDOWING=1 -DHAVE_SDL_MIXER=1 -I/usr/local/include -I/usr/include/python -DHAVE_PYTHON=1 -DUSE_BOOST_128=1 -pipe -O2 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math -I/usr/include/SDL -D_REENTRANT -pipe -MT general.o -MD -MP -MF ".deps/general.Tpo" \
-c -o general.o `test -f 'general.cpp' || echo './'`general.cpp; \
then mv -f ".deps/general.Tpo" ".deps/general.Po"; \
else rm -f ".deps/general.Tpo"; exit 1; \
fi
g++ -pipe -O2 -fexpensive-optimizations -fomit-frame-pointer -Wall -ffast-math -I/usr/include/SDL -D_REENTRANT -pipe -L/usr/X11R6/lib -L/usr/X11R6/lib -o vslauncher `gtk-config --libs` saveinterface.o general.o ../src/common/libvscommon.a -lXi -lXmu -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_mixer -lGL -lGLU -lglut -lXi -lXmu -lexpat -lpng -ljpeg /usr/lib/python2.2/config/libpython2.2.a -Xlinker -export-dynamic
make[2]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/launcher'
Making all in tools
make[2]: Entering directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/tools'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simon/Documents/VegaStrike/vegastrike-0.4.1-installer/vegastrike'
make: *** [all] Error 2
Compiling FleetYards...
Done
Any ideas what kind of an error it is this time?

God (or Allmighty Developer) is this some kind of "Never-ending story"?
Panta Rei
etheral walker
Elite
Elite
Posts: 1516
Joined: Sat May 10, 2003 5:26 pm
Location: into the depths

Post by etheral walker »

tools is still a work in progress, if I remind. So don't expect to compile it so soon
I see dead polygons....
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Post by symonides »

So just "make -k" them?
How can I do it using "setup.sh" script?
Panta Rei
symonides
Trader
Trader
Posts: 22
Joined: Tue Dec 09, 2003 11:34 pm
Location: ...Earth... (so far...)

Post by symonides »

KNOCK!!! KNOCK!!!

I need your help!!!

Yeah I know you have more important things to do than just answering my stupid questions. But Jesus said: "Share (your knowledge) with your brothers and sisters!" Is it Christmas or what???
Panta Rei
martin
Hunter
Hunter
Posts: 80
Joined: Fri Oct 31, 2003 3:17 pm
Location: Berlin, Germany

Post by martin »

What's your question ?
If it's about the "tools" just ignore the error message.

Inspect the setup.sh and root-setup.sh to see what they do.
You might have to do the steps manually. (At least I had).
They basically copy the files to the final location.
The problem with the setup scripts is that they have no
error checking. I think that I had to tweak some paths as well.


Make sure you have no programs running that produce audio
output when you start VS.
Post Reply