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 > I think something fails with my path variable

#37279 - oxymen - Wed Mar 09, 2005 11:42 pm

Hi
I am strugeling to make my devkitarm work.
I now believe that the error lies in the path variable.
now, my devkitarm folder is located at C:\devkitarm
how should my path look based on this?
my surrent path is like this:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\devkitarm\bin;C:\msys\1.0\bin

The make.bat I use looks like this:
arm-elf-gcc -o pong.elf pong.c -lm
arm-elf-objcopy -O binary pong.elf pong.gba
now, this wont work as is, but if I go to C:\devkitarm\bin in cmd and write arm-elf-gcc it runs.

Please help, thanks

#37280 - DekuTree64 - Wed Mar 09, 2005 11:49 pm

Try putting
Code:
SET PATH=C:\devkitarm\bin;C:\msys\1.0\bin;%PATH%

up at the top of your make.bat.
Either that or put it in autoexec.bat and restart your computer first, then it should always be in the path. Just doing it manually from the command line seems to only take effect for that particular command line window, and it goes back to how it was when you close it.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku

#37281 - oxymen - Wed Mar 09, 2005 11:59 pm

thanks that worked, but now I am left with another problem.
the screen I get is totaly blank.
I compiled the complete source from the tutorial at http://www.webbesen.dk/gba/
and all I get is white, no errors at all.
any idea why this happens?

#37315 - wintermute - Thu Mar 10, 2005 12:27 pm

Code:

arm-elf-gcc -specs=gba.specs -mthumb -mthumb-interwork -o pong.elf pong.c -lm
arm-elf-objcopy -O binary pong.elf pong.gba


Personally, I wouldn't recommend that tutorial at all. Yes there's a lot of information and it's laid out nicely but there's so much wrong with the coding practices that I wouldn't even know where to start.

This one I do recommend

http://user.chem.tue.nl/jakvijn/tonc/index.htm[/code]

#37320 - oxymen - Thu Mar 10, 2005 1:53 pm

thanks a lot for the fixed makescript and the link,
this tutorial looks real good