Page 1 of 1

Compiling on MAC OSX

Posted: Fri 13.02.2009, 21:25
by Flambard
To compile 1.1.X source on Mac, apply following patch (made by hao):
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"
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.

Re: Logging in With Macintosh version of Mang*

Posted: Sat 14.02.2009, 12:46
by Gael
I will work on it tomorrow morning (~GMT), any help available will be greatly appreciated.

When I did patch < *.diff, it didn't work correctly, I have yet to look at it in detail.

Re: Logging in With Macintosh version of Mang*

Posted: Sat 14.02.2009, 15:33
by Flambard
That might be because the of mismatch between relative directories in the patch and the path you're calling patch from. If that's the case you should use -p switch or move it to appropriate location.

Re: Logging in With Macintosh version of Mang*

Posted: Sat 14.02.2009, 20:42
by Gael
So problem solved for me, I sent a copy of my version to Warrior.