gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Compiling problems!

#45759 - bmnb1234 - Tue Jun 14, 2005 6:18 pm

Hi I am tying to get the game engine to compile but when I execute the make.bat I just get error messages. I am using devkitadv as the author instructs.

I followed the instructions on the web.

If you are using Windows NT/2000, then its better to use a .cmd file:
-- devkit.cmd --
@echo off
PATH=c:\devkitadv\bin;%PATH%
cmd

Will this work on windows XP too , If not does anyone hove any idea how to get it to work withe WinXP

next I executed the make.bat

make.bat contents


@del game.gba

@set orgpath=%path%
@set path=C:\devkitadv\bin;%path%
@set CFLAGS=-marm -mthumb-interwork -mlong-calls -O1 -D __GBA__

del *.o

@REM Assemble ARM/Thumb Code
@REM =======================

@echo ====== Compiling Assembly Files
REM as -mthumb-interwork -o poly.text.iwram.o poly.text.iwram.s

REM I still haven't been able to link this into Yeti3D
REM as -mthumb-interwork -o crt0.o crt0.s

@echo ====== Compiling C Files
gcc %CFLAGS% -c *.c ..\..\src\*.c

@echo ====== Linking
gcc %CFLAGS% -o game.elf *.o

objcopy -O binary game.elf game.gba

@del game.elf
@set path=%orgpath%

Then I get these error messages.


Could Not Find C:\devkitadv\yeti3dgpl\platform\gba\game.gba

C:\devkitadv\yeti3dgpl\platform\gba>del *.o
Could Not Find
C:\devkitadv\yeti3dgpl\platform\gba\*.o
====== Compiling Assembly Files

C:\devkitadv\yeti3dgpl\platform\gba>REM as
-mthumb-interwork -o poly.text.iwram.o poly.text.iwram.s


C:\devkitadv\yeti3dgpl\platform\gba>REM I still haven't been able to
link this into Yeti3D


C:\devkitadv\yeti3dgpl\platform\gba>REM as -mthumb-interwork -o
crt0.o crt0.s ====== Compiling C Files


C:\devkitadv\yeti3dgpl\platform\gba>gcc -marm -mthumb-interwork
-mlong-calls -O1 -D __GBA__ -c *.c ..\..\src\*.c
'gcc' is not recognized as an internal or
external command, operable program or batch file.
====== Linking


C:\devkitadv\yeti3dgpl\platform\gba>gcc -marm -mthumb-interwork
-mlong-calls -O1 -D __GBA__ -o game.elf *.o


I sure I just doing a newbie mistake, anybody have any idea what doing wrong I would appreate any assistane I can get.

Thank you for your time!

Jason