INSTALL 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. SUPERTUXKART INSTALLATION INSTRUCTIONS
  2. ======================================
  3. General
  4. -------
  5. First, make sure that you have the following packages installed:
  6. * OpenGL (or Mesa 3.0 or later)
  7. * Irrlicht 1.7 or later
  8. * OpenAL
  9. Unpack the files from the tarball like this:
  10. tar xzf supertuxkart-*.tar.gz
  11. cd supertuxkart-*
  12. where '*' is the version of SuperTuxkart you downloaded - eg 0.2.0. Then:
  13. ./configure
  14. make
  15. To test the compilation, supertuxkart can be run from the build
  16. directory by ./src/supertuxkart (./src/supertuxkart.exe on windows).
  17. To install the file, as root execute:
  18. make install
  19. The default install location is /usr/local, i.e. the data files will
  20. be written to /usr/local/share/games/supertuxkart, the executable
  21. will be copied to /usr/local/bin. To change the default installation
  22. location, use the "--prefix" option of configure, e.g. --prefix=/usr
  23. See the --help output of configure for further options.
  24. SVN STK on Ubuntu
  25. -----------------
  26. Here are the compilation instructions for the current svn(2009-10-15) of
  27. Super Tux Kart originally contributed by Damien for Ubuntu Edgy, and updated
  28. to 9.04 version:
  29. install following packages:
  30. # apt-get install libtool libxxf86vm-dev libopenal-dev
  31. libglu1-mesa-dev subversion autoconf automake1.9 g++ gcc
  32. do a:
  33. $ svn checkout https://supertuxkart.svn.sourceforge.net/svnroot/supertuxkart/main/trunk
  34. Get irrlicht-1.x.zip and unzip it, compile irrlicht:
  35. $ cd irrlicht-1.x/source/Irrlicht/
  36. $ make
  37. $ cd ../../..
  38. $ pwd
  39. /some/path/
  40. then we can move to stk, remember to replace the output of pwd below:
  41. $ cd trunk
  42. note that the "--with-irrlicht" argument below is only required if you didn't install irrlicht to /usr/[local]
  43. $ ./autogen.sh && ./configure --with-irrlicht=/some/path/irrlicht-1.x/ && make
  44. and if all went well run the game:
  45. $ src/supertuxkart
  46. tested with g++ 3.3 and 4.1 , both succeeded.
  47. If you want to install the game system-wide, do 'make install'.
  48. To update the source from inside trunk directory, one simple command:
  49. $ svn up
  50. and then, in most cases, just rebuild:
  51. $ make
  52. with the exception of changes to any Makefile.am, in which case:
  53. $ ./autogen.sh && ./configure --with-irrlicht=/some/path/irrlicht-1.x/ && make
  54. But it didn't work!
  55. -------------------
  56. If you checked out your copy directly from SVN, you have to run
  57. 'sh autogen.sh' to generate the configure script.
  58. You should check the SuperTuxKart wiki at:
  59. http://supertuxkart.sourceforge.net/
  60. Also, the most common (by FAR) reason for problems is that your OpenGL/Mesa
  61. is incorrectly installed - so before you complain to any of the Irrlicht or
  62. Supertuxkart mailing lists, first try running one of the example programs
  63. that comes with your OpenGL implementation - or one of the Mesa or GLUT
  64. sample programs.
  65. If THOSE run correctly - but Supertuxkart doesn't then please get in touch
  66. with the SupertuxKart mailing list and we'll do our best to get you up and
  67. racing.