GP32 Compiling Frodo Beta11 Source


0-bake

Active Member
Joined
Dec 15, 2003
Messages
538
hi,

i tried to compile frodo beta 11, but i can't make it. i have the devkitadv for the gp32 (unmodified) and the frodo source.
by making it i get these errors:


C:\projects\gp32\Frodo\Src>makegp
/usr/local/devkitadv/bin/arm-agb-elf-g++ -I./ -DGP32 -Igp32/ -Igp32/libpogo/ -O3
-Igp32/sound/ -fno-builtin -fno-exceptions -mcpu=arm9tdmi -mtune=arm9tdmi -nost
dinc -c -o gp32/chatboard/kbdrv.o gp32/chatboard/kbdrv.c
gp32/chatboard/kbdrv.c: In function `void installIRQ(int, void (*)())':
gp32/chatboard/kbdrv.c:54: parse error before `[' token
gp32/chatboard/kbdrv.c: In function `void removeIRQ(int)':
gp32/chatboard/kbdrv.c:69: parse error before `[' token
gp32/chatboard/kbdrv.c: In function `void UART0RxInt()':
gp32/chatboard/kbdrv.c:153: cannot convert `const char*' to `unsigned char*'
for argument `1' to `int sendACKZ(unsigned char*)'
gp32/chatboard/kbdrv.c: In function `int sendACKZ(unsigned char*)':
gp32/chatboard/kbdrv.c:206: cannot convert `unsigned char*' to `const char*'
for argument `1' to `int strlen(const char*)'
gp32/chatboard/kbdrv.c: In function `int preInitKbd(long int, long int)':
gp32/chatboard/kbdrv.c:278: cannot convert `unsigned char*' to `const char*'
for argument `1' to `int strcmp(const char*, const char*)'
gp32/chatboard/kbdrv.c:282: cannot convert `unsigned char*' to `const char*'
for argument `1' to `int strcmp(const char*, const char*)'
gp32/chatboard/kbdrv.c:286: cannot convert `unsigned char*' to `const char*'
for argument `1' to `int strcmp(const char*, const char*)'
gp32/chatboard/kbdrv.c: In function `int postInitKbd()':
gp32/chatboard/kbdrv.c:301: cannot convert `unsigned char*' to `const char*'
for argument `1' to `int strcmp(const char*, const char*)'
gp32/chatboard/kbdrv.c:305: cannot convert `unsigned char*' to `const char*'
for argument `1' to `int strcmp(const char*, const char*)'
gp32/chatboard/kbdrv.c:310: cannot convert `unsigned char*' to `const char*'
for argument `1' to `int strcmp(const char*, const char*)'
gp32/chatboard/kbdrv.c:315: cannot convert `unsigned char*' to `const char*'
for argument `1' to `int strcmp(const char*, const char*)'
makegp: *** [gp32/chatboard/kbdrv.o] Error 1

what do i have to do to get this fixed?
 
C:\projects\gp32\Frodo\Src>makegp
/usr/local/devkitadv/bin/arm-agb-elf-g++ -I./ -DGP32 -Igp32/ -Igp32/libpogo/ -O3
-Igp32/sound/ -fno-builtin -fno-exceptions -mcpu=arm9tdmi -mtune=arm9tdmi -nost
dinc -c -o gp32/chatboard/kbdrv.o gp32/chatboard/kbdrv.c


You are compiling a C source, with a C++ compiler. This is very Bad ...
 
Dont' trust my crappy makefile. Go in the sub-directories and run make in there first before doing the higher level ones.
 
gp32/chatboard/kbdrv.c: In function `void installIRQ(int, void (*)())':
gp32/chatboard/kbdrv.c:54: parse error before `[' token

and it looks like your using an out-of-date compiler that doesn't recognise the new assembler options, so update that whilst your there.
 
yes, that was my question. update with what? and how? is there an update/patch? can i overwrite the devkitadv with the devkitarm?
 
DevKitArm is a decent compiler, but I think the Gamepark SDK isn't compatible with it, but I could be wrong there.

What SDK does Frodo use?
 
Squidge posted on Sep 17 2004 at 09:47 AM said:
DevKitArm is a decent compiler, but I think the Gamepark SDK isn't compatible with it, but I could be wrong there.

What SDK does Frodo use?

An old devkitadv with a newer gcc 3.4 and other things installed over the top. The libraries used are pogolib, none of the official gamepark ones.
 
Last edited by a moderator:
devkitARM works fine with the gamepark SDK. It just takes a little more setup time. You download the gamepark libs zip from www.devkit.tk and put it anywhere, and then make sure it's pointed to in your makefile.

Not that hard
 
ok, now i have a problem in understanding the makefile

#LIBS = -lstdc++ -Lgp32/libpogo -lpogo -lm -lg -lgcc

by make, an error "connot find -lpogo" is returned

i have the dir structure as it is stored in the source's zip.
frodo\src\gp32\libpogo

why is ther an -L ? what does that mean?
what is -lpogo ?
 
Back
Top