-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mingw64 support #179
Comments
Wow! Looks like you done some impressive work. We have made progress for cygwin, especially for the Android build. |
Don't think cygwin solves any of the issues. It would only help if minko wasn't windows compatible. Though it's more than likely there's something I could use from the cygwin configurations. premake is kinda archaic. |
What's the issue with windows compatibility? On Thu, Sep 11, 2014 at 8:13 PM, mindigmarton [email protected]
Jean-Marc Le Roux Founder and CEO of Aerys (http://aerys.in) Blog: http://blogs.aerys.in/jeanmarc-leroux |
It's just that the mingw headers are different. For example M_PI and some others are protected by ifdefs which are not present on linux and are defined as part of the default configuration. |
Ok, thanks for the update. We'll definitely update Minko with the latest LuaGlue as we need some of its features anyway. I hope this is the only blocking issue here. Side note: Cygwin does fix a few things for us as it runs in Bash (typically). We encountered some issues with |
LuaGlue just needed a specialization for stack... Compiles fine now. Only using cmd for mingw to invoke premake. Msys takes care of the rest. Cygwin will work just as well too. Pushed a couple of other commits, it fully builds now except for leap, oculus, html-overlay and angle. Edit: replaced the batch files with shell scripts. cmd is gone when using mingw / msys : ) Edit2: Looks like the clone example is broken. Does not run on windows, linux or mingw. mingw64 does not display the mesh in tutorial-06 and the assimp example. Mingw32 works fine. |
A little bit of update: The only blocking issue for me is the fact that assimp models are not rendered on linux mingw builds. No idea where to start with debugging... There are quite a number of commits on my fork changing a lot of stuff. I had to patch some third party dependencies too (cef, assimp), I'm not sure how comfortable you guys are with that. They should probably extracted into patches so updating isn't an issue. Merging probably won't be so simple, hopefully the coding style is fine (I tried to be consistent with the existing code) |
…equest-from-the-http-worker' into 'master' Resolve "A crash may be caused by libcurl when executing a request from the HTTP worker" Closes #179 See merge request aerys/smartshape-engine!176 (cherry picked from commit f069709) af82e75 Set the libcurl option CURLOPT_NOSIGNAL on every request made to fix #179.
…equest-from-the-http-worker' into 'master' Resolve "A crash may be caused by libcurl when executing a request from the HTTP worker" Closes aerys#179 See merge request aerys/smartshape-engine!176
I'm working on mingw support, here's what I have so far: 5f73f53
So far it works well, but there are a couple of weird oddities, which could use some input:
we could use gnu++11 or define M_PI if it does not exist. For now I've defined M_PI in Common.h, but poly2tri uses M_PI too...
I tested with mingw64 gcc 4.8.3. Compiles and runs tutorial-01 on windows and linux cross compiling + wine.
4.9.1 crashes on Pass.cpp. I'm suspecting unordered_map...
Haven't had the time to make a full build yet to test the other modules.
Visual studio and the linux project generation still works fine so hopefully I haven't broken anything.
32-bit clang works too, but 64 bit clang has some issues (segfaults with unordered_map, other linking problems, depending on which gcc you build with...) It's kind of experimental still, so I'll probably leave it alone.
Some mingw64 distros still don't have winpthreads and have other issues, I used the versions from this for testing:
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer
Needs msys to work on windows so its compatible with linux cross-compiling.
The text was updated successfully, but these errors were encountered: