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 > help whit painter

#28754 - Remuko - Fri Nov 05, 2004 4:07 pm

i am totaly n00b whit this so if someone can help :)

i downloaded Evil Bob's Pocket Painter 0.3 at http://www.gbadev.org/sources_cd.html

and i press make.bat and then it dont work? it dont make a .gba file

can someone tell me what devkit program i have to use give me the right link please there are alot at http://devkitadv.sourceforge.net/download.html

or tell me what i did wrong?

#28757 - pyros - Fri Nov 05, 2004 4:19 pm

Perhaps your operating system doesn't support .bat files. They are written for MS-DOS and also work in Microsoft Windows :)

Alternatively, perhaps the bat file isn't pointing to your compiler, or isn't written to use your specific compiler, or something else.

You could either, post the output from when you run the bat file to offer some more indication of what could be causing the non-compilation, or you could try using some code from a tutorial with the recommended compiler to give yourself more of a chance of success.

#28758 - Remuko - Fri Nov 05, 2004 4:43 pm

i am getting this in the make.bat

Quote:
Step 1 of 3 complete
Step 2 of 3 complete
Step 3 of 3 complete
-
ERRORS:

END OF ERRORS


it looks like its good but he dont make a .gba file can you check at the files from Evil Bob's Pocket Painter 0.3 [/url]

#28767 - pyros - Fri Nov 05, 2004 6:56 pm

this particular make.bat uses armasm.exe, armcc.exe and armlink.exe which are both part of the official ARM development suite. If you are using gcc or some other compiler(s), then this particular batch file obviously will not work.

If you DO have these compilers, then make sure that the .bat file is pointing to them. better still, replace the file with one containing:

Code:
armasm -Littleend -cpu ARM7TDMI boot.asm

armcc -c -Wall -Otime  -fpu none -Littleend -cpu ARM7TDMI apcs /narrow/noswst ebpp.c  -o ebpp.o -errors errlog.txt

armlink -bin -first boot.o -map -ro-base 0x08000000 -rw-base 0x2000000 boot.o   ebpp.o   -o ebpp.gba

del *.o

and prefix armasm, armcc and armlink with the directories that contain them.
(copy the origional make.bat first, and use notepad to do this).

If you're not using the official arm dev suite then you would have to change the code a bit to work with your compilers :/ (unless someone were to make a program to do this :)