Troubleshooting linux: Difference between revisions

From Spring
Jump to navigationJump to search
Jk (talk | contribs)
No edit summary
Jk (talk | contribs)
No edit summary
Line 1: Line 1:
=== Compiletime ===
== Compiletime ==


==== hpiutil2 error with cmake ====
=== hpiutil2 error with cmake ===
make[1]: *** [rts/lib/CMakeFiles/hpiutil2.dir/all] Error 2
make[1]: *** [rts/lib/CMakeFiles/hpiutil2.dir/all] Error 2
make: *** [all] Error 2
make: *** [all] Error 2
Line 7: Line 7:
Run cmake TWICE. It doesn't always work properly on the first run.
Run cmake TWICE. It doesn't always work properly on the first run.


==== invalid use of ILvoid / ALCvoid  ====
=== invalid use of ILvoid / ALCvoid  ===


During compiling, if you get a lot of the following errors:
During compiling, if you get a lot of the following errors:
Line 17: Line 17:
This happens because the version of libdevil-dev you have installed is not compatible with gcc version 4.2 and newer. Update it.
This happens because the version of libdevil-dev you have installed is not compatible with gcc version 4.2 and newer. Update it.


=== Ingame ===
== Ingame ==


==== Slow Mouse ====
=== Slow Mouse ===


Run:
Run:
Line 31: Line 31:
The mouse should now be as fast as in windowed mode.
The mouse should now be as fast as in windowed mode.


==== Rotating Buildings ====
=== Rotating Buildings ===


You can rotate a building before you give the build order, but the keys that do this don't work in linux by default for some users. Issue the following commands in the beginning of the game:
You can rotate a building before you give the build order, but the keys that do this don't work in linux by default for some users. Issue the following commands in the beginning of the game:
Line 50: Line 50:
If you want to save these keys you have to edit the uikeys.txt.
If you want to save these keys you have to edit the uikeys.txt.


==== Sound is Choppy ====
=== Sound is Choppy ===


If the engine sound is very broken or choppy sounding, and you hear some noise or crackling, you need to update OpenAL. Spring needs at least OpenAL Soft with version 1.6 to sound good, by this time all major distribution have it in their repository, so installing it should be easy (if it isn't installed by default).
If the engine sound is very broken or choppy sounding, and you hear some noise or crackling, you need to update OpenAL. Spring needs at least OpenAL Soft with version 1.6 to sound good, by this time all major distribution have it in their repository, so installing it should be easy (if it isn't installed by default).


==== OpenAL Segfault ====
=== OpenAL Segfault ===


See -> Sound is Choppy.
See -> Sound is Choppy.


=== Desync in game ===
== Desync in game ==


Spring only send the commands and not the result over the network, so it needs to run all math in a repeatable manner,  so all other clients in a multiplayer match get the same results. So some CPU specific features have to enabled/disabled. If you desync you either have a CPU that isn't SSE capable or you set the wrong -march /-mtune compiler flags. If you compile Spring via scons you should try:
Spring only send the commands and not the result over the network, so it needs to run all math in a repeatable manner,  so all other clients in a multiplayer match get the same results. So some CPU specific features have to enabled/disabled. If you desync you either have a CPU that isn't SSE capable or you set the wrong -march /-mtune compiler flags. If you compile Spring via scons you should try:
Line 65: Line 65:
<code><pre>cmake -DMARCH_FLAG="i686"</pre></code>
<code><pre>cmake -DMARCH_FLAG="i686"</pre></code>


==<font style="color: #B5DEF3; text-decoration: underline;"> If You Still Have Problems </font>==
=<font style="color: #B5DEF3; text-decoration: underline;"> If You Still Have Problems </font>=


Join either IRC chat in #taspring on Freenode or #sy on QuakeNet, or ask for help in the lobby channels #sy or #springlobby.
Join either IRC chat in #taspring on Freenode or #sy on QuakeNet, or ask for help in the lobby channels #sy or #springlobby.
Line 73: Line 73:
Prepare to list your distribution, which installation method you used, and what exactly is the error. Don't ask if people are around or not, just go straight to business and tell all details, for maximizing your chances of getting help.
Prepare to list your distribution, which installation method you used, and what exactly is the error. Don't ask if people are around or not, just go straight to business and tell all details, for maximizing your chances of getting help.


=== [[FAQ]] ===
== [[FAQ]] ==
   [[FAQ|here]]
   [[FAQ|here]]


=== IRC ===
== IRC ==


# #taspring @ FreeNode
# #taspring @ FreeNode
# #sy @ QuakeNet
# #sy @ QuakeNet


=== Asking For Help ===
== Asking For Help ==


Okay, so you need human help. This is how '''NOT''' to do it:
Okay, so you need human help. This is how '''NOT''' to do it:

Revision as of 02:21, 9 August 2009

Compiletime

hpiutil2 error with cmake

make[1]: *** [rts/lib/CMakeFiles/hpiutil2.dir/all] Error 2 make: *** [all] Error 2

Run cmake TWICE. It doesn't always work properly on the first run.

invalid use of ILvoid / ALCvoid

During compiling, if you get a lot of the following errors:

/usr/include/IL/il.h:497: error: '<anonymous>' has incomplete type 
/usr/include/IL/il.h:497: error: invalid use of 'ILvoid'

This happens because the version of libdevil-dev you have installed is not compatible with gcc version 4.2 and newer. Update it.

Ingame

Slow Mouse

Run:

echo '# Slow fullscreen cursor fix for Spring' >> ~/.xsessionrc
echo 'SDL_MOUSE_RELATIVE=0' >> ~/.xsessionrc
echo 'export SDL_MOUSE_RELATIVE' >> ~/.xsessionrc

And log out and log in again.

The mouse should now be as fast as in windowed mode.

Rotating Buildings

You can rotate a building before you give the build order, but the keys that do this don't work in linux by default for some users. Issue the following commands in the beginning of the game:

/bind keycodex buildfacing inc
/bind keycodey buildfacing dec

Keycodex and keycodey above are just placeholders. What you want to write depends on which key you want to use. To see what keycodes any keys have, do:

/keydebug yes

And then hit the keys you want to use, and spring prints the keycodes in the message buffer.

If you want to save these keys you have to edit the uikeys.txt.

Sound is Choppy

If the engine sound is very broken or choppy sounding, and you hear some noise or crackling, you need to update OpenAL. Spring needs at least OpenAL Soft with version 1.6 to sound good, by this time all major distribution have it in their repository, so installing it should be easy (if it isn't installed by default).

OpenAL Segfault

See -> Sound is Choppy.

Desync in game

Spring only send the commands and not the result over the network, so it needs to run all math in a repeatable manner, so all other clients in a multiplayer match get the same results. So some CPU specific features have to enabled/disabled. If you desync you either have a CPU that isn't SSE capable or you set the wrong -march /-mtune compiler flags. If you compile Spring via scons you should try:

scons configure arch=i686

Cmake users should try:

cmake -DMARCH_FLAG="i686"

If You Still Have Problems

Join either IRC chat in #taspring on Freenode or #sy on QuakeNet, or ask for help in the lobby channels #sy or #springlobby.

However, generic linux problems not really related to installing this should be asked elsewhere.

Prepare to list your distribution, which installation method you used, and what exactly is the error. Don't ask if people are around or not, just go straight to business and tell all details, for maximizing your chances of getting help.

FAQ

 here

IRC

  1. #taspring @ FreeNode
  2. #sy @ QuakeNet

Asking For Help

Okay, so you need human help. This is how NOT to do it:

15:54 -!- **** [n=****@*] has joined #taspring
15:54 < ****> Hi, i have a problem with compiling spring on debian
15:54 < ****> can anyone help me?
15:57 -!- **** [n=****@*] has quit [Client Quit]

Don't ask to ask, instead go straight to business by stating the exact problem you have, and giving all necessary information. What you were trying to achieve, how did you try to do it, what happened and what did you expect to happen.

Then WAIT for someone to notice you.