|
|
(46 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| Terminus Est is John's awesome space shooter. See [http://soloforge.com his Soloforge website]. | | Terminus Est is John's awesome space shooter. See [http://soloforge.com his Soloforge website]. |
|
| |
|
| I am hoping to help him build it under linux. Here's John's "getting started" list...
| | Mike is hoping to help John build Terminus under linux. |
| | We'll need fmod and SDL. |
|
| |
|
| There is some stuff in here on getting set up to build SDL apps with
| | [[Terminus SDL and fmod under linux]] (done) |
| KDeveloper: http://gpwiki.org/index.php/SDL
| |
|
| |
| You will need SDL, plus the SDL_image and SDL_gfx support libs.
| |
| Available from: http://www.libsdl.org/index.php
| |
|
| |
| And the FMOD sound system from http://www.fmod.org.
| |
|
| |
|
| | [[Terminus autotools setup]] (done) |
|
| |
|
| Typically I'll be using either Fedora or Gentoo during my porting effort.
| | [[Terminus Making the code portable to linux]] (done) |
|
| |
|
| | | Go to [http://soloforge.com Soloforge] for the latest updates! |
| '''FEDORA'''
| |
| | |
| | |
| '''1''' Install SDL and fmod, so easy!!
| |
| | |
| yum install SDL_gfx
| |
| yum install SDL_image
| |
| yum install fmod
| |
|
| |
| Mar 19 22:42:01 Installed: SDL_gfx.i386 2.0.13-2.2.fc4.rf
| |
| Mar 19 22:45:23 Installed: SDL_image.i386 1.2.4-1.2.fc4.rf
| |
| Mar 19 23:11:05 Installed: fmod.i386 3.74.1-1.2.fc4.rf
| |
| | |
| J: Huh. Does that yum app go out and get the latest version too? Slick.
| |
| I will get some source control up and running today.
| |
| | |
| M: yep it auto-updates everything to the latest stable versions, including tracking down dependencies.
| |
| | |
| | |
| '''2''' Grab the source - John is using subversion - very l337!
| |
| | |
| yum install subversion
| |
| cd development
| |
| mkdir terminus
| |
| cd terminus
| |
| svn checkout http://xxxxx/terminus/
| |
| | |
| and there it is!
| |
| | |
| | |
| '''3''' Build it
| |
| | |
| sdl-config tells you what you need on the gcc command line:
| |
| | |
| [m@thedigitalmachine terminus]$ sdl-config --libs
| |
| -L/usr/lib -lSDL -lpthread
| |
| [m@thedigitalmachine terminus]$ sdl-config --static-libs
| |
| -L/usr/lib -lSDL -lpthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext
| |
| | |
| So let's try this:
| |
| | |
| g++ main.cpp -o main `sdl-config --cflags --static-libs`
| |
| | |
| Here's what we got, we're missing fmod libs:
| |
| | |
| In file included from system.hpp:17,
| |
| from startup.hpp:8,
| |
| from main.cpp:8:
| |
| util/audio.hpp:10:23: fmod/fmod.h: No such file or directory
| |
| | |
| Try again:
| |
| | |
| g++ main.cpp -o main `sdl-config --cflags --static-libs` -L/usr/lib/fmod
| |