mingw-w64: http://mingw-w64.sourceforge.net/
I am using sezero's builds: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/.
Thew patches are attached.
Compiling under mingw-w64
Moderator: Staff
Compiling under mingw-w64
- Attachments
-
redefines.txt
- PATH_MAX, strcasecmp redefine warning
- (933 Bytes) Downloaded 132 times
-
context_all.txt
- CONTEXT_ALL defined in winnt.h
- (9.45 KiB) Downloaded 144 times
Last edited by nan on Sat May 28, 2011 3:31 pm, edited 1 time in total.
Re: Compiling under mingw-w64
Did the forum not allow your attachment because it was your first post?

Re: Compiling under mingw-w64
Oops, .diff and .patch are not allowed as attachments. I've updated the original post.
Re: Compiling under mingw-w64
By the way, with some minimal changes I've been able to compile it with mingw/clang. The game will start but abort on some lua_bind issue. Haven't looked into it yet.
Re: Compiling under mingw-w64
Great! One question, what is the reason for renaming CONTEXT_* to MAP_CONTEXT_*? Is there a w64-related reason for this? The other patch looks fine, and this doesn't seem to break anything on the Linux side (haven't tried on Win32 yet).
Also, can you provide us with the patches for mingw/clang? Even if it's not quite ready yet, I'd like to see what sort of modifications would be required for clang compatibility.
Also, can you provide us with the patches for mingw/clang? Even if it's not quite ready yet, I'd like to see what sort of modifications would be required for clang compatibility.
Re: Compiling under mingw-w64
CONTEXT_ALL is already defined in winnt.h which will be included by windows.h I guess, didn't bother to look further. It also defines CONTEXT_FULL and maybe a couple of other contexts. Used clang to find the bug, gcc wasn't a great help here.
By the way, both compilers generate a boatload of 'const' type qualifier on return type has no effect warnings. Nothing critical but somewhat annoying.
Clang patch is attached.
By the way, both compilers generate a boatload of 'const' type qualifier on return type has no effect warnings. Nothing critical but somewhat annoying.
Clang patch is attached.
- Attachments
-
clang.txt
- Remove forward declaration to make it compilable with clang.
- (1.13 KiB) Downloaded 137 times
Re: Compiling under mingw-w64
For the clang patch, I'm using nan's solution for the global.h file. For the Luabind header, I grabbed a fix from the official LuaBind repository, so we're a bit more in line with the official version there.
Thanks again for these patches, nan. This works for compiling on the Linux version of clang as well. Committing the clang fix to SVN right now, in fact.
Thanks again for these patches, nan. This works for compiling on the Linux version of clang as well. Committing the clang fix to SVN right now, in fact.
Who is online
Users browsing this forum: No registered users and 3 guests