Hi ThaPear,

First, you need to make sure that all the dependencies and plugins are
in your path when you run your program (OSG, osgEarth, GDAL, etc).  So
if you're trying to run from visual studio with the "run" button for
instance you need to either have your global path setup correctly or
copy all the required deps to your program's bin folder for it to
work.

It sounds like it's just not able to find the earth plugin.  You can
debug this by setting your OSG_NOTIFY_LEVEL env var to DEBUG and
seeing where OSG is trying to find the DLLs.

Thanks!

Jason

On Mon, Aug 15, 2011 at 10:09 AM, Tha Pear <[email protected]> wrote:
> Hey,
>
> I'm trying to get osgEarth working with c++ and visual studio 2010.
> I have followed all build instructions, built OSG and OSGEarth. Added all 
> directories to path, including all depencies they both have.
>
> When I navigate to the osgearth/tests directory using cmd.exe and type: 
> osgviewer XXXXX.earth it works, the window opens and I get a nice earth.
>
> However, when I try to use this line in my c++ code:
>
> Code:
> osg::ref_ptr< osg::Node > globe = osgDB::readNodeFile("data/graticule.earth");
>
> I get the following error:
> Code:
> Warning: Could not find plugin to read objects from file 
> "data/graticule.earth".
>
>
>
> I moved graticule.earth to a folder named data inside my project's working 
> directory.
>
>
> Thanks,
> ThaPear
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=42070#42070
>
>
>
>
>
> _______________________________________________
> 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