#14851 - pinkywu - Tue Jan 13, 2004 10:10 am
Dear All
I have look your GBA tutrial in Pern Project and have some problem, as following:
1.In the example Mode 3 Drawing,I have download it and delete the BIN file, and try to make a new one with "make.exe", however it cannot create the BIN file, I try edit the "make.exe" with notepad, I cannot understand the text in the notepad.
2. I try to In Day 2, there are a example in the last page using mode 4 to display a image. I have tried it, however it need to use a "make.exe" file to make a BIN file, I use the "make.exe" in the example I metioned in question 1 example, But it still fail.
What should I do to change the "make.exe" to make a bin file?
Thanks for your help.
#14853 - NoMis - Tue Jan 13, 2004 12:47 pm
it would be helpful if you provide further information why its not compiling. are there any errors displayed??
and you don't want to modify make.exe. if you call make in a specific folder it will look for a file called makefile which defines some basic rules how to compile the source and how to link. you will then make makefiles for your projects. you can even compile without using make but it has some advanteges in the way that it only compiles files that are changed and its easy to add more sourcefiles to the compile process.
if you wanna find out more about makefiles take a look at the makefile tutorial in this section: http://www.gbadev.org/download.php?section=docs&filename=maketut.zip
NoMis
#14896 - pinkywu - Wed Jan 14, 2004 3:10 pm
It have the following error:
------------------------------------------------------------------------------
--[++++++++++++++++staringmonkey's Auto-Compiler++++++++++++++]
------[++++++++++++++++++Assembling boot.asm++++++++++++++++++]
'armasm' 不是內部或外部命令、
可執行的程式或批次檔。
------[++++++++++++++++++Assembling data.asm++++++++++++++++++]
'armasm' 不是內部或外部命令、
可執行的程式或批次檔。
------[++++++++++++Compiling C Source (Errors.txt)++++++++++++]
'zarmcc' 不是內部或外部命令、
可執行的程式或批次檔。
------[++++++++++++++++++Linking and Exporting++++++++++++++++]
'armlink' 不是內部或外部命令、
可執行的程式或批次檔。
找不到 C:\Documents and Settings\fyp\桌面\Pinky\Mode 3 Drawing v2\Mode 3 Drawing
v2\*.o
-----------------------------------------------------------------------------------
I guess it is the problem of compiler.
What compiler I should use to compiler it?
Can the "DevKit" apply for mode4?
I know it can apply for mode 3.
When I use mode3 to in gba display, I can compiler my ".c" and ".h" file with the following command:
------------------------------------------------------
path=%path%;c:\devkitadv\bin;c:\devkitadv
GCC_EXEC_PREFIX=c:\devkitadv/lib/lib-gcc/
gcc -o test.elf init_text.c serial.c hci.c hci_uart.c gba_gui.c -lm
objcopy -O binary test.elf test.bin
del test.elf
pause
----------------------------------------------------------------------------
What should I change If I use mode 4 instead of mode3.
#14900 - poslundc - Wed Jan 14, 2004 4:41 pm
Since I am unable to read those error messages, I can't tell you what you're doing wrong. But it's not the compiler's fault at all. It's something wrong with your code or with your makefile.
At first glance, are you compiling the right files? Do these init_text.c, serial.c, hci.c, hci_uart.c and gba_gui.c have anything whatsoever to do with your program?
Dan.
#14908 - Miked0801 - Wed Jan 14, 2004 6:38 pm
Babel Fish
'armasm' non- right? Order outside section 或, the yes execute type 或 judging next? .
[ ++++++++++++++++++ Assembling data.asm++++++++++++++++++ ]
'armasm' non- right? Order outside section 或, the yes execute type 或 judging next? .
------ [ ++++++++++++ Compiling C Source (Errors.txt)++++++++++++ ]
'zarmcc' non- right? Order outside section 或, the yes execute type 或 judging next? .
------ [ ++++++++++++++++++Linking and Exporting++++++++++++++++ ]
'armlink' non- right? Order outside section 或, the yes execute type 或 judging next? . 找
Non- arriving at C: \Documents and Settings\fyp\? Surface \Pinky\Mode 3 Drawing v2\Mode 3 Drawing v2\* o
Seems to be a section error of some sort!?! :)
#14912 - tepples - Wed Jan 14, 2004 7:45 pm
I'll take a guess that the text is Chinese for "Bad command or file name". The "zarmcc" name indicates that the project is designed for ARM's $6000 toolchain. It may take a bit of work to port a project designed for ARM-toolchain to compile on the GNU toolchain.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#14930 - poslundc - Wed Jan 14, 2004 8:44 pm
This thread is hilarious... talk about the blind leading the deaf. :)
Dan.
#14943 - Miked0801 - Thu Jan 15, 2004 1:20 am
Chinese is even better. I had assumed it was Japenese :)
-- [ ++++++++++++++++staringmonkey's Auto-Compiler++++++++++++++ ] ------ [ ++++++++++++++++++Assembling boot.asm++++++++++++++++++ ] 'armasm' is not? Or the external command, may? Good formula or raid? . ------ [ ++++++++++++++++++Assembling data.asm++++++++++++++++++ ] 'armasm' is not? Or the external command, may? Good formula or raid? . ------ [ ++++++++++++Compiling C Source (Errors.txt) ++++++++++++ ] 'zarmcc' is not? Or the external command, may? Good formula or raid? . ------ [ ++++++++++++++++++Linking and Exporting++++++++++++++++ ] 'armlink' is not? Or the external command, may? Good formula or raid? . Cannot find C:\Documents and Settings\fyp\ tabletop \Pinky\Mode 3 Drawing v2\Mode 3 Drawing v2\* o
#14960 - LOst? - Thu Jan 15, 2004 9:54 am
poslundc wrote: |
This thread is hilarious... talk about the blind leading the deaf. :)
Dan. |
LOL
Exactly what I thought. I see Chinese letters as error messages. That's just too funny.
#14961 - FluBBa - Thu Jan 15, 2004 9:56 am
poslundc wrote: |
This thread is hilarious... talk about the blind leading the deaf. :)
Dan. |
Yepp! :)
This must be one of the first times I read something "funny" on the gbadev forum.
_________________
I probably suck, my not is a programmer.