gsport/doc/web/src/site/apt/developing.apt

134 lines
4.2 KiB
Plaintext
Raw Normal View History

2010-04-13 18:29:34 +00:00
-----
Developing GSport
-----
David Schmidt (david__schmidt at users dot souceforge dot net)
-----
Developing GSport
Information, mosly concerning building, about various platforms:
* General build instructions
2010-04-14 16:22:12 +00:00
You need to build with a <<<make>>> utility.
2010-04-13 18:29:34 +00:00
There's a default Makefile, which should work for nearly any environment.
2010-04-14 16:22:12 +00:00
The Makefile includes a file called <<<vars>>> which defines the platform-
dependent variables. You need to make <<<vars>>> point to (or be) the appropriate
2010-04-13 18:29:34 +00:00
file for your machine.
* Win32
There is a different port of KEGS by Chea Chee Keong (akilgard) called
2010-04-14 16:22:12 +00:00
KEGS32. It was originally available from {{{http://web.archive.org/web/20071107082448/http://www.geocities.com/akilgard/kegs32/}http://www.geocities.com/akilgard/kegs32}},
but geocities has since closed.
The Win32 code in GSport is leveraged from KEGS32.
2010-04-13 18:29:34 +00:00
GSport can be compiled with {{{http://www.mingw.org/}Mingw}}
and {{{http://www.cygwin.com/}Cygwin}} as well as via standard Microsoft compiler suites.
In order to compile:
------------------
cd into the src/ directory
rm vars
ln -s vars_win32 vars
./make_win
------------------
You need to have a ROM file (named
ROM, ROM.01, or ROM.03) in the same directory.
To quit, either click the close box, or force quit the application.
You can also middle-click (if you have a 3-button mouse) or
Shift-F6 to get the debugger in the terminal window, and then type "q".
* Mac OS X
2010-04-14 16:22:12 +00:00
Use the <<<vars_mac>>> file:
-------------------------------------
rm vars; ln -s vars_mac vars
make
-------------------------------------
2010-04-13 18:29:34 +00:00
2010-04-14 16:22:12 +00:00
After the <<<make>>> has finished, it will create the application <<<GSportMac>>>.
2010-04-13 18:29:34 +00:00
* X86 Linux
2010-04-14 16:22:12 +00:00
Use the <<<vars_x86linux>>> file:
2010-04-13 18:29:34 +00:00
-------------------------------------
rm vars; ln -s vars_x86linux vars
make
-------------------------------------
2010-04-14 16:22:12 +00:00
The resulting executable is called <<<gsportx>>>.
2010-04-13 18:29:34 +00:00
The build scripts assume perl is in your path. If it is somewhere else,
you need to edit the "PERL = perl" line in the vars file and make it point
to the correct place.
2010-04-14 16:22:12 +00:00
For audio, GSport needs access to <<</dev/dsp>>>. If the permissions do not allow
GSport to access <<</dev/dsp>>>, it can fail with a cryptic error message. As root,
just do: <<<chmod 666 /dev/dsp>>> .
2010-04-13 18:29:34 +00:00
2010-04-14 16:22:12 +00:00
If you do not have the <<</dev/dsp>>> device, GSport will not start unless you
tell it to disable audio with the following command-line argument:
<<<./gsportx -audio 0>>>
2010-04-13 18:29:34 +00:00
* PowerPC Linux
2010-04-14 16:22:12 +00:00
Use the <<<vars_linuxppc>>> file:
2010-04-13 18:29:34 +00:00
-------------
rm vars; ln -s vars_linuxppc vars
make
---------
The build scripts assume perl is in your path. If it is somewhere else,
you need to edit the "PERL = perl" line in the vars file and make it point
to the correct place.
Audio is currently disabled by default, but you can try turning it on
2010-04-14 16:22:12 +00:00
by runnning the command: <<<gsportx -audio 1>>>. It sounds horrible, but sounds do
2010-04-13 18:29:34 +00:00
come out.
* Solaris SPARC
2010-04-14 16:22:12 +00:00
Use the <<<vars_solaris>>> file:
2010-04-13 18:29:34 +00:00
-------------------------------------
rm vars; ln -s vars_solaris vars
make
-------------------------------------
The build scripts assume perl is in your path. If it is somewhere else,
you need to edit the "PERL = perl" line in the vars file and make it point
to the correct place.
Audio is currently disabled by default, but you can try turning it on
2010-04-14 16:22:12 +00:00
by runnning the command: <<<gsportx -audio 1>>>
2010-04-13 18:29:34 +00:00
* Solaris x86
2010-04-14 16:22:12 +00:00
Use the <<<vars_x86solaris>>> file:
2010-04-13 18:29:34 +00:00
-------------------------------------
rm vars; ln -s vars_x86solaris vars
make
-------------------------------------
The build scripts assume perl is in your path. If it is somewhere else,
you need to edit the "PERL = perl" line in the vars file and make it point
to the correct place.
Audio is currently disabled by default, but you can try turning it on
2010-04-14 16:22:12 +00:00
by runnning the command: <<<gsportx -audio 1>>>
2010-04-13 18:29:34 +00:00
* Other platforms - "C"
If you are porting to an X-windows and Unix-based machine, it should be
2010-04-14 16:22:12 +00:00
easy. Start with <<<vars_x86linux>>> if you are a little-endian machine, or
<<<vars_linuxppc>>> if you are big endian. Don't define <<<-DKEGS_LITTLE_ENDIAN>>>
2010-04-13 18:29:34 +00:00
unless your processor is little-endian (x86, Alpha). Mac, Sun, MIPS,
HP, Motorola, and IBM are big-endian.