Quote Originally Posted by Legolas
As promised, I have just uploaded the new fpc stable release 2.2.4a, for GBA and NDS. Because some bug fixes added in the development trunk that aren't merged to 2.2.4 branch, a couple of new features are postponed to the next release. But don't worry, all should work fine without them

So, let's talk a bit about this release! I have added a batch script to auto configure the fpc.cfg file, so it should be easier to install the compiler. Now there are several new examples and, among others, I'm sure you will find interesting the ones about sprites and background, as well as the ones about music and effects. All examples are now shipped with makefile and Makefile.fpc; no more need to call external tools, all the work is done behind the scenes (calling image and sound conversion tools, patching the executables, etc.).

fpc4gba 2.2.4a - (9.41 MB)
fpc4nds 2.2.4a - (11.5 MB)
Hi Legolas,
I downloaded both zip files and extracted them to my g: drive.

Example:

Code:
G:\arm-gba-fpc\
G:\arm-nds-fpc
I also downloaded devkitARM and ran the install program (extracted to G:\devkitARM)

I then went into theG:\arm-gba-fpc\ folder and ran the setpath.bat file to set the devkitARM path to G:\devkitARM.

How do I actually go about building one of the example programs?

I altered the build.bat file in the G:\arm-gba-fpc\examples\graphics\PCXView folder to this

Code:
@echo off

set path=G:\arm-gba-fpc\bin\arm-gba;g:\lazarus\fpc\2.2.3\bin\i386-win32;%PATH%

fpcmake -w -Tgba

make OS_TARGET=gba CPU_TARGET=arm BINUTILSPREFIX=arm-eabi- 

pause
to reflect where my gba binaries are and ran the bat file.

I got these errors:

Code:
Processing Makefile.fpc
Error: Target "gba", package "libgbafpc" not found
'Converting ScoutSplash.pcx file to asm...'
'Creating ScoutSplash.pcx.inc include file...'
'tr' is not recognized as an internal or external command,
operable program or batch file.
make: *** [ScoutSplash.pcx] Error 255
Press any key to continue . . .
Any ideas?

cheers,
Paul