Hi

just an idea: Did you build the INSTALL-target? Looks like the linker
cannot find the libs referenced by the plugin. What does otool -L report
for a plugin-file? Any entries in console.log or syslog?

cheers,
Stephan


Am 26.05.11 10:40, schrieb Alessandro Terenzi:
> Hi,
> I want to port some apps from OSG 2.9.6 to the latest developer release
> (2.9.14)...so I've built OSG's frameworks and osgviewer.app and everything
> went fine on Windows, but I'm getting some troubles with plugins loading on
> Mac OS X (10.5).
> 
> In osgviewer.cpp I added the following line:
> 
> osgDB::setLibraryFilePathList("../Plugins");
> 
> and I added both the Frameworks and Plugins folders to the osgviewer.app
> package. But when I try to load either a DAE with JPG textures or a FBX I
> get errors because plugins cannot be found, even though they seems to be
> loaded as you can see from the console output:
> 
> (when loading a FBX)
> 
> ...
> 
> itr='../Plugins'
> 
> FindFileInPath() : trying
> /Users/alex/Desktop/osgviewer.app/Contents/Plugins/osgPlugins-2.9.14/osgdb_fbx.so
> ...
> 
> FindFileInPath() : USING
> /Users/alex/Desktop/osgviewer.app/Contents/Plugins/osgPlugins-2.9.14/osgdb_fbx.so
> 
> Opened DynamicLibrary osgPlugins-2.9.14/osgdb_fbx.so
> 
> Warning: Could not find plugin to read objects from file
> "/Users/alex/Desktop/models/max/dude/dude.fbx".
> 
> ./osgviewer: No data loaded
> 
> 
> (when loading JPGs via IMAGEIO)
> 
>    itr='../Plugins'
> 
> FindFileInPath() : trying
> /Users/alex/Desktop/osgviewer.app/Contents/Plugins/osgPlugins-2.9.14/osgdb_imageio.so
> ...
> 
> FindFileInPath() : USING
> /Users/alex/Desktop/osgviewer.app/Contents/Plugins/osgPlugins-2.9.14/osgdb_imageio.so
> 
> Opened DynamicLibrary osgPlugins-2.9.14/osgdb_imageio.so
> 
> Warning: Could not find plugin to read objects from file
> "/Users/alex/Desktop/models/dae/test/untitled/texture0.jpg".
> 
> 
> Why do I get opposite messages? (the first that says that the plugin has
> been opened and the second that it has not been found)
> 
> I set the notify level to DEBUG_INFO and DEBUG_FP, by cannot get more
> details about the error.
> 
> 
> If I try to print the plugins search paths (by means of g
> etLibraryFilePathList):
> 
> 
> path: /lib/osgPlugins-2.9.14
> 
> path: /Users/alex/Desktop/osgviewer.app/Contents/PlugIns
> 
> path: /Users/alex/Library/Application Support/OpenSceneGraph/PlugIns
> 
> path: /Library/Application Support/OpenSceneGraph/PlugIns
> 
> path: ../Plugins
> 
> 
> I tried also without the osgPlugins-2.9.14 folder under Plugins and also by
> providing an absolute path to setLibraryFilePathList, but still the same.
> 
> Am I missing something? By the way, I built against SDK 10.5 not 10.6.
> 
> 
> FYI, when I try to load the DAE example with JPGs textures, the DAE plugin
> is correctly loaded and I can see the model, the issue is just related to
> imageio plugin loading, I guess. Also, I had no problems at all with OSG
> 2.9.6, neither with JPGs nor with FBX.
> 
> 
> Thank you.
> 
> Alessandro
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to