UFO:Alien Invasion

Archive => Bugs prior to release 2.3 => Topic started by: MCR on May 02, 2010, 04:22:06 pm

Title: Can someone please try to compile the latest trunk version under Windows ?
Post by: MCR on May 02, 2010, 04:22:06 pm
I am having problems to compile under Windows using MinGW & would like to know if I am the only one ?!

Everything works fine until:
Compiling: ..\..\src\client\renderer\r_light.c
C:\UfoAIBuildEnvironment_NEW\MinGW\ufoai\src\client\renderer\r_light.c:167: error: 'POINT' redeclared as different kind of symbol
C:/UfoAIBuildEnvironment_NEW/MinGW/include/windef.h:324: error: previous declaration of 'POINT' was here
Process terminated with status 1 (1 minutes, 4 seconds)
2 errors, 0 warnings
Endtime:   2010.05.02 16:02:37 1
Error 16
C::B returned an error during C:\UfoAIBuildEnvironment_NEW\MinGW\ufoai\build\projects\ufo.mod.cbp

Please Help.
Title: Re: Can someone please try to compile the latest trunk version under Windows ?
Post by: balasar on May 02, 2010, 05:09:14 pm
I have a similar problem. I use Muton's utility. :(
r29682

...
E:\Games\ufoai\svn1\src\client\renderer\r_light.c:167: error: 'POINT' redeclared as different kind of symbol
e:\games\ufoai\develop\ufoaiwin32buildenv\mingw\bin\../lib/gcc/mingw32/4.4.1/../../../../include/windef.h:324: note: previous declaration of 'POINT' was here
Process terminated with status 1 (1 minutes, 27 seconds)
1 errors, 0 warnings
Endtime:   2010.05.02 18:00:48 1
Error 16
C::B returned an error during E:\Games\ufoai\svn1\build\projects\ufo.mod.cbp
Title: Re: Can someone please try to compile the latest trunk version under Windows ?
Post by: MCR on May 02, 2010, 05:20:31 pm
Thanks, balasar.

But this has nothing to do with Muton's Tool I suppose, but with differences between Windows & Linux.
I think the POINT in light.c conflicts with the typedef in windef.h & now UFO:AI is not Windows MinGW compatible anymore  :P
I will write open a bug tracker item on sourceforge & assign this to arisian, I am sure this is a minor problem which will be repaired soon.

Thanks again for helping me find out that I am not alone with this bug ;)
Title: Re: Can someone please try to compile the latest trunk version under Windows ?
Post by: Edi on May 02, 2010, 05:21:32 pm
Yep, that's a conflict in the source code. There's nothing that can be done without altering the source. Somebody should open a priority 1 tracker item on this.
Title: Re: Can someone please try to compile the latest trunk version under Windows ?
Post by: Edi on May 02, 2010, 05:48:51 pm
Tracker item located here (https://sourceforge.net/tracker/?func=detail&aid=2995503&group_id=157793&atid=805242)
Title: Re: Can someone please try to compile the latest trunk version under Windows ?
Post by: BTAxis on May 02, 2010, 05:57:45 pm
Fixed in r29684.

Really, you don't have to overreact. A "doesn't compile" issue tends to get noticed (and fixed) pretty quickly.