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 > Need help with make file. for DOS

#110433 - |||.^._$H???W.^._||| - Tue Nov 28, 2006 4:57 pm

Here is the code i have for the Make file...

Code:
path=C:\devkitadv\bin
gcc -o pong.elf pong.c -lm
objcopy -O binary pong.elf pong.bin


When i type in "make" in dos i get this:

"gcc -o pong.elf pong.c 'gcc' is not recognized as an internal or external comand,operable program or batch file."

-0 binary pong in 'objcopy'is not recognizedas an internal or external comand, operable program or batch file."

Dont know whatv I did wrong....

This is my first attepmt at putting togeather a GBA game. Getting the instructions from http://www.webbesen.dk/gba

Need help :)

-$hadow
_________________
Positions available@:
http://www.adventproject.proboards100.com

C++/C# programers wanted (Mainly 2D project) Potential to earn a profit. :)

#110444 - thegamefreak0134 - Tue Nov 28, 2006 5:55 pm

I\'m going to tell you this now, and then I\'ll shut up. Using devkitadv is not recommended anymore. Make the switch to dekKitPRO now (it\'s muuuuuch easier to use, since the templates get you going quick) before you get bogged down in devkitadv.

Anywho, I assume this is a batch file yes? And you installed devkitadv to the default directory, and restarted the computer afterwords?

Odds are, you simply need to set the environment variables manually, which can be a pain depending on your version of windows. You also might want to check your path command for things like capitalization and such. (Not quite sure what the default is there) But it all boils down to a windows path issue in the end, everything else looks good.

-gamefreak
_________________
What if the hokey-pokey really is what it's all about?

[url=http:/www.darknovagames.com/index.php?action=recruit&clanid=1]Support Zeta on DarkNova![/url]

#110446 - |||.^._$H???W.^._||| - Tue Nov 28, 2006 6:01 pm

thegamefreak0134 wrote:
I\'m going to tell you this now, and then I\'ll shut up. Using devkitadv is not recommended anymore. Make the switch to dekKitPRO now (it\'s muuuuuch easier to use, since the templates get you going quick) before you get bogged down in devkitadv.


No this os completely relevant... I dont want to use anything that isnt widely supported anymore....

Thanks for the Tip!!

-$hadow
_________________
Positions available@:
http://www.adventproject.proboards100.com

C++/C# programers wanted (Mainly 2D project) Potential to earn a profit. :)

#110472 - tepples - Tue Nov 28, 2006 8:40 pm

Quick tip to get you going in devkitARM: If you're building a GBA program on a PC, use arm-eabi-gcc not gcc and arm-eabi-objcopy not objcopy. The newer tools follow a standard that gcc without a prefix refers to a toolchain that compiles for the same platform that it runs on. For example, my own projects' makefiles depend on gcc pointing to MinGW and arm-eabi-gcc pointing to devkitARM.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#110505 - Dwedit - Tue Nov 28, 2006 10:53 pm

Just to nitpick, you're not using DOS, you're using Win32 Console Applications. Just because the cmd.exe console looks just like DOS doesn't mean you're actually using the real DOS operating system. For example, DOS doesn't do long file names, but Win32 console programs do. Win32 console programs have also never heard of any 640k barrier.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#110554 - |||.^._$H???W.^._||| - Wed Nov 29, 2006 5:36 am

Dwedit wrote:
Just to nitpick, you're not using DOS, you're using Win32 Console Applications. Just because the cmd.exe console looks just like DOS doesn't mean you're actually using the real DOS operating system. For example, DOS doesn't do long file names, but Win32 console programs do. Win32 console programs have also never heard of any 640k barrier.


Thanks for Nit picking..... Relevance low, but its all good....
_________________
Positions available@:
http://www.adventproject.proboards100.com

C++/C# programers wanted (Mainly 2D project) Potential to earn a profit. :)

#110600 - thegamefreak0134 - Wed Nov 29, 2006 8:55 pm

AAAARRRGHHH!!! I just realized your problem. You are using the Crash Course, the oh-so-dreaded crash course for GBA programming! AAAARGGHHHH!!!

/ranting

OK, so it\'s not really that bad, but be prepared to un-learn a lot of stuff very fastly. They use a lot of older and outdated methods (like using a for loop to copy image data) that has been severely improved upon. The document is very old. It will give you a very basic rundown of framebuffer modes and sprites, but that\'s about it. I recommend using anything else in the world except that tutorial, and my fellow gbadev community members should agree, as well as be able to point out the better beginner demos. (Im a TONC fan myself, but thats not very beginner oriented...)

-gamefreak
_________________
What if the hokey-pokey really is what it's all about?

[url=http:/www.darknovagames.com/index.php?action=recruit&clanid=1]Support Zeta on DarkNova![/url]