Re: [Openscenegraph-news] DynamicLibrary::failed loading
Brought to you by:
robertosfield
|
From: Timothy P. <tim...@ya...> - 2001-12-30 08:26:34
|
Hey Hugo :) I suffer from this quite a bit! What usually fixes it from me is to explicitly compile the rgb plugin (which isn't part of the default build I think?) In visual studio its clickity click, but in nix I guess it would be something like 'make osgdb_rgb'. I'll make a note about it in the faq... Oh and before I go, how about putting it as part of make all? I know it breaches the geniva convention in that its compiling not core components... but it seems to build just fine and not require any downloads etc... Tim. ----- Original Message ----- From: "Hugo van der Merwe" <hu...@ma...> To: <ope...@li...> Sent: Sunday, December 30, 2001 6:54 PM Subject: [Openscenegraph-news] DynamicLibrary::failed loading > I am playing a bit with Swig, Python, Demeter and OSG. I have taken the > normal Demeter/OSG example, and called it from Python. It works great, > except that the billboard-trees I'm supposed to see are white(?) > rectangels. Here is the problem: > > DynamicLibrary::failed loading /home/hugo/Programming/alonzo/osg-0.8.42/lib/osgPlugins/osgdb_rgb.so > DynamicLibrary::error /home/hugo/Programming/alonzo/osg-0.8.42/lib/osgPlugins/osgdb_rgb.so: undefined symbol: instance__Q25osgDB8Registry > Warning: Could not find plugin to read file with extension .rgba > Warning: Unable to read file tree0.rgba > > What can be causing this? The way I link it? I am linking it as far as I > can see, the same as the C++ version, which works fine: > > alonzo.so: alonzo.o alonzo_wrap.o HoverCamera.o > $(CXX) -shared alonzo.o alonzo_wrap.o HoverCamera.o -o alonzo.so -L$(OSGHOME)/lib -LTerrain -L/usr/X11R6/lib -lDemeterOSG -losgDB - losgUtil -lSDL_image -lSDL -lXxf86dga -lXxf86vm -lXv > alonzo: alonzo.o HoverCamera.o > $(CXX) alonzo.o HoverCamera.o -o alonzo -L$(OSGHOME)/lib -LTerrain -L/usr/X11R6/lib -lDemeterOSG -losgDB -los gUtil -lSDL_image -lSDL -lXxf86dga -lXxf86vm -lXv > > alonzo target produces a perfectly working ELF executable. The alonzo.so > target produces a .so that I import into Python using "import alonzo", > then I run a single procedure that also gets called by main() in alonzo > (a single procedure to limit the possible reasons for trouble), and then > what I have above happens. > > It should be clear I don't really understand linking very well. (Still > wondering when it is necessary to pass -fpic...) Any ideas where I can > learn more to be able to solve this problem? What might the problem be? > I think I might have to take this to a list related to interfacing > Python with C++. > > Thanks in advance, > Hugo van der Merwe > > _______________________________________________ > Openscenegraph-news mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openscenegraph-news _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |