#86057 - sniper - Sun Jun 04, 2006 3:30 am
** Update to Version 2.0.1
An Eclipse CDT plugin for the devkitPRO/ARM toolchain.
Currently supported features:
* easy to use managed build system based on the GNU toolchain
* supports C and C++ projects, also ASM Programming
* different project types
o NDS ROM - ARM9 Sources + NDS Tool
o NDS ARM7 Code - ARM7 Sources + ObjCopy
o NDS ARM7 Library - generates a static link lib
o NDS ARM9 Library - generates a static link lib
* includes ObjCopy and NDS-Tool in the toolchain
* integrate the ARM gdb debug server
TODO:
* Tests on Linux and MacOS
If you have some suggestions please post it here or send me a pm.
get it from http://snipah.com
ciao
Sniper
Last edited by sniper on Tue Jul 08, 2008 12:55 am; edited 3 times in total
#86154 - smsisko - Sun Jun 04, 2006 10:03 pm
I tried it, it's pretty good.
A couple of things, maybe I was just missing something, I had to setup manually the include and library directory to add ${DEVKITPRO}/libnds/include and ${DEVKITPRO}/libnds/lib.
Also I can't seem to make the indexer see the content of the files in the include directory of libnds.
cya
smsisko
#86166 - sniper - Mon Jun 05, 2006 12:11 am
My opinions was that it is not good to add the libnds automatically, because may some ppl don't want use it. The problem with the indexer is a general CDT problem I think. Sometimes it works for me and sometimes not. Try using the full-indexer.
I recorded a small video how to use the managedbuilder using eclipse3.2 under windows http://dev.snipah.com/index.php?id=10&type=1
Probably that is helpful for some ppl ;)
ciao
Sniper
#87323 - sniper - Tue Jun 13, 2006 11:11 am
version 1.1.1 released with some fixes.
#95257 - jandujar - Fri Jul 28, 2006 1:11 pm
like smsisko. I need to set up manually the devkitpro enviorenment and libraries includes/libs for every project.
Could I modify the default's configuration for the new projects?
Good work sniper
_________________
http://jandujar.homelinux.com
http://www.dsrobot.com
#95302 - DynamicStability - Fri Jul 28, 2006 5:34 pm
Did I hear eclipse works with the Wireless Debugger? If so, I may have to upgrade my computer to use eclipse :P
_________________
Framebuffer is dead.
DynaStab.DrunkenCoders.com
#95317 - sniper - Fri Jul 28, 2006 6:35 pm
It should be possible to use the wireless debugger with eclipse because its just gdb. I think Simon is using Eclipse too.
For the libnds .. probably I can add a feature to the project creation wizard to add libnds automatically. You can also create a project called e.g. dummy. Set your common preferences there and just copy paste it if you are too lazy ;))
ps: 1.1.2 is out since some weeks.
#95766 - simonjhall - Sun Jul 30, 2006 11:23 pm
Hey man, just finally got round to checking out your managed builder - it's good! If I didn't love writing makefiles so much I actually might use this!
For those who wanna debug, yeah Eclipse works really well with the debugger. The icing on the cake for this managed builder would be add a debug configuration to the run->debug menu to make it easier to set up GDB. One thing to note however if you do wanna use the debugger with this builder is that by default thumb code is generated, rather than arm. And you guys don't have a thumb debugger yet :-) Someone's gonna have to write one :-(
Keep up the good work!
#107539 - Ant6n - Mon Oct 30, 2006 5:55 pm
GBA support would be really cool ;)
#108300 - OOPMan - Tue Nov 07, 2006 4:31 pm
I've been using the Eclipse builder for a bit now and it seems okay...
Except that every now and then it (Eclipse) manages to b0rk everything completely and becomes unable to compile whatever project I'm working out, spouting inane errors about missing tokens and the like that make me wonder if it isn't somehow frying the files in a subtle way...
Except re-creating the project fixes the problem...
Very irritating...
Anyone else had this?
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI
You can find my NDS homebrew projects here...
#108357 - sniper - Wed Nov 08, 2006 12:05 am
OOPMan, can you reproduce it ? Give me an example and ill try to fix it. With my projects I have no problems.
#108377 - OOPMan - Wed Nov 08, 2006 7:21 am
I'll try. With any luck something will come of it...
I just get this sneaky suspicion that Eclipse is somehow trying to save the files in the wrong format or something and hence the compiler is having issues...
We'll see. I'm re-creating things using a handmade makefile, so we'll see if the changes are actually down to the managed builder, Eclipse or something else...
EDIT: Hmmmmm, okay, so...
I had a function, I added code to it, it stopped working
I commented out the function, copied a fresh version of it from the original source file, it works
I add in my new code, it works...
It's a little weird, whatever's going on. It's not the managed builder, I think. It might have something to do with the source file I'm working with. Possibly there's some kind of UNIX/Windows formatting clash...
Anyway, I'm pretty sure it's not the managed builder now, so no need to worry...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI
You can find my NDS homebrew projects here...
#108446 - sniper - Wed Nov 08, 2006 10:25 pm
ok thanks for the info =)
#108449 - OOPMan - Wed Nov 08, 2006 10:43 pm
Or lack thereoff...
Seriously, the errors were bizarre, indicating problems on lines of code that I hadn't even touched...
And no, I didn't accidentally delete a ; or comment something out :-(
Well, anyway, as long as it keeps working, I won't mind...
EDIT: The problem is definitely with Eclipse. Maybe it doesn't like the JDK version I'm using, maybe it has some issues with the CDT version I'm on or perhaps it just really hates NTFS, but it looks like it's deciding the duplicate the last 5 or so lines of the app when I save. Which causes problems.
*Checks something...*
Except it's not only Eclipse doing it! It's happening in Notepad++ as well!!!
This is bizarre! Hmmmmmmm...
I suspect there may be something very wrong with Windows for this to happen :-(
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI
You can find my NDS homebrew projects here...
#108539 - sniper - Thu Nov 09, 2006 11:30 pm
CDT has still alot bugs hope the 4.0 will be alot better which will be released next year.
#131781 - norfair - Wed Jun 20, 2007 1:54 am
Hello Sniper,
Thank you for making this tool!
I'm new to eclipse and I'm trying it with the 4.0 CDT (RC3). It is working, but the .nds it generates is bigger than the one generated by Wintermute's makefile.
The example I'm using is NeHe lesson 2. The .nds is 73kb in eclipse and 17kb in programmer's notepad 2 (Wintermute's makefile). Both files are valid roms, just wondering why this is happening.
#131813 - sniper - Wed Jun 20, 2007 1:09 pm
Hi norfair,
I think its because I use other compiler settings.
In "Project-Properties/C++ Build/Settings" you can change it.
Try changing the Optimzing level and/or Tumb/ARM Mode
I hope I can find time to adapt the plugin to CDT4.0 with new features.
Sniper
#131824 - ps2aich - Wed Jun 20, 2007 2:51 pm
sniper wrote: |
Hi norfair,
I think its because I use other compiler settings.
In "Project-Properties/C++ Build/Settings" you can change it.
Try changing the Optimzing level and/or Tumb/ARM Mode
I hope I can find time to adapt the plugin to CDT4.0 with new features.
Sniper |
Hi sniper,
do you think it would be easy to support projects with both, an arm7 and an arm9 code (as in the combined template of DevkitPro)?
As I understand your current builder, it only supports either arm7 or arm9 (I tried it out once, it was already some time ago)
#131829 - wintermute - Wed Jun 20, 2007 3:25 pm
The best way to handle dual core builds is the combined template. I haven't looked at Eclipse much but it should allow for externally managed makefiles like any other editor.
the 73K versus 17K concerns me rather a lot, even compiling as ARM code instead of thumb shouldn't account for that kind of difference.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog
#131833 - sniper - Wed Jun 20, 2007 4:03 pm
ATM I use 2 managed make projects with a dependency to handle arm7 and arm9 code in my project and it works well.
CDT4 supports multi languages per project and different compiler settings/tool chain per file/directory maybe its possible to make a managed make template for it!?
Also I planed to make project templates for ndslib and palib. So using managed make projects in eclipse will be as easy as the current std makefiles from the example codes.
#131837 - ps2aich - Wed Jun 20, 2007 4:18 pm
sniper wrote: |
ATM I use 2 managed make projects with a dependency to handle arm7 and arm9 code in my project and it works well.
CDT4 supports multi languages per project and different compiler settings/tool chain per file/directory maybe its possible to make a managed make template for it!?
Also I planed to make project templates for ndslib and palib. So using managed make projects in eclipse will be as easy as the current std makefiles from the example codes. |
Thanks sniper, you convinced me to give the CDT a chance again.
Currently, I'm living very good with the excellent Makefiles in DevkitPro (my respect to Wintermute for this), but miss the Editing/Navigation/Refactoring/etc features of Eclipse.
Although external Makefiles are useable inside CDT, the managed projects have some kind of magic I'm used to in the JDT currently, so I would love to use them for C++ Development.
#151423 - Bojangles - Tue Feb 26, 2008 12:35 am
Hey Sniper!
I'm trying to get this environment set up, I'm an eclipse Java user, and haven't had to play with project settings in a long while.
I'm having some trouble.
Eclipse 3.3 and CDT 4 :
Managed Makefile doesn't exist, so I choose New->Project->C++->NDS ROM directly.
When I create a project that way, I don't see the devkitPro includes that you show in the video, am I missing a step?
#151447 - sniper - Tue Feb 26, 2008 3:39 pm
Make sure to have the devkitPro/bin directory in PATH than a ManagedMake should work(??)
Also they changed something with CDT4, so there some problems even with the include pathes shown in the include folder.
I have to update it for CDT4/5 but I have no time at the moment ;(
#151641 - Bojangles - Sat Mar 01, 2008 8:25 pm
sniper wrote: |
Make sure to have the devkitPro/bin directory in PATH than a ManagedMake should work(??)
Also they changed something with CDT4, so there some problems even with the include pathes shown in the include folder.
I have to update it for CDT4/5 but I have no time at the moment ;( |
Maybe It's the ManagedMake part that I'm unsure about. In this version of Eclipse, I right click in the "C/C++ Projects" view, and Choose "New", there's no option for ManagedMake like there was prior to Eclipse 3.3.
I've tried use "C++ Project." That prompts me to the configure the project with a name, type, and toolchain.
I'm not really sure how to configure beyond this point, because it's different from your demo video.
Possible types are:
"NDS ROM (eabi)" (lists a "GCC Toolchain".)
"Makefile" (lists "GCC Toolchain" or "--Other)
Any hints on getting past this bit of configuration?
#151882 - sniper - Thu Mar 06, 2008 11:05 am
"NDS ROM (eabi)" is the right option.
#153559 - sniper - Tue Apr 01, 2008 10:50 pm
bump, updated to Version 2.0.0, see edited initial post.
#159908 - sniper - Tue Jul 08, 2008 12:54 am
bump, updated to 2.0.1
Changes:
* Linker Misc Arguments are now editable
* Handling of the strange DevkitPro EnvVar format "/c/devkitpro" which is a mix of unix and windows style. MinGW style? I don't know .. but it does not work out of Eclipse to resolve the DevkitPro path
* ScannerInfoCalculator fixed to works now hopefully every timeto descover the compiler include pathes and macros
Also full Eclipse packages now available for download.