Building Makefile-NML projects under Windows (7 in my case)

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
siu238X
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 13 Sep 2004 18:54
Location: Hong Kong, China

Building Makefile-NML projects under Windows (7 in my case)

Post by siu238X »

Hi all,

I am trying to test out translations on NML based NewGRF's and compile them using MinGW.

However, I found a file called (NewGRF_development_guide_for_Windows_users_0.9.0.pdf) under the URL http://dev.openttdcoop.org/projects/home/files, which instructed Windows users to install a virtual Fedora Linux to have a proper building environment.

Is there a method not as bulky as that?
Image
Image
Trond
Tycoon
Tycoon
Posts: 973
Joined: 25 Jan 2008 07:32
Location: Gamle Ørnenuten

Re: Building Makefile-NML projects under Windows (7 in my ca

Post by Trond »

I just use the windows binary from here to build my grf files from nml...

Or maybe I misunderstood your question?
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Building Makefile-NML projects under Windows (7 in my ca

Post by FooBar »

Trond wrote:Or maybe I misunderstood your question?
I think you did. For simple projects the NML binary is sufficient. The bigger projects almost all use a makefile to precompile the NML file from a lot of separate files. The system used for this originates from Linux and is a bit of a b* to get to work on Windows properly.

The virtual linux is indeed bulky, but by far the easiest solution. If you don't want that, the alternatives are either MinGW/MSYS or Cygwin. I've tried both; it works, but my expecience with FIRS was that it needed 5 minutes rather than 30 seconds to build.
User avatar
mart3p
Tycoon
Tycoon
Posts: 1030
Joined: 31 Oct 2005 21:00
Location: UK

Re: Building Makefile-NML projects under Windows (7 in my ca

Post by mart3p »

When I was looking at continuing ISR development, I also looked at Foobar's "Guide to setting up a openttdcoop DevZone development environment on Windows". Like you, I thought installing virtual Fedora Linux sounded a bit bulky.

I went for the MinGW/MSYS option. Despite a few initial difficulties this is now working nicely. Planetmaker (following my suggestions) has recently made a number of improvements to the DevZone Make-NML system that improve windows compatibility. DevZone projects that use this recent makefile should compile without problems on Windows/MinGW.

As Foobar says, it is a bit slow but I don’t find it a problem. ISR compiles in 45 seconds on my system.

If you decide to try MinGW/MSYS and encounter problems I would be happy to help. :wink:

And off topic: thanks for your work on the ISR Chinese translations. :D
Image
User avatar
siu238X
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 13 Sep 2004 18:54
Location: Hong Kong, China

Re: Building Makefile-NML projects under Windows (7 in my ca

Post by siu238X »

Thanks for all your help.

My current problem is that I couldn't compile Python on MinGW. Fortunately I have found some comprehensive guide. I will try again when I get home tonight.

To mart3p: I LOVE ISR :D
Image
Image
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Building Makefile-NML projects under Windows (7 in my ca

Post by Eddi »

why would you need to compile python? just use the regular windows python, and make sure it's in the path.
User avatar
siu238X
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 13 Sep 2004 18:54
Location: Hong Kong, China

Re: Building Makefile-NML projects under Windows (7 in my ca

Post by siu238X »

Eddi wrote:why would you need to compile python? just use the regular windows python, and make sure it's in the path.
Do you mean that, with suitable Windows binary of python and nml, I don't have to compile any src tarballs on MinGW, and I can simply open the repository and run "make"?
Image
Image
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Building Makefile-NML projects under Windows (7 in my ca

Post by Eddi »

yes, although i have not actually tested this.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google Adsense [Bot] and 90 guests