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

Reply via email to