Hi Patrick,
On Wed, 2005-04-20 at 20:57 -0500, Patrick Hartling wrote:
>
> Here you go:
>
> #0 0x00000000 in ?? ()
> Cannot access memory at address 0x0
> Cannot access memory at address 0x0
> #1 0x18f808f0 in GeoPump129(osg::Window*, osg::Geometry*)
> (win=0x24801a8, geo=0x2471238) at
> /Users/patrick/src/OpenSG/OpenSG-1.4.0/Source/System/NodeCores/Drawables/Geometry/OSGGeoPumpFactory.cpp:792
That is the glActiveTexture call. Looking at the commit log, that was
fixed a couple days after 1.4... :(
If you want to patch it:
diff -u -3 -p -r1.39 -r1.38
--- OSGWindow.cpp 24 Nov 2004 23:37:52 -0000 1.39
+++ OSGWindow.cpp 19 Nov 2004 01:08:11 -0000 1.38
@@ -52,14 +52,10 @@
#include <GL/glx.h>
#endif
-#if defined(__sgi) || defined(__hpux) || defined(__linux)
+#if defined(__sgi) || defined(darwin) || defined(__hpux) || defined
(__linux)
#include <dlfcn.h>
#endif
-#if defined(darwin)
-#include <mach-o/dyld.h>
-#endif
-
#if defined(__sun)
#include <dlfcn.h>
#include <link.h>
@@ -1220,13 +1216,15 @@ OSG::Window::GLExtensionFunction OSG::Wi
#if defined(darwin)
- if (NSIsSymbolNameDefined(s))
+ static void *libHandle = NULL;
+
+ if(libHandle == NULL)
{
- NSSymbol symbol = NSLookupAndBindSymbol(s);
- if (symbol != 0)
- retval = GLExtensionFunction(NSAddressOfSymbol(symbol));
+ libHandle = dlopen("libGL.dylib", RTLD_NOW);
}
+ retval = reinterpret_cast<GLExtensionFunction>(dlsym(libHandle,
s));
+
#elif defined(WIN32)
retval = (void(__cdecl*)(void)) wglGetProcAddress(s);
> No, unfortunately not. The generated file
> Builds/powerpc-apple-darwin-g++/Makefile does not include WindowXLib in
> the list set for $(SUB_LIBS), and even if it did, that directory tree
> isn't present under the build directory.
Yes, you have to patch the configure script to make that happen (no clue
whether it will actually compile, but it would enable it):
if test ${ac_gdz_package_name} = "WindowX"; then
case ${build_os} in
cygwin*)
echo Skipping ${ac_gdz_package_name}
continue
;;
> darwin*)
> echo Skipping ${ac_gdz_package_name}
> continue
> ;;
remove these
*)
ac_gdz_package_order="${ac_gdz_package_order} WindowXLib"
ac_gdz_package_order_test="${ac_gdz_package_order_test}
WindowXTest"
;;
esac
fi
Hope it helps
Dirk
--
-- Dirk Reiners OpenSG Forum [EMAIL PROTECTED]
-- The OpenSG Open Source Scenegraph: http://www.opensg.org
-- Join the list at http://lists.sf.net/lists/listinfo/opensg-users
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users