On 4/8/07, Bill Hart <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to build a py2app application which uses the C++ openscenegraph
> libraries with some swig based wrappers.  Openscenegraph has a module osgDB,
> which dynamically loads a bunch of plugins (.so) files for reading and
> writing different types of files.
>
> I have a simple test application which loads a data file cow.osg and
> displays it in a viewer.  I run
>
> py2applet --make-setup osgtest.py cow.osg -frameworks osgdb_osg.so
>
> everything seems to work fine all the appropriate modules seem to be loaded
> and I can definitely see the osgdb_osg.so file in the Frameworks folder in
> the dist file.
>
> When I run the application the viewer starts up, but no cow appears.  The
> console shows
>
> Warning: Could not find plugin to read objects from file "cow.osg".
>
> In case I got the wrong plugin, I've manually copied in all of the plugin
> .so files into the Frameworks folder of the app, but still get the same
> message in the console.  It appears that the c++ library libosgDB.dylib
> isn't finding the .so files.

Sounds like the Frameworks folder isn't the right place to put them.
You'll have to ask someone familiar with OSG to see where they're
supposed to be in the context of an application bundle.

Might want to try the Resources folder..

-bob
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to