Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » Using Eclipse: Any advice?
Using Eclipse: Any advice?[message #225534] Sat, 04 July 2009 21:18 Go to next message
gmonk

 
Messages:670
Registered:April 2002
Location: Newfoundland, Canada
As stated in the topic: I've installed Eclipse and MinGW (successfully(?)) and I'm about to (very hopefully) embark on setting it up for cross-platform development.

Do you have any advice that could make the process less painful? My past experience with software modification/development has only been with *nix system software. This seems to be a more complex beast and any advice you can give, no matter how insignificant it might seem, will be helpful.

I don't expect a step-by-step guide here, just the benefit of any insights you have gained during your own experience with the code.

Cheers!
Monk

Report message to a moderator

First Sergeant
Re: Using Eclipse: Any advice?[message #225537] Sat, 04 July 2009 21:45 Go to previous messageGo to next message
Shanga is currently offline Shanga

 
Messages:3480
Registered:January 2000
Location: Danubia

Got Eclipse running too, very interesting, wouldn't mind a guide on setting it up for compiling.

Report message to a moderator

Captain
Re: Using Eclipse: Any advice?[message #225539] Sat, 04 July 2009 21:59 Go to previous messageGo to next message
gmonk

 
Messages:670
Registered:April 2002
Location: Newfoundland, Canada
For reference only (possibly bad, uninformed advice):

Install procedures followed:
  • Download and install MinGW (automatic installation via installer to C:\mingw)
  • Download Eclipse 3.5 base and unzip/decompress to C:\Eclipse.
  • Run Eclipse
  • Go to {menubar}Help:Install New Software
  • Enter "http://download.eclipse.org/tools/cdt/releases/galileo" in the url field.
  • Select desired components from the CDT list, at least the base item at the top of the list and include the debugging tools as well.

Report message to a moderator

First Sergeant
Re: Using Eclipse: Any advice?[message #225541] Sat, 04 July 2009 22:26 Go to previous messageGo to next message
Roadkill is currently offline Roadkill

 
Messages:155
Registered:May 2001
Location: Lords of the Bytes
I was about to ask if someone had such a "guide". I got Eclipse running, but apart from browsing through some code i hadn't looked further into it Smile

Report message to a moderator

Staff Sergeant
Re: Using Eclipse: Any advice?[message #225566] Sat, 04 July 2009 23:57 Go to previous messageGo to next message
Tron

 
Messages:225
Registered:August 2007
Location: Germany
Monk
Do you have any advice that could make the process less painful? My past experience with software modification/development has only been with *nix system software. This seems to be a more complex beast and any advice you can give, no matter how insignificant it might seem, will be helpful.

Painful? JA2-Stracciatella - apart from a compiler - only has a single dependency (SDL). It could hardly be simpler. What exactly is the problem?

Report message to a moderator

Sergeant 1st Class
Re: Using Eclipse: Any advice?[message #225569] Sun, 05 July 2009 00:15 Go to previous messageGo to next message
Shanga is currently offline Shanga

 
Messages:3480
Registered:January 2000
Location: Danubia
Well, my installation detected MinGW, yet it fails to compile... guess I should read the manual, eh?

Report message to a moderator

Captain
Re: Using Eclipse: Any advice?[message #228303] Tue, 21 July 2009 16:48 Go to previous messageGo to next message
Sgt. Papiercorpse is currently offline Sgt. Papiercorpse

 
Messages:26
Registered:July 2009
Location: Germany
Compiling under Eclipse with MinGW and starting the game works for me.

Tried to use GDB for debugging, but I guess I have to tell the make process to create extra debug information, because all I get is "No source file named SOURCE_WITH_BREAKPOINTS.cc in loaded symbols". How do I make the makefile recognize the macro "ifdef _DEBUG" (if that's the solution)?

Report message to a moderator

Private 1st Class
Re: Using Eclipse: Any advice?[message #228400] Tue, 21 July 2009 22:37 Go to previous messageGo to next message
gmonk

 
Messages:670
Registered:April 2002
Location: Newfoundland, Canada
I didn't actually have any trouble with installing Eclipse or getting a working compile. The advice request was for things to consider when using Eclipse (or any IDE, I suppose) for cross-platform work. I'm used to just using a text editor and makefiles.

In order to get Eclipse working for a standard Makefile project ... well, I guess I should finish the HOWTO I was writing for it. Wink (75% finished but shiny buttons and plugins kept distracting me...)

Report message to a moderator

First Sergeant
Re: Using Eclipse: Any advice?[message #228407] Tue, 21 July 2009 22:55 Go to previous messageGo to next message
Sgt. Papiercorpse is currently offline Sgt. Papiercorpse

 
Messages:26
Registered:July 2009
Location: Germany
Getting that thing compiled is no problem. There are lots of resources here that give enough hints. I'm after getting the debug working.
I'd be nice to know if someone already debugs on a Win32 system.


Btw: Text editor is nice, but I'm new to the code, so I'm jumping from method to method to declaration and back and forth. I'd be doomed without the functionality of an IDE.

Report message to a moderator

Private 1st Class
Re: Using Eclipse: Any advice?[message #228414] Tue, 21 July 2009 23:13 Go to previous messageGo to next message
Tron

 
Messages:225
Registered:August 2007
Location: Germany
You can add arbitrary flags and variables to config.default. There should be a line (copied from config.template)
#CFLAGS += -g

Just remove the comment marker (#) and rebuild all.

Report message to a moderator

Sergeant 1st Class
Re: Using Eclipse: Any advice?[message #228433] Wed, 22 July 2009 00:08 Go to previous message
Sgt. Papiercorpse is currently offline Sgt. Papiercorpse

 
Messages:26
Registered:July 2009
Location: Germany
Thanks Tron, that helped Smile

I found out that incase your debug stops a hundred times on startup with some "ntdll!ldrAccessResource()" messages, it solves by deactivating "Load shared library symbols automatically" in Eclipse under "Debugger" -> "Shared Libraries" of your debug configuration.

Still Eclipse has problems connecting to the sources, dont know yet how to tell him where to look. Never been good in going through (dis)ASM code Razz

Report message to a moderator

Private 1st Class
Previous Topic: Question about current svn version
Next Topic: Data externalisation
Goto Forum:
  


Current Time: Tue Jan 14 20:31:52 GMT+2 2025

Total time taken to generate the page: 0.01221 seconds