Hi. I'm having a hard time getting OSG playing nice with xcode 3.2.
I've I make a really basic osgViewer app...
Code:
#include <osgDB/ReadFile>
#include <osgViewer/Viewer>
int main( int argc, char** argv )
{
osgViewer::Viewer viewer;
viewer.setSceneData( osgDB::readNodeFile("cessna.osg") );
return viewer.run();
}
I can build this in xcode and run it from the command line so that I can see
the rendered cessna.
However, running from within xcode gives me the error:
> Warning: Could not find plugin to read objects from file "cessna.osg".
I solved this issue from the command line by adding
export OSG_LIBRARY_PATH=/Users/<...path...>/lib
to my ~/.bash_profile file
Does anyone know how the equivalent is done in xcode?
Thanks,
Glenn
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41259#41259
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org