Compiling on MAC OSX
Posted: Fri 13.02.2009, 21:25
To compile 1.1.X source on Mac, apply following patch (made by hao):
Not needed for 1.2/trunk.
EDIT: Apply this patch if you're using 1.1.1 http://mangband.org/developer/changeset ... f&new=1043
This will be fixed in later versions.
Not needed for 1.2/trunk.
Code: Select all
--- configure 2008-09-16 22:07:48.000000000 -0400
+++ configure.new 2008-09-16 22:04:17.000000000 -0400
@@ -2621,6 +2621,12 @@
then
enabled_gcu="yes"
fi
+# HACK: Autodetect OS X based on uname, overrides the failed X11 autodetect, and# manually sets the X11 lib directory
+if test `uname -s` = Darwin
+then
+ enabled_x11="yes"
+ LIBS="$LIBS -L/usr/X11R6/lib"
+fi
if test "x$have_sdl" = xyes && test "x$with_sdl" = xyes
then
enabled_sdl="yes"
This will be fixed in later versions.