All your MAngband related technical questions answered. Problems compiling or running the game/server? No problem! Ask here.
-
Flambard
- King Vampire
- Posts: 259
- Joined: Wed 20.06.2007, 10:49
Post
by Flambard » 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.
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.
-
Gael
- Pitiful-Looking Beggar
- Posts: 2
- Joined: Tue 04.11.2008, 08:42
Post
by Gael » Sat 14.02.2009, 12:46
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.
-
Flambard
- King Vampire
- Posts: 259
- Joined: Wed 20.06.2007, 10:49
Post
by Flambard » Sat 14.02.2009, 15:33
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.
-
Gael
- Pitiful-Looking Beggar
- Posts: 2
- Joined: Tue 04.11.2008, 08:42
Post
by Gael » Sat 14.02.2009, 20:42
So problem solved for me, I sent a copy of my version to Warrior.