Re: [Freeciv-Dev] debugging with Eclipse on Windows

2009-03-08 Thread Christian Prochaska
On Thu, Jan 1, 2009 at 5:47 PM, Brandon Van Every bvanev...@gmail.com wrote:
 On Thu, Jan 1, 2009 at 11:05 AM, Brandon Van Every bvanev...@gmail.com 
 wrote:

 I tried MSYS again, starting Eclipse from inside MSYS.  The Eclipse
 Autotools plugin simply doesn't work properly with it.  It calls out
 to sh using ordinary Windows pathnames.  The \ are eliminated as the
 arguments are passed, resulting in errors.  Bottom line is the Eclipse
 Autotools plugin is not ready for prime time with MSYS.  I'm going to
 try building Freeciv outside of Eclipse, then just debugging the final
 installed civclient.exe.  At this point I'm really only trying to
 trace Freeciv to see how it works.

 Running config.status

 sh C:\Users\bvanevery\workspace\freemsys\build\config.status
 C:\Users\bvanevery\workspace\freemsys\build\config.status: line 890:
 cd: C:Usersbvaneveryworkspacefreemsys: No such file or directory
 C:\Users\bvanevery\workspace\freemsys\build\config.status: line 891:
 cd: C:Usersbvaneveryworkspacefreemsys: No such file or directory
 config.status: creating Makefile
 config.status: error: cannot find input file: Makefile.in

 Configuration failed with error



I investigated this problem and created a ticket with possible patches
for the Autotools plugin at the eclipse.org bug tracker:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=267538

An easy way to work around this problem (without patching the
Autotools plugin) with MSYS 1.0.11 is to define

--srcdir=..

in the Project Properties (Properties-C/C++ Build-Settings-Tool
Settings-configure-Features and
packages-User specified configuration options)

Or you could use my MinGW toolchain from january this year:

ftp://ftp.freeciv.org/freeciv/packages/windows/gwuwin32/gnuwin32-2009-01-01.7z

It still contains MSYS 1.0.10 which comes with a dirname.exe that is
broken, but that for this reason also prevents the problems with the
colons and the backslashes when trying to build Freeciv. With a
separate build directory inside the source directory the PWD variable
needs to be undefined in the Project Properties. When building
directly in the source directory this step is not necessary.

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] debugging with Eclipse on Windows

2009-01-02 Thread Brandon Van Every
On Fri, Jan 2, 2009 at 12:06 AM, Brandon Van Every bvanev...@gmail.com wrote:

 SPECLIST has still got me stuck.

Blah VC9 C requires __inline

Cheers,
Brandon Van Every

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] debugging with Eclipse on Windows

2009-01-01 Thread Brandon Van Every
Anyone knowledgeable on how to debug Freeciv using Eclipse?  I'm using
Cygwin on Vista.  I had to dump MinGW because MSYS Make 3.81 is
defective for Windows paths with colons in them, i.e. C:\blah.  It
makes Eclipse and other JDK toolchains barf.  Cygwin Make 3.81 is also
defective, but I was able to find a patched version at
http://www.cmake.org/files/cygwin/ .  I have been able to build
Freeciv inside Eclipse using the Autotools plugin.  I installed the
end result, and it does run under an X terminal outside of Eclipse.
Now I'm trying to figure out how to debug the darned thing.  I
installed civclient.exe into the Cygwin file system and have
successfully imported it into an Eclipse debug configuration.
However, all I can achieve at this point is an app that doesn't know
where an X terminal is.  Perhaps I am making progress and it's only a
matter of time before I bang this out, but I thought I'd ask if anyone
here knows the ropes.  Client, Server, X terminal, Cygwin Unix layer,
all quite a mess.


Cheers,
Brandon Van Every

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] debugging with Eclipse on Windows

2009-01-01 Thread Brandon Van Every
On Thu, Jan 1, 2009 at 10:29 AM, Brandon Van Every bvanev...@gmail.com wrote:
 However, all I can achieve at this point is an app that doesn't know
 where an X terminal is.  Perhaps I am making progress and it's only a
 matter of time before I bang this out, but I thought I'd ask if anyone
 here knows the ropes.  Client, Server, X terminal, Cygwin Unix layer,
 all quite a mess.

I got farther by starting a Cygwin shell, starting X within the Cygwin
shell, then starting Eclipse within X.  Now I've got a civclient that
can't seem to conjure a civserver.  More pathnames perhaps...

Cheers,
Brandon Van Every

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] debugging with Eclipse on Windows

2009-01-01 Thread Brandon Van Every
On Thu, Jan 1, 2009 at 11:05 AM, Brandon Van Every bvanev...@gmail.com wrote:

 I got farther by starting a Cygwin shell, starting X within the Cygwin
 shell, then starting Eclipse within X.  Now I've got a civclient that
 can't seem to conjure a civserver.  More pathnames perhaps...

I tried MSYS again, starting Eclipse from inside MSYS.  The Eclipse
Autotools plugin simply doesn't work properly with it.  It calls out
to sh using ordinary Windows pathnames.  The \ are eliminated as the
arguments are passed, resulting in errors.  Bottom line is the Eclipse
Autotools plugin is not ready for prime time with MSYS.  I'm going to
try building Freeciv outside of Eclipse, then just debugging the final
installed civclient.exe.  At this point I'm really only trying to
trace Freeciv to see how it works.

Running config.status

sh C:\Users\bvanevery\workspace\freemsys\build\config.status
C:\Users\bvanevery\workspace\freemsys\build\config.status: line 890:
cd: C:Usersbvaneveryworkspacefreemsys: No such file or directory
C:\Users\bvanevery\workspace\freemsys\build\config.status: line 891:
cd: C:Usersbvaneveryworkspacefreemsys: No such file or directory
config.status: creating Makefile
config.status: error: cannot find input file: Makefile.in

Configuration failed with error


Cheers,
Brandon Van Every

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] debugging with Eclipse on Windows

2009-01-01 Thread Madeline Book
On 1/1/09, Brandon Van Every bvanev...@gmail.com wrote:
 This is a tiring Hell that I don't want to be a part of anymore.  I
 guess nobody uses IDEs to debug Freeciv on Windows.  Doesn't have to
 be Eclipse, just somebody tell me something that works?  Meanwhile,
 I'm going to see if I can make a Visual Studio build out of this
 thing.

You could try gdb for debugging. It is true that freeciv development
is more easily done on a gnu/linux system... unfortunately I would
not know the best setup on windows.


---
知るわけないだろう。

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] debugging with Eclipse on Windows

2009-01-01 Thread Christian Prochaska
Try my Mingw toolchain from
ftp://ftp.freeciv.org/freeciv/packages/windows/gwuwin32/

It works fine for me with Eclipse and CDT. I didn't know about the
Autotools plugin until now, so I used to run autogen.sh and configure
manually from the MSYS bash shell when needed. Will give the the
Autotools plugin a try now.

___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev