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 > DevKitARM going linux!

#145543 - anox - Sat Nov 17, 2007 5:04 pm

Hey folks,

Since my pc running windows blew out last week I am stuck only with my kubuntu linux machine. Being a linux newbie Iam having quite a time getting the devkitarm to work. Could one of you give me a hint to this problem...

I scrolled the internet but only found tons of tutorials for Windows.I downloaded devKitARM for linux and extracted the contents to /home/<me>/gba/. Then I wanted to compile a simple c file with

Code:
./arm-eabi-gcc-4.1.2 -o t.elf test.c


^giving me a ton of undefined references.

I think it is a setup problem but I can't even think of a cause. Drop a line if you care to help :)

#145544 - Mighty Max - Sat Nov 17, 2007 5:10 pm

If you are using the gcc directly, you need to point it to the libs it should include. In line you give, you are only compiling the test.c without libnds or any other library.

I'd recomment using the templates and "make" on the comandline.
_________________
GBAMP Multiboot

#147528 - elyk1212 - Sat Dec 22, 2007 5:54 am

I know this is old, but did you get it working?

You need to set up all your $PATH, and $DEVKITARM env variables. I can post an example make file, and all the env variables you need to define. Let me know.

BTW, I mostly use Linux for all my development. Say goodbye to viruses and spyware :). Good move.