Hi Gordon -- I didn't intend to imply that OSG will look for _plugin_ DLLs
in the OS DLL search path. You're right, of course -- it doesn't. Sorry for
the confusion.

OSG searches for plugins in the directories set in setLibraryFilePathList().

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gordon
Tomlinson
Sent: Saturday, April 11, 2009 12:58 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] Working without PATH variables

That's not quite true Paul. OSG provides the search place for the Plug-ins
to OSG not the OS and by default does not search in the current or exe's
directory it looks for a ./pluginsXXX directory. Personally I would like to
see OSG search the current and or same directory  as the EXE for its
.plug-ins as part of its default search as well . As we do not ship plug-ins
in a sub dir and have a different naming scheme to boot.

See this http://www.vis-sim.com/3dsceneBB/viewtopic.php?t=14 for how windows
searches for dll's ( OSG breaks this search when it comes to Plugin DLL's )


As to not using setting PATHS or environments vars not ever one can,
unfortunately the majority of our customer machines simply do not allow
these to be set or altered at any time by any one or program

____________________________________________________________________________
__
Gordon Tomlinson 

[email protected]
IM: [email protected]
www.vis-sim.com www.gordontomlinson.com
____________________________________________________________________________
__


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Paul Martz
Sent: Saturday, April 11, 2009 2:35 PM
To: [email protected]
Subject: Re: [osg-users] Working without PATH variables

How your executable finds DLLs is up to your OS. So if you don't want to use
PATH, and I assume you don't want to statically link, then you'll need to
put your DLLs somewhere where the OS will find them. That's really a Windows
question and is the same issue for any project, not just OSG.

OSG _does_ (or, at least, it used to) link statically. So if that's an
option for you, give that a try.

The osgDB has some controls built into it that weren't mentioned previously
in this thread, so I wanted to throw these out. Look for something like
setLibraryFilePathList() in the Registry. You can control it externally with
the OSG_LIBRARY_PATH env var. OSG will look for plugins in this location.

Also look at setDataFilePathList(), you can specify directories for OSG to
search when loading data files. This is controlled externally with the
OSG_FILE_PATH env var.

So you really have quite a few options here.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Geoff
Sent: Friday, April 10, 2009 7:27 AM
To: [email protected]
Subject: Re: [osg-users] Working without PATH variables

Thankyou for the quick replies guys, I'll try those suggestions. As for what
I'm working with, I usually develop on Windows, simply because I like
VisualStudio as an IDE. My software is generally designed to work "anywhere"
if I can wrangle it.

Thanks again,
 - Geoffrey.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10071#10071





_______________________________________________
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

_______________________________________________
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