Windows + MinGW compilation configure error

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
tuant20
Trained
Trained
Posts: 51
Joined: 08 Jan 2007, 09:03

Windows + MinGW compilation configure error

Post by tuant20 »

Devs please take a look:
when compile the latest SVN source (rev 650) using MinGW on Windows, it stops with the error:

Code: Select all

mingw32-make -f Makefile.raw -C win32
../makerules/configure.mk:74: Extraneous text after `else' directive
../makerules/configure.mk:83: *** only one `else' per conditional.  Stop.
with some adjust as the attached patch, it's OK. please update if there's no conflict
Attachments

[The extension has been deactivated and can no longer be displayed.]

User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Windows + MinGW compilation configure error

Post by DevUrandom »

When I tried something similar (else and ifeq on one line, but an extra ifeq), I got:

Code: Select all

make[1]: Entering directory `/home/sevendays/Warzone/Gna/trunk/win32'
../makerules/configure.mk:91: *** extraneous `endif'.  Stop.
make[1]: Leaving directory `/home/sevendays/Warzone/Gna/trunk/win32'
make: *** [win32] Error 2
But apparently it can be fixed by wrapping the ifeq on the next line, as your patch suggested.

What version of make do you have?

Code: Select all

$ make --version
GNU Make 3.81
tuant20
Trained
Trained
Posts: 51
Joined: 08 Jan 2007, 09:03

Re: Windows + MinGW compilation configure error

Post by tuant20 »

I have mingw32-make only:

Code: Select all

E:\Documents and Settings\Administrator>mingw32-make --version
GNU Make 3.80
it seems we have to set separate environment for each make utility. This can be done base on the parameter $(PLATFORM) in file config.mk
Post Reply