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 > Mac OSX Programming Environment

#81778 - jeddi - Tue May 02, 2006 1:35 am

I'm completely new to GBA programming, though I have done some programming in C, Basic, and a few other languages, so I've got some experience. I've been trying to set up a programming environment on Mac OSX for at least 2 hours now, with little success. All the tutorials I have found have been geared toward PC users. Can anyone point me in the right direction, preferably to a GBA development tutorial or set-up tutorial for Macs? Thanks.

#81779 - SeanMon - Tue May 02, 2006 1:51 am

Download the devkitARM kit for Mac OSX at sourceforge if you haven't yet, double-click the downloaded installer if it doesn't open by itself, and authenticate and install.

Then in Terminal run the following code:
Code:
echo "export DEVKITPRO=/opt/local/devkitpro
export DEVKITARM=/opt/local/devkitpro/devkitARM
export PATH=$PATH:/usr/local/bin:/opt/local/devkitpro/devkitARM/bin" >> ~/.profile
Then type in:
Code:
export DEVKITPRO=/opt/local/devkitpro
export DEVKITARM=/opt/local/devkitpro/devkitARM
export PATH=$PATH:/usr/local/bin:/opt/local/devkitpro/devkitARM/bin

This sets up the correct enviroment variables to the compiler and tools.

That's it (I hope).
edit:extra bbcodes... :)
_________________
null

#81780 - jeddi - Tue May 02, 2006 2:20 am

Ok did all that...but how do I go about compiling code?

#81807 - jeddi - Tue May 02, 2006 6:06 am

I might look like an idiot for saying this, but isn't it silly that there isn't just one folder I can download that has everything in it? Just a zip file that includes everything one needs...devkits, includes, examples, readme's, and all of that crap in one nice neat package? I feel like I running from site to site picking up different files that are going to help me compile GBA code, and somehow they're supposed to come together like Legos.

I haven't done programming for a few years, but I once managed to get a programming environment for Atari 2600, just using a text editor. That's a ghetto system, and I'm surprised that GBA is proving so much more difficult. Then again, that was ASM, and I'd much prefer to code in C.

Please please please someone help! I've been scavenging these forums looking for others with my problem. I've stumbled across a few quick tutorials specifically for Mac users, and they all give a different explanation. I've pretty much tried them all, and I run into all sorts of problems. If there's a clear explanation with step-by-step instructions on how to set this up on a Mac, please link me to it!

I apologize for sounding like such a noob, and I'm trying to do as much as I can on my own, but I've had no success. Thank you in advance for your help!

#81815 - jeddi - Tue May 02, 2006 8:18 am

Ok so still no luck, and I've been working my ass off trying everything I possibly can. I just wish I could get to this point: http://gnufoo.org/gba/GBASDKdemo.mov . Unfortunately that video isn't very helpful.

How do I create a new SGADE project in ProjectBuilder? What is ProjectBuilder?

Oh and I know this is a long shot, but if anyone lives in the Santa Barbara area and wants to meet me at a Starbucks or something, I'd be willing to pay 10 bucks for someone setting this up on my computer. I know that sounds odd, but hey, I really want to get this set up.

I'm really really frustrated with getting this to work. I'm calling it a night.

Sorry for the triple post, lol.

#81949 - jeddi - Tue May 02, 2006 11:02 pm

K I finally got it running. Disregard my past posts, lol.