compiling Supertux

compiling Supertux

Postby ctdabomb » 08 Feb 2012, 22:20

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
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: compiling Supertux

Postby 165your4 » 25 Mar 2012, 05:49

How do I get the OpenGL and OpenAL libraries?
165your4
 
Posts: 8
Joined: 22 Mar 2012, 09:22

Re: compiling Supertux

Postby ctdabomb » 25 Mar 2012, 16:49

165your4 {l Wrote}:How do I get the OpenGL and OpenAL libraries?

what OS do you have?
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: compiling Supertux

Postby 165your4 » 25 Mar 2012, 20:15

ctdabomb {l Wrote}:
165your4 {l Wrote}:How do I get the OpenGL and OpenAL libraries?

what OS do you have?


I have Windows XP.
165your4
 
Posts: 8
Joined: 22 Mar 2012, 09:22

Re: compiling Supertux

Postby ctdabomb » 26 Mar 2012, 00:57

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
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: compiling Supertux

Postby 165your4 » 26 Mar 2012, 06:07

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.
165your4
 
Posts: 8
Joined: 22 Mar 2012, 09:22

Re: compiling Supertux

Postby Knitter » 26 Mar 2012, 11:04

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.
Knitter
 
Posts: 237
Joined: 03 Jul 2011, 22:52
Location: Portugal

Re: compiling Supertux

Postby 165your4 » 20 Apr 2012, 00:52

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
165your4
 
Posts: 8
Joined: 22 Mar 2012, 09:22

Re: compiling Supertux

Postby ctdabomb » 04 Sep 2012, 14:36

here is a wiki page for compiling on windows http://supertux.lethargik.org/wiki/User ... on_Windows
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Who is online

Users browsing this forum: No registered users and 1 guest