[Bf-committers] Test DIFFs to fix Plugins on OS X
Douglas Bischoff
bf-committers@blender.org
Tue, 25 Nov 2003 11:40:43 -0500
Okay.
I think I've gotten Plugins to work on OS X. There are a few steps
necessary.
First, here's a diff for dynlib.c
----
Index: dynlib.c
===================================================================
RCS file:
/cvsroot/bf-blender/blender/source/blender/blenlib/intern/dynlib.c,v
retrieving revision 1.6
diff -u -u -r1.6 dynlib.c
--- dynlib.c 30 Apr 2003 15:55:50 -0000 1.6
+++ dynlib.c 25 Nov 2003 16:38:00 -0000
@@ -102,7 +102,7 @@
free(lib);
}
-#else
+/*#else
#ifdef __APPLE__
#include <mach-o/dyld.h>
@@ -157,6 +157,7 @@
free(lib);
}
+*/
#else /* Unix */
#include <dlfcn.h>
@@ -192,5 +193,5 @@
free(lib);
}
-#endif
+//#endif
#endif
----
Next, you need the dlcompat library. You can get it from here and
compile it using the CVS instructions given
http://www.opendarwin.org/projects/dlcompat/
Finally, the "plugins" directory from 2.3 needs to have bmake changed
with the following diff:
----
Index: bmake
===================================================================
RCS file: /cvsroot/bf-blender/blender/release/plugins/bmake,v
retrieving revision 1.4
diff -u -u -r1.4 bmake
--- bmake 21 Feb 2003 15:37:55 -0000 1.4
+++ bmake 25 Nov 2003 16:43:38 -0000
@@ -74,7 +74,7 @@
CC="cc";
CFLAGS="-fPIC -funsigned-char -O2 -fno-common";
LD="cc";
- LDFLAGS=" -bundle -bundle_loader
../../blender.app/Contents/MacOS/blender -lm";
+ LDFLAGS=" -flat_namespace -bundle -bundle_loader
../../blender.app/Contents/MacOS/blender -ldl -lm";
EXT="so";
fi
----
Let me know if anyone else has success here! Many thanks to LarstiQ and
SirDude for their help!
-Bischofftep