Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] Re: (PR#9433) Patch: MSVC compile fixes
Home

[Freeciv-Dev] Re: (PR#9433) Patch: MSVC compile fixes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9433) Patch: MSVC compile fixes
From: Frank Richter <resqu@xxxxxx>
Date: Tue, 20 Jul 2004 19:06:33 +0200

On 20.07.2004 16:37, c4v3m4n@xxxxxxxxxxxx wrote:

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9433 >

I haven't been able to give it a shot yet, but I plan on attempting to compile Freeciv using Mingw/Gcc on Windows using Eclipse to handle both the compiling and CVS management of the Freeciv CVS tree. As soon as I do get a chance to try this out I'll let everyone know how it goes. I've successfully connected to the Freeciv CVS server using Eclipse 3.0 with the CDT plugin, so hopefully it won't be a monumental challenge to compile it through Eclipse as well.

Well, I just did so :)

It's actually quite easy. I used Eclipse 3.0 + CDT 2.0 with MinGW, MSYS & msysDTK, although the instructions probably also apply to other platforms.

- First, on Win32, disable "Convert text files to platform line endings" in Eclipse's CVS options. This is needed to later run the autotools (and has the nice side effect that the graphic files will work, too, as they aren't binary files in CVS and get messed up by the LF->CRLF conversion). - Create a new CVS checkout project. Enter all those freeciv CVS credentials.
- I opted to "Check out as a project configured the New Project Wizard".
- Then I created a "Standard C project" (ie didn't let Eclipse manage the makefiles).

This sets up an Eclipse project; however, you can't compile it yet. To do so, I used MSYS to run autogen.sh (which subsequently also invokes configure). Back in Eclipse, I chose "Project -> Build Make Target", added "all" to the list and built it. Then, well, stuff built. Seems to work well.

-f.r.



[Prev in Thread] Current Thread [Next in Thread]