Setting up Eclipse for Wii Development June 06, 2009 04:36AM | Registered: 15 years ago Posts: 303 |
Re: Setting up Eclipse for Wii Development June 06, 2009 08:13AM | Registered: 16 years ago Posts: 152 |
Re: Setting up Eclipse for Wii Development June 06, 2009 03:36PM | Registered: 15 years ago Posts: 303 |
Re: Setting up Eclipse for Wii Development June 07, 2009 06:44AM | Registered: 16 years ago Posts: 152 |
run: $(OUTPUT).dol wiiload $(TARGET).dol
What should the target command be for wifi debugging? And I assume the symbol-file command is supposed to refer to the elf file, but what should it be explicitly?Quote
Commands tab
* If you are not using an external gdb command file, "Initialize" should contain your "target" command, and if you did not specify a path to your project .elf in the C/C++ on the main tab, a "symbol-file" command.
Re: Setting up Eclipse for Wii Development June 07, 2009 04:35PM | Registered: 15 years ago Posts: 303 |
I'm no makefile guru, and I can see the idea is sound, but it doesn't seem to do anything useful here.Quote
iofthestorm
OK, I'm going through it right now. One thing I just noticed is that you have one thing that could be done a little bit better in the makefile part. You mentioned that it's a good idea to add the command make before using wiiload, which is sensible but slightly inefficient. If you just add a dependency to the run target, like the following:run: $(OUTPUT).dol wiiload $(TARGET).dol
the run target will depend on the $(OUTPUT).dol target, which is a little more efficient I think than spawning a second copy of make.
make run linking ... HelloWorld.elf c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/lib/crtmain.o: In function `__crtmain': e:/projects/devkitPro/buildscripts/newlib-1.17.0/libgloss/rs6000/crtmain.c:18: undefined reference to `main' collect2: ld returned 1 exit status make: *** [/c/WiiDev/projects/HelloWorld/HelloWorld.elf] Error 1Having another make instance doesn't seem particularly slow. For the helloworld example, it is practically instant. For something as large as libogc (already compiled), make only takes a few seconds here, inside a VM.
run: $(BUILD) wiiload $(TARGET).dolSeems to work correctly. Is that what you intended?
The idea was to have the generic setup, then split off between USB Gecko & Wifi Debugging. It could probably use a bit of reorganising, though. I'll see what I can do.Quote
iofthestorm
Edit: I'm a bit confused by this part:What should the target command be for wifi debugging? And I assume the symbol-file command is supposed to refer to the elf file, but what should it be explicitly?Quote
Commands tab
* If you are not using an external gdb command file, "Initialize" should contain your "target" command, and if you did not specify a path to your project .elf in the C/C++ on the main tab, a "symbol-file" command.
Ah, I see you did provide a target command later in the guide, but perhaps it would have been nice to have it earlier.
TortoiseSVN isn't bad, and I use it myself when I just want to check out a copy of something for a snoop around. I personally kinda like having the libogc source on hand quickly, from Eclipse, though. I just added Subclipse as a minor info titbit, really.Quote
iofthestorm
I'd also like to point out that TortoiseSVN is a pretty nice SVN client for Windows, and I usually prefer it for stuff that doesn't directly relate to eclipse, like downloading the libogc source. It has a nice tool for applying the wifi patch easily, although I've never tried with Eclipse so I don't know how easy that is. I just find that it's usually faster to use TortoiseSVN than eclipse, although I use subversive instead of subclipse, but I don't really know why. I used to use subclipse but then subversive became an eclipse project or whatever so I figured it should have better integration or something. It's a bit annoying to use and every now and then the update site would get screwy for me, but that's probably not relevant since it feels like every now and then the eclipse update manager decides to crap out and die for me.
Thanks for your help! I think Arasium was considering creating a project wizard plugin, but all I know is that the docs are a little outdated and I haven't touched Java yet =)Quote
iofthestorm
Hmm, so I think I've gone through it, but I haven't tested debugging yet. Will do so tomorrow, I've been very tired today. As for a GDB tutorial, I find that the manual is pretty good, and as for a project wizard, I was thinking about doing that. Hopefully tomorrow or Monday I'll get around to figuring out how that works.
Re: Setting up Eclipse for Wii Development June 07, 2009 08:34PM | Registered: 16 years ago Posts: 152 |
Yeah, that's what I intended I guess. It's not really going to be noticeably faster, just I feel that it's a more "correct" way to do things, since dependencies are the essence of makefiles more or less.Quote
PhoenixTank
Scratch that...run: $(BUILD) wiiload $(TARGET).dolSeems to work correctly. Is that what you intended?
Oh OK, that makes sense. Maybe just put in a note about the fact that the actual command comes in later, since I've never used gdb remotely so I had no idea what to put in there.Quote
PhoenixTank
The idea was to have the generic setup, then split off between USB Gecko & Wifi Debugging. It could probably use a bit of reorganising, though. I'll see what I can do.
Oh hey! Actually, that does sound handy. I'll probably check it out in eclipse then. You might want to add a note about how to apply the patch, since I've never actually used a patch file before and my first instinct was to drop to the command line and figure that out, which might have been a more time consuming endeavor. Luckily I happened to right click on the patch file and saw the option to apply the patch.Quote
PhoenixTank
TortoiseSVN isn't bad, and I use it myself when I just want to check out a copy of something for a snoop around. I personally kinda like having the libogc source on hand quickly, from Eclipse, though. I just added Subclipse as a minor info titbit, really.
Oh and applying a patch is as easy as right clicking the project and heading to Team > Apply Patch. You can do that with any Eclipse project, I think.
Hmm, well, we can probably help each other if he posts here about his progress. I've actually been having trouble just finding the right docs, although I keep seeing them mentioned in mailing list posts. But I should be able to figure it out eventually, and I'm on summer break so I have plenty of time to do so. And thanks for making the guide, I would have had no idea to look up Zylin. I don't actually use eclipse for C much, mostly for Java, so I haven't really messed with the CDT side of things too much.Quote
PhoenixTank
Thanks for your help! I think Arasium was considering creating a project wizard plugin, but all I know is that the docs are a little outdated and I haven't touched Java yet =)
Re: Setting up Eclipse for Wii Development June 08, 2009 10:00AM | Registered: 15 years ago Posts: 161 |
Re: Setting up Eclipse for Wii Development June 12, 2009 09:22PM | Registered: 16 years ago Posts: 152 |
Re: Setting up Eclipse for Wii Development June 14, 2009 06:38AM | Registered: 15 years ago Posts: 303 |
Re: Setting up Eclipse for Wii Development June 16, 2009 11:09PM | Registered: 16 years ago Posts: 152 |
Re: Setting up Eclipse for Wii Development June 18, 2009 12:40PM | Registered: 15 years ago Posts: 161 |
Re: Setting up Eclipse for Wii Development June 18, 2009 07:56PM | Registered: 16 years ago Posts: 152 |
Re: Setting up Eclipse for Wii Development June 18, 2009 11:28PM | Registered: 15 years ago Posts: 161 |
Re: Setting up Eclipse for Wii Development June 19, 2009 11:15AM | Registered: 15 years ago Posts: 303 |
Re: Setting up Eclipse for Wii Development June 19, 2009 08:26PM | Registered: 16 years ago Posts: 152 |
Re: Setting up Eclipse for Wii Development June 20, 2009 12:05AM | Registered: 15 years ago Posts: 303 |
Re: Setting up Eclipse for Wii Development June 21, 2009 04:16PM | Registered: 15 years ago Posts: 161 |
Re: Setting up Eclipse for Wii Development June 21, 2009 04:32PM | Registered: 15 years ago Posts: 47 |
Re: Setting up Eclipse for Wii Development June 22, 2009 01:22AM | Registered: 15 years ago Posts: 303 |
Ah-ha! I spent far too long looking for something like that. Nice to know it is there, but I still actually prefer the Zylin plug-in. Why on Earth is it under "Local Application"? :| That baffles me.Quote
arasium
Ok, so now (in eclipse 3.4) there is a remote debugger with the CDT. I haven't install Zylin and it works (except when i want to detach the debugger).
I can configure it in "local application" debug. There is a drop down list to choose the debug method. We can use the Gdbserver one nd it works.
Re: Setting up Eclipse for Wii Development June 22, 2009 11:10AM | Registered: 15 years ago Posts: 161 |
Quote
PhoenixTank
Ah-ha! I spent far too long looking for something like that. Nice to know it is there, but I still actually prefer the Zylin plug-in. Why on Earth is it under "Local Application"? :| That baffles me.