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.

C/C++ > Builds just fine, but only runs on VBA

#147756 - Leo28C - Thu Dec 27, 2007 9:05 am

Hello everyone!

I followed these instructions to build my dev environment under Linux:
http://linux.gbadev.org/gcc-gba/

I used the latest versions instead of the ones he used. Well, it all installed with minimum effort. I tried to compile his test program, it failed. Then I changed the CFLAGS to:

-Wall -marm -mcpu=arm7tdmi -nostartfiles crt0.o /home/leo/gbadev/arm-thumb-elf/lib/libc.a /home/leo/gbadev/lib/gcc/arm-thumb-elf/4.2.2/thumb/libgcc.a

and it compiled. Well, it runs on VBA, but on GBA (EZ-Flash IV Mini-SD) it crashes when I select the ROM, and on PSP (using gpSP emu) it displays the GameBoy logo, without the Nintendo part. (Something that shouldn't happen, I have no option set on the emu to display this logo, and none of the other games do it.)

Anyone know what to do? Thanks in advance!

#147763 - kusma - Thu Dec 27, 2007 2:21 pm

Sounds to me like a corrupted/missing nintendo-logo, have you run gbafix on the ROM before trying it? No$gba gives you a warning if this is the case, so if you're unsure, try in no$gba.

#147764 - kusma - Thu Dec 27, 2007 2:24 pm

By the way, are you sure you're not better off just using devkitARM? It's a more up-to-date toolchain that has been pretty well tested.

#147768 - Leo28C - Thu Dec 27, 2007 4:08 pm

What the... devkitARM you say? *Goes back to tutorial site* I thought that's what I was using... grr. Guess I gotta read the small letters next time.

Thanks, I'll post back if I can't get devkitARM to install.