Hi Praveena,

If your system can't find osgviewer and osgversion on the command line then
you either have your path setup incorrectly or you don't have the
library/programs installed. It's easily done. Check you OSG_BIN_PATH and
PATH environment variables to make sure they're pointing at the right
directory.

Typing 'set' into the command prompt can help with this on windows.

Hope that helps,

Kim.

On 15 May 2012 14:32, Praveena Sarathchandra <[email protected]> wrote:

> Hi,
>
> I'm reading OpenSceneGraph 3.0 Beginners Guide. When I tried to run the
> first sample program, I get the following error:
>
> "The program can't start because osg80-osgDBd.dll is missing ...."
>
>
> But I have configured all environment variables correctly as given.
> %OSG_BIN_PATH% is declared and also appended to PATH. I could locate the
> particular file inside /bin directory.
>
> Here's the 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();
> }
>
> PS: I'm also trying to figure out why calling "osgviewer" and "osgversion"
> didn't work in CMD. Any idea?
>
> Thanks
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
osgOcean - http://code.google.com/p/osgocean/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to