Hello,

I have the osgPlugin2.0.0 folder inside lib folder. If I only put in the
system environment the path of the lib folder, it works but only when using
the app via console. If I want to execute an example via VisualStudio I have
to add the path of osgPlugin2.0.0 itself to the system environment, if not,
it can´t find the plugins.

Perhpas some kindly Windows experts can chime in here... What do you
old hands do?

Not sure I'm an "old hand", but here goes... :-)

Putting the plugins directory itself in the path is a no-no, as when you upgrade you'll have to change your path, and if you forget, you'll have problems with a new version of OSG still using the old plugins. We've seen that a lot lately.

Just putting the lib or bin directories in the path should work and it should find the plugins. As to why when running an example through VS doesn't find the plugins, I don't know. Try running the example through VS setting the OSG_NOTIFY_LEVEL=DEBUG to see what the search path is in that environment. But normally, if the example runs from the command line and you've restarted VS since you changed the path (so it takes the changes into account) it should run in VS too.

Caveat: I don't use Mike's installer myself, so my environment is not identical to yours. But the files and structure should be the same.

Just remember, putting the plugins path into your path is ugly, and will cause problems in the long run, so just say no! :-)

J-S
--
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                        http://whitestar02.webhop.org/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to