Hi,
I'm having difficulty compiling "hello.c", the hello world program for MeMirko's SDK described in the tutorials section on this site. I know that Hello World should be completely idiot-proof, but I'm no ordinary idiot!
What I've done so far:
*****************************************************************
Downloaded (from http://www.mirkoroller.de/gp32):
"Arm9 gcc crosscompiler for windows[95-XP] with gp32 tools"
"SDK082.bz2"
Extracted the cross-compiler to c:\gp32_MrMirko\
Into which I put the SDK082.bz2 and ran "extractsdk", which unzipped a load of stuff into c:\gp32_MrMirko\gp32_sdk\
Included with the cross-compiler was a batch file called "compile". If I copy this into one of the example folders in the gp32SDK folder and click it, it compiles without any difficulty. So the compiler seems to be installed ok.
****************************************************************
Now the problem: I can't compile "hello.c". I'm guessing that it needs a makefile, but I really have no idea how to write one. I have tried using modified versions of makefiles found in the examples: changed the filename, left everything else alone. This gave me an error telling me it can't find the obj files. I deleted all references to obj files in the makefile (as AFAIK hello.c doesn't have any), and I now get the error:
C:\gp32_MrMirko\gp32_SDK\Projects>compile
make: *** No rule to make target `arm-elf-gcc', needed by `all'. Stop.
Any ideas why it isn't working?
Also, just typing gcc hello.c gives me:
C:\gp32_MrMirko\Projects>gcc hello.c
gcc: installation problem, cannot exec `cc1': No such file or directory
Is there any chance someone could post a sample makefile (ideally with explaination) which should work? A link to a decent guide about makefiles would also be very useful. Googling just gives me links to guides for unix, which I'm told works differently, or very specific examples which I don't know enough to understand.
Argh, this post has turned epic, but I thought lots of info would help get the right solution... maybe it'll just scare people off instead!
Thanks in advance (and for just reading this far!)
Melville - who will get his game written if it kills him!
I'm having difficulty compiling "hello.c", the hello world program for MeMirko's SDK described in the tutorials section on this site. I know that Hello World should be completely idiot-proof, but I'm no ordinary idiot!
What I've done so far:
*****************************************************************
Downloaded (from http://www.mirkoroller.de/gp32):
"Arm9 gcc crosscompiler for windows[95-XP] with gp32 tools"
"SDK082.bz2"
Extracted the cross-compiler to c:\gp32_MrMirko\
Into which I put the SDK082.bz2 and ran "extractsdk", which unzipped a load of stuff into c:\gp32_MrMirko\gp32_sdk\
Included with the cross-compiler was a batch file called "compile". If I copy this into one of the example folders in the gp32SDK folder and click it, it compiles without any difficulty. So the compiler seems to be installed ok.
****************************************************************
Now the problem: I can't compile "hello.c". I'm guessing that it needs a makefile, but I really have no idea how to write one. I have tried using modified versions of makefiles found in the examples: changed the filename, left everything else alone. This gave me an error telling me it can't find the obj files. I deleted all references to obj files in the makefile (as AFAIK hello.c doesn't have any), and I now get the error:
C:\gp32_MrMirko\gp32_SDK\Projects>compile
make: *** No rule to make target `arm-elf-gcc', needed by `all'. Stop.
Any ideas why it isn't working?
Also, just typing gcc hello.c gives me:
C:\gp32_MrMirko\Projects>gcc hello.c
gcc: installation problem, cannot exec `cc1': No such file or directory
Is there any chance someone could post a sample makefile (ideally with explaination) which should work? A link to a decent guide about makefiles would also be very useful. Googling just gives me links to guides for unix, which I'm told works differently, or very specific examples which I don't know enough to understand.
Argh, this post has turned epic, but I thought lots of info would help get the right solution... maybe it'll just scare people off instead!
Thanks in advance (and for just reading this far!)
Melville - who will get his game written if it kills him!