pea
developer
Hi there,
I'm not new to programming, but I am definately new to command line compilers and GCC etc.
I have recently got the src for the smc lib as Frodo uses with long file name support, and am trying to replace Mr.Mirkos one.
My setup is win XP with the dev kit put together by bobintrees specially for use with Mr.Mirkos SDK. I have been able to succesfully compile and run the examples that come with the SDK replacement. It is stored in C:\gp32_MrMirko.
Sorry, I don't know if this is devkitadv based or not, anyone?
To start with I have:
1) Copied the smc source to a directory (C:\gp32_MrMirko\gp32_SDK\smfs_ext)
2) Edited the makefile to remove full paths from CC, LD and AS (whatever they are??) to make them the same as the makefiles in the examples that I am able to compile.
3) Dropped in a batch file that runs 'Make'
4) Run the batch file! What I get is:
My question is first of all -
a ) What is the file it can't find, and why?
b ) I have left all the default compile flags. Are these correct? My other makefiles (for the Mr.Mirko examples) are so much simpler than these!
TIA
I'm not new to programming, but I am definately new to command line compilers and GCC etc.
I have recently got the src for the smc lib as Frodo uses with long file name support, and am trying to replace Mr.Mirkos one.
My setup is win XP with the dev kit put together by bobintrees specially for use with Mr.Mirkos SDK. I have been able to succesfully compile and run the examples that come with the SDK replacement. It is stored in C:\gp32_MrMirko.
Sorry, I don't know if this is devkitadv based or not, anyone?
To start with I have:
1) Copied the smc source to a directory (C:\gp32_MrMirko\gp32_SDK\smfs_ext)
2) Edited the makefile to remove full paths from CC, LD and AS (whatever they are??) to make them the same as the makefiles in the examples that I am able to compile.
Code:
CC = arm-agb-elf-gcc
LD = arm-agb-elf-gcc
AS = arm-agb-elf-as
AR = arm-elf-ar
CFLAGS = -Os -DLITTLE_ENDIAN -DGP32 -fno-common -fno-builtin -ffreestanding -fno-exceptions -mcpu=arm9tdmi -mtune=arm9tdmi
OBJS = $(addsuffix .o, $(basename $(wildcard *.c)))
%.o: %.c
$(CC) $(CFLAGS) -c $<
%.o: %.cpp
$(CC) $(CPPFLAGS) -c $<
%.gxb: %.elf
$(OBJCOPY) -v -O binary $< $@
%.o: %.s
$(AS) -o $@ $<
all: libsm.a
libsm.a : $(OBJS)
ar r libsm.a $(OBJS)
clean:
rm -f *.o *.a
Code:
@echo off
c:\gp32_MrMirko\bin\make
c:\gp32_MrMirko\bin\rm -f *.o *~ Test.map *.bin *.elf
4)
@echo:
pause
Code:
arm-agb-elf-gcc -Os -DLITTLE_ENDIAN -DGP32 -fno-common -fno-builtin -ffreestanding -fno-exceptions -mcpu=arm9tdmi -mtune=arm9tdmi -c smf_buf.c
process_begin: CreateProcess((null), arm-agb-elf-gcc -Os -DLITTLE_ENDIAN -DGP32 -fno-common -fno-builtin -ffreestanding -fno-exceptions -mcpu=arm9tdmi -mtune=arm9tdmi -c smf_buf.c, ...) failed.
make (e=2): The system cannot find the file specified.
c:\gp32_MrMirko\bin\make: *** [smf_buf.o] Error 2
Press any key to continue . . .
My question is first of all -
a ) What is the file it can't find, and why?
b ) I have left all the default compile flags. Are these correct? My other makefiles (for the Mr.Mirko examples) are so much simpler than these!
TIA
Last edited by a moderator: