Mindwerks / worldengine

World generator using simulation of plates, rain shadow, erosion, etc.
MIT License
992 stars 127 forks source link

Cross compile for windows #39

Closed ftomassetti closed 9 years ago

ftomassetti commented 9 years ago

Take a look at: http://gwyddion.net/documentation/user-guide-en/installation-cross-mingw32.html

ftomassetti commented 9 years ago

Maybe we can create a docker image with wine using https://github.com/ogrisel/python-winbuilder

ftomassetti commented 9 years ago

Also this one is interesting: http://cyrille.rossant.net/create-a-standalone-windows-installer-for-your-python-application/

ftomassetti commented 9 years ago

This seems very interesting (using aws for free) http://cowboyprogrammer.org/building-python-wheels-for-windows/

psi29a commented 9 years ago

Using the information above, we can use http://www.appveyor.com/

ftomassetti commented 9 years ago

how, just noticed that appveyor is free for OSS. I thought it wasn't

ftomassetti commented 9 years ago

guess what... there are problems compiling pyplatec (which uses C++ '11). To be compatible with python we have to use certain versions of the compiler and I am afraid they do not support C++ '11 so we will have to remove the C++ '11 features (which are very limited anyway), so let's pause that until we fix pyplatec...

psi29a commented 9 years ago

yeah... msvc isn't c++11 compliant. we'll likely have to use mingw to either compile natively on windows or on linux as a cross compile... which is actually a good thing. ;)

http://www.mingw.org/ http://sebsauvage.net/python/mingw.html https://bitbucket.org/puqing/python-mingw

The other option is to downgrade what bits in pyplatec that are c++11 to more portable.

ftomassetti commented 9 years ago

Ok, we have python wheels for PyPlatec, now we could run bdist_msi. We can also take a look at: http://pynsist.readthedocs.org/en/latest/ (see this for a script https://github.com/acutesoftware/dev_setup/blob/master/make_inst.py)

http://nuitka.net/

https://freepythontips.wordpress.com/2014/03/03/using-py2exe-the-right-way/

https://sxbo672158.wordpress.com/2012/01/21/py2exe-pyinstaller-build-executable-file-for-your-python-script/

psi29a commented 9 years ago

Yay!

ftomassetti commented 9 years ago

ok, we have our AppVeyor working for us, should be close this one?

psi29a commented 9 years ago

Double yay! and yes.

ftomassetti commented 9 years ago

Closing then :)