Page 1 of 1

compiling Supertux

PostPosted: 08 Feb 2012, 22:20
by ctdabomb
To compile Supertux:
(note, I did this with ubuntu 10.04 but compiling will be bascicly the same in other OSes)

1. get the prerequisites:
cmake 2.6 or later
OpenGL headers and libraries
SDL 1.2.5 or later(libsdl-gfx1.2-dev under synaptic)
SDL_image (any version that includes PNG and JPEG support)(libsdl-image1.2-dev under synaptic)
PhysicsFS (libphysfs-dev under synaptic)
OpenAL(libopenal-dev under synaptic)
GLEW (libglew1.5-dev under synaptic)
Boost (libboost-dev under synaptic)

2. type into terminal(ignore quotation marks): "git clone https://code.google.com/p/supertux/" this will create a supertux folder in your home directory

3. type: "cd /home/YOURHOMEFOLDER/supertux"

4. type: "cmake ." then: "make"

5. enjoy :D

There may be some errors when compiling and that will stink, but that shouldn't happen if you have all of your correct prerequisites installed as those are usually the cause of errors. more on compiling at: https://supertux.lethargik.org/wiki/Download/Git

Re: compiling Supertux

PostPosted: 25 Mar 2012, 05:49
by 165your4
How do I get the OpenGL and OpenAL libraries?

Re: compiling Supertux

PostPosted: 25 Mar 2012, 16:49
by ctdabomb
165your4 {l Wrote}:How do I get the OpenGL and OpenAL libraries?

what OS do you have?

Re: compiling Supertux

PostPosted: 25 Mar 2012, 20:15
by 165your4
ctdabomb {l Wrote}:
165your4 {l Wrote}:How do I get the OpenGL and OpenAL libraries?

what OS do you have?


I have Windows XP.

Re: compiling Supertux

PostPosted: 26 Mar 2012, 00:57
by ctdabomb
read this topic: viewtopic.php?f=67&t=2777 it has an installer for windows, unfortunately, I think it only has the game and not the editor, but at least that is an improvement from 3.3.
If you really have to have the editor, you can use the 3.3 version (you might have to downgrade the game to 3.3 first though). this wiki page would have something for that. https://supertux.lethargik.org/wiki/Download/Unstable.
as your finale option, you can use GIT(which it seems like you already tried) https://supertux.lethargik.org/wiki/Download/Git

Re: compiling Supertux

PostPosted: 26 Mar 2012, 06:07
by 165your4
ctdabomb {l Wrote}:read this topic: viewtopic.php?f=67&t=2777 it has an installer for windows, unfortunately, I think it only has the game and not the editor, but at least that is an improvement from 3.3.
If you really have to have the editor, you can use the 3.3 version (you might have to downgrade the game to 3.3 first though). this wiki page would have something for that. https://supertux.lethargik.org/wiki/Download/Unstable.
as your finale option, you can use GIT(which it seems like you already tried) https://supertux.lethargik.org/wiki/Download/Git

Very helpful, a link to instructions on the supertux wiki that says that you need to look at a help file in the supertux directory, which DOES NOT MENTION HOW TO GET ANY OF THE REQUIRED PROGRAMS, so I will just have to look in every dusty corner of the Internet to find something which is probably only made for Linux anyway.

Re: compiling Supertux

PostPosted: 26 Mar 2012, 11:04
by Knitter
If you read the INSTALL file then you already know where to get every requirement, it lists all the links for each needed component, except for the OpenGL headers that are too dependent on your system. Still, going over to the OpenGL website or you're video card's website should be your first option.

Compiling SuperTux is not that hard, in fact it's one of the easiest application I have compiled and their cmake templates work nicely. Your main problem will be getting the libraries needed and from those only the OpenGL headers are not directly listed on the INSTALL file since they depend on your video card.

I've seen you ask about the editor, from reading the Supertux wiki the code seems unmaintained so I don't know how easy it will be to compile but since the code for the editor runs on the Mono platform, it should be easy to use on MS Windows.

Re: compiling Supertux

PostPosted: 20 Apr 2012, 00:52
by 165your4
When I go "cmake ." it says:
{l Code}: {l Select All Code}
CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 6". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Could not find cmake module file: C:/Users/.../SuperTux/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not find cmake module file: C:/Users/.../SuperTux/CMakeFiles/CMakeCXXCompiler.cmake
-- Configuring incomplete, errors occured!

C:/Users/.../SuperTux is where all the files are.

BUGTRACKER ENTRY: https://supertux.lethargik.org/bugs/view.php?id=935

Re: compiling Supertux

PostPosted: 04 Sep 2012, 14:36
by ctdabomb
here is a wiki page for compiling on windows http://supertux.lethargik.org/wiki/User ... on_Windows