Hi, I have successfully compiled static OSG 3.2.1 on my OSX 10.9 Machine. I did it by unchecking DYNAMIC_OPENSCENEGRAPH and DYNAMIC_OPENTHREADS options in CMake. That went fine.
I have now my own OSG app linking against static OSG, but I cannot load an OSG file. The file I want to load is cessna.osg from the sample dataset 3.0.0. I have linked against osgPlugins-3.2.1/libosgdb_osg.a (release and debug), and also used the macro at the top of my main.cpp file: Code: #include <osgDB/Registry> USE_OSGPLUGIN(osg) Also, although I'm not very sure about this one, I have defined as a preprocessor macro -DOSG_LIBRARY_STATIC. When I run the app from command line having exported "OSG_NOTIFY_LEVEL=DEBUG", I get following: Code: MacBook-Pro-de-Roberto:Debug ro$ ./SimpleTest CullSettings::readEnvironmentalVariables() DatabasePager::addDatabaseThread() HANDLE_NON_HTTP DatabasePager::addDatabaseThread() HANDLE_ONLY_HTTP Render::Render() 0x7fbfaac288c0 CullSettings::readEnvironmentalVariables() CullSettings::readEnvironmentalVariables() CullSettings::readEnvironmentalVariables() CullSettings::readEnvironmentalVariables() ShaderComposer::ShaderComposer() 0x7fbfaac29e10 CullSettings::readEnvironmentalVariables() ShaderComposer::ShaderComposer() 0x7fbfaac2be10 _availableQueue.size()=2 itr='/Users/ro/Library/Application Support/OpenSceneGraph/PlugIns' FindFileInPath() : trying /Users/ro/Library/Application Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.1/osgdb_osg.so ... itr='/Library/Application Support/OpenSceneGraph/PlugIns' FindFileInPath() : trying /Library/Application Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.1/osgdb_osg.so ... itr='/Users/ro/Library/Application Support/OpenSceneGraph/PlugIns' FindFileInPath() : trying /Users/ro/Library/Application Support/OpenSceneGraph/PlugIns/osgdb_osg.so ... itr='/Library/Application Support/OpenSceneGraph/PlugIns' FindFileInPath() : trying /Library/Application Support/OpenSceneGraph/PlugIns/osgdb_osg.so ... Warning: dynamic library 'osgPlugins-3.2.1/osgdb_osg.so' does not exist (or isn't readable): dlopen(osgPlugins-3.2.1/osgdb_osg.so, 9): image not found DynamicLibrary::failed loading "osgPlugins-3.2.1/osgdb_osg.so" itr='/Users/ro/Library/Application Support/OpenSceneGraph/PlugIns' FindFileInPath() : trying /Users/ro/Library/Application Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.1 ... itr='/Library/Application Support/OpenSceneGraph/PlugIns' FindFileInPath() : trying /Library/Application Support/OpenSceneGraph/PlugIns/osgPlugins-3.2.1 ... It seems that OSG is trying to load dynamic ".so" plugins, but my OSG build is static! Any ideas? Thank you! Cheers, Roberto[/code] ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=61561#61561 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

