#114452 - brave_orakio - Mon Jan 08, 2007 1:28 am
Hi, I use Dev-C++ and I would like to ask how to configure this for DevkitARM. There is a topic here about this but it only discusses configuration for DevkitAdvance. I have placed all paths(at least I think all of them) but the makefile seems to have a problem. Can anyone post how to do everything just in case I didn't do something right?
_________________
help me
#114474 - wintermute - Mon Jan 08, 2007 6:54 am
Are you intending to build GBA or NDS projects?
Personally I find it hard to recommend this editor for anything at all given that it has extremely limited support for custom makefiles.
If you used the devkitPro installer then you have Programmer's NotePad available which was chosen for both it's ease of use and extensibility. I really recommend you give it a try before getting too involved with the complexities of using dev-cpp with devkitARM.
The installer supplys a number of example projects for both gba and nds including some basic templates which can simply be copied and used as a basis for your own projects. Many of the homebrew programmers here are using PN2 and the devkitPro build system quite happily.
Currently I'm busy pulling the final elements together for a devkitARM release but once that's out of the way I hope to do some work on more extensive documentation regarding devkitARM, editors and the build system used for the example code.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog
#114482 - brave_orakio - Mon Jan 08, 2007 8:42 am
For GBA then eventually going to NDS.
I see, but there is an option for custom makefiles. I was thinking maybe I'm doing something wrong with the makefiles or the configurations.
Unfortunately I didn't use the installer, I simply downloaded direct.
_________________
help me
#114663 - brave_orakio - Tue Jan 09, 2007 10:41 pm
Here is the current problem, when I compile the program I get this:
process begin: Create process((null), cc - o project.elf main.o,...)failed
Does anybody know the problem here?
_________________
help me
#114862 - brave_orakio - Thu Jan 11, 2007 4:57 am
Another question as I have found some file for setting up devC++ for general ARM compiler. Is there an arm-elf-gdb with release 18 of devkitarm? I can't seem to find the file in the folders.
_________________
help me
#120256 - brave_orakio - Fri Mar 02, 2007 1:51 am
Alright for anybody who is intrested I got it working!
First of course is to setup the compiler options under the tools tab, create a new configuration, name it whatever you want. Don't touch the Settings,
Add the directories for binaries, libraries, c and cpp includes. For the programs, replace the gcc and g++ with the arm-elf-gcc.exe and arm-elf-g++.exe. Press ok!.
Now open project options under the projects tab. Under the parameters tab, put -mthumb -mthumb-interiwork and -specs=gba.specs under the linker additional command line options(You can also place the same under the c and c++ options). under the build options, check the override output filename check box and change the .exe to .elf. Thats it! I still havent figured out how to convert to .gba but I'll post again when I do.
**EDIT**
Can anybody confirm if this worked for them too? Feedback would bw appreciated!!
#122461 - brave_orakio - Mon Mar 19, 2007 2:26 pm
OK now here`s the last step to convert to .gba.
After the .elf file is created using the steps that I gave in the previous posts, go back to the Project Options.
Now under the Makefile tab, check the "Use custom Makefile" then go to your project directory and look for Makefile.win(This is actually the generated makefile!).
Now change the "all: all-before <project name>.elf all-after" to "all:all-before <project name>.gba all-after".
after the "clean: clean-custom" command create another command
"<project name>.gba: <project name>.elf
<tab>-@arm-elf-objcopy -v -O binary $< $@
<tab>-@gbafix $@"
and thats it! very little makefile changing! Please give me some feedback on this method!
_________________
help me