I'm trying to compile the SDL version of GearHead 2 and hopefully improve the
How to compile GearHead wiki article along the way. Any help that you can give would be appreciated.
I am running Fedora 11 x86_64.
Here's what I've done so far:
1. I downloaded the gh2-0603-source.zip and gh2-0603-image.zip archives.
2. I extracted them and moved the gamedata and image directories into the GH2 directory and moved GH2 to /home/GH2.
3. I installed fpc, SDL-devel, SDL_image-devel, SDL_mixer-devel, SDL_net-devel, and SDL_ttf-devel.
4. I downloaded JEDI-SDLv1.0 from the sourceforge cvs repository using these commands:
cvs -d:pserver:anonymous@jedi-sdl.cvs.sourceforge.net: /cvsroot/jedi-sdl login
(when prompted for a password, simply press the Enter key)
cvs -z3 -d:pserver:anonymous@jedi-sdl.cvs.sourceforge.net: /cvsroot/jedi-sdl co JEDI-SDLv1.0
5. I moved JEDI-SDLv1.0 to /home/JEDI-SDLv1.0
6. I added these lines to /etc/fpc.cfg:
-Fi/home/JEDI-SDLv1.0/SDL/Pas
-Fu/home/JEDI-SDLv1.0/SDL/Pas
-Fu/home/JEDI-SDLv1.0/SDL_Mixer/Pas
-Fu/home/JEDI-SDLv1.0/SDL_Image/Pas
-Fu/home/JEDI-SDLv1.0/SDL_Net/Pas
-Fu/home/JEDI-SDLv1.0/SDL_ttf/Pas
-Fu/home/JEDI-SDLv1.0/smpeg/Pas
-Fu/home/JEDI-SDLv1.0/SFont/Pas
-Fu/home/JEDI-SDLv1.0/SDL_Sound/Pas
-Fu/home/JEDI-SDLv1.0/SDLMonoFonts/Pas
-Fu/home/JEDI-SDLv1.0/SDLSpriteEngine/Pas
-Fu/home/JEDI-SDLv1.0/Cal3D/Pas
-Fu/home/JEDI-SDLv1.0/ODE/Pas
-Fu/home/JEDI-SDLv1.0/SDLCtrls/Pas
-Fu/home/JEDI-SDLv1.0/SDL_flic/Pas
7. I changed to the /home/GH2 directory, typed 'fpc gearhead' and got the following output:
Free Pascal Compiler version 2.2.2 [2008/10/26] for x86_64
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling gearhead.pas
gearhead.pas(27,2) Warning: APPTYPE is not supported by the target OS
Compiling gears.pp
Compiling texutil.pp
Compiling navigate.pp
Compiling locale.pp
Compiling rpgdice.pp
Compiling gearutil.pp
Compiling ghmecha.pp
Compiling ui4gh.pp
Compiling ghmodule.pp
Compiling ghholder.pp
Compiling ghintrinsic.pp
Compiling ghchars.pp
Compiling ghweapon.pp
Compiling ghmovers.pp
Compiling ghsensor.pp
Compiling ghsupport.pp
Compiling ghguard.pp
Compiling ghswag.pp
Compiling ghprop.pp
Compiling movement.pp
gearutil.pp(3171,2) Note: Local variable "TB" not used
Compiling ability.pp
ability.pp(248,4) Note: Local variable "Tool" not used
locale.pp(1239,4) Note: Local variable "P" not used
Compiling backpack.pp
Compiling glgfx.pp
glgfx.pp(64,47) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(65,47) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(66,44) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(67,49) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(69,48) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(70,48) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(71,48) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(72,49) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(73,51) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(74,49) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(75,49) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(76,48) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(77,50) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(78,48) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(79,49) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(80,50) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(81,50) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(82,51) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(83,49) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(84,45) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(85,52) Warning: Some fields coming after "b" weren't initialized
glgfx.pp(87,51) Warning: Some fields coming after "b" weren't initialized
Compiling /home/JEDI-SDLv1.0/SDL/Pas/sdlutils.pas
sdlutils.pas(271,3) Note: Local variable "StartTick" not used
sdlutils.pas(890,3) Note: Local variable "_ebx" not used
sdlutils.pas(890,9) Note: Local variable "_esi" not used
sdlutils.pas(890,15) Note: Local variable "_edi" not used
sdlutils.pas(890,21) Note: Local variable "_esp" not used
sdlutils.pas(1152,3) Note: Local variable "_ebx" not used
sdlutils.pas(1152,9) Note: Local variable "_esi" not used
sdlutils.pas(1152,15) Note: Local variable "_edi" not used
sdlutils.pas(1152,21) Note: Local variable "_esp" not used
sdlutils.pas(1324,3) Note: Local variable "_ebx" not used
sdlutils.pas(1324,9) Note: Local variable "_esi" not used
sdlutils.pas(1324,15) Note: Local variable "_edi" not used
sdlutils.pas(1324,21) Note: Local variable "_esp" not used
sdlutils.pas(1327,31) Note: Local variable "TextureColor" not used
sdlutils.pas(2200,9) Warning: unreachable code
sdlutils.pas(2227,7) Warning: unreachable code
sdlutils.pas(2917,14) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(2918,15) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(3005,14) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(3006,15) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(3212,16) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(3228,16) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(3244,21) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(3263,16) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(3124,3) Note: Local variable "StartTick" not used
sdlutils.pas(3280,3) Note: Local variable "R" not used
sdlutils.pas(3280,6) Note: Local variable "G" not used
sdlutils.pas(3280,9) Note: Local variable "B" not used
sdlutils.pas(3486,3) Note: Local variable "R" not used
sdlutils.pas(3486,6) Note: Local variable "G" not used
sdlutils.pas(3486,9) Note: Local variable "B" not used
sdlutils.pas(4092,23) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4095,25) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4117,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4117,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4120,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4120,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4136,23) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4139,25) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4156,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4156,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4159,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4159,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4175,23) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4178,25) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4195,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4195,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4198,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4198,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4214,23) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4217,25) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4234,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4234,41) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4234,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4237,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4237,41) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4237,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4253,23) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4256,25) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4273,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4273,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4276,17) Warning: Conversion between ordinals and pointers is not portable
sdlutils.pas(4276,17) Error: Typecast has different size (4 ->

in assignment
sdlutils.pas(4365) Fatal: There were 10 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
Can anyone help me figure out what I'm doing wrong?