Development Environment of Legend of Tux: Difference between revisions

From LD Smith Games Workshop
Jump to navigation Jump to search
Line 89: Line 89:


=== With OGG Support ===
=== With OGG Support ===
For OGG support, I recommend using SDL_mixer-1.2.6 which can be downloaded here
http://www.libsdl.org/projects/SDL_mixer/release/
(SDL_mixer-1.2.6.tar.gz)
./configure
make
make install
I've tried enabling OGG support in SDL_mixer-1.2.8, but I never got any sound when running the playmus.c test program with an OGG file.  Below is the process of some of the things I tried to get it to work.
Run:
./configure --enable-music-ogg-tremor
<font color="#FF0000">No sound with test "playmus.c" program, and it exited immediately</font>


Download libogg (libogg-1.1.4.tar.gz) and libvorbis (libvorbis-1.2.3.tar.gz) from  
Download libogg (libogg-1.1.4.tar.gz) and libvorbis (libvorbis-1.2.3.tar.gz) from  
Line 123: Line 143:
  make
  make
  make install
  make install
<font color="#FF0000">No sound with test "playmus.c" program, and it exited immediately</font>


== Graphics Tools ==
== Graphics Tools ==

Revision as of 05:45, 16 October 2009

This page defines the process for setting up the development environment for The Legend of Tux.


Compiler and Game Libraries

Download cygwin: http://www.cygwin.com/

Run the "setup.exe" installer

Be sure to select the following:

  • vi
  • gcc
  • make
  • g++

Download SDL: http://www.libsdl.org/download-1.2.php

Get the "SDL-1.2.13.tar.gz" file


Start cygwin, and extract the file

# gzip -d SDL-1.2.13.tar.gz
# tar xvf SDL-1.2.13.tar

Build the SDL environment

# cd SDL-1.2.13
# ./configure
# make
# make install

Be sure to distribute SDL.dll with Windows builds

Audio

Download SDL_mixer-1.2.8.tar.gz: http://www.libsdl.org/projects/SDL_mixer/

If downloaded with Windows, rename the download

mv SDL_mixer-1.2.8.tar.tar SDL_mixer-1.2.8.tar.gz

Decompress

gzip -d SDL_mixer-1.2.8.tar.gz

Set permissions if needed

 chmod u+rw SDL_mixer-1.2.8.tar 

Decompress

tar -xvf SDL_mixer-1.2.8.tar

Without OGG Support

You will only be able to play .wav files, which can be quite huge (50+ Mb for a 2 minute music clip), which in turn makes your distribution package large


Install

 cd SDL_mixer-1.2.8
./configure
 
 make

 make install

Copy the SDL_mixer.h file

cp SDL_mixer.h /usr/local/include/SDL/

Copy the lib files

 cp ./build/.libs/*.a /usr/local/lib

Compile and run the test program

 gcc playwave.c `sdl-config --libs --cflags` -lSDL_mixer
 ./a -f <wavefile.wav>

Remember to copy the SDL_mixer.dll file (./build/.libs/SDL_mixer.dll) to the base directory of your release distribution

With OGG Support

For OGG support, I recommend using SDL_mixer-1.2.6 which can be downloaded here

http://www.libsdl.org/projects/SDL_mixer/release/

(SDL_mixer-1.2.6.tar.gz)

./configure
make
make install


I've tried enabling OGG support in SDL_mixer-1.2.8, but I never got any sound when running the playmus.c test program with an OGG file. Below is the process of some of the things I tried to get it to work.

Run:

./configure --enable-music-ogg-tremor

No sound with test "playmus.c" program, and it exited immediately


Download libogg (libogg-1.1.4.tar.gz) and libvorbis (libvorbis-1.2.3.tar.gz) from

http://www.xiph.org/downloads/

Extract the libraries and install

gzip -d libogg-1.1.4.tar.gz
chmod u+rw libogg-1.1.4.tar
tar -xvf libogg-1.1.4.tar
cd libogg-1.1.4
./configure
make
make install
cd ..
gzip -d libvorbis-1.2.3.tar.gz
chmod u+rw libvorbis-1.2.3.tar
tar -xvf libvorbis-1.2.3.tar
cd libvorbis-1.2.3
./configure
make
make install
cd ..
gzip -d SDL_mixer-1.2.8.tar.gz
chmod u+rw SDL_mixer-1.2.8.tar
tar -xvf SDL_mixer-1.2.8.tar
cd SDL_mixer-1.2.8
./configure
make
make install

No sound with test "playmus.c" program, and it exited immediately

Graphics Tools

Gimp for Windows: http://www.gimp.org/windows/

For editing images


Blender: http://www.blender.org/

For building 3D models


Dia: http://projects.gnome.org/dia/

For creating UML diagrams

Audio Tools

Audacity: http://audacity.sourceforge.net/

For converting between wav/mp3/ogg


Excellent site for public domain music: http://www.musopen.com/

Great for finding free music to include in the game