chrismessina / micropolis

Automatically exported from code.google.com/p/micropolis
0 stars 0 forks source link

Mac OS/X Compatibility for MicropolisCore #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Make MicropolisCore compile and run on MacOS/X, and fix source and
scripts to work on all platforms without modification. 

Original issue reported on code.google.com by simhac...@gmail.com on 7 Feb 2008 at 1:39

GoogleCodeExporter commented 9 years ago

Original comment by simhac...@gmail.com on 7 Feb 2008 at 1:40

GoogleCodeExporter commented 9 years ago
Compiling and running on OSX is actually trivial. Simply apply the attached 
patch to
Micropolis/micropolis.h, CellEngine/cellengine.h, and TileEngine/tileengine.h. 
If
SWIG is out of date you may need to manually fix
CellEngine/python/cellengine_wrap.cpp (around line 2950 change 'int len' to
'Py_ssize_t len'), but that's not a Mac bug. But you don't even need 
CellEngine, so
feel free to drop that from the makefile.

Compiling and installing GTK, though, that's a big stupid problem. And even if 
you
get everything to compile, something with Cairo or GTK goes wrong and you'll 
just get
a grey window. Or at least in my experience, anyway. Pie menu works, though.

It might be a good idea to redo TileEngine in something more portable, like 
pygame.

Original comment by dde...@gmail.com on 16 Feb 2008 at 9:37

Attachments:

GoogleCodeExporter commented 9 years ago
Added support for Mac OS/X. 

Original comment by simhac...@gmail.com on 19 Feb 2008 at 1:08