[osg-submissions] Plugin DLL search order fix for Win32
Luigi Calori
l.calori at cineca.it
Fri Aug 24 00:40:52 PDT 2007
Tsted under winxp:
it works ok, just two notes:
1)
it is designed to search anyway for system and current directory before
PATH defined folders: this prevet an application writer to
set PATH env var to override presence of system installed plugins.
Would not be better to reverse the order?
like
<application_folder>/osgPlugins<osgversion> ;
<PATH_folder>/osgPlugins<osgversion>; .....
<PATH_folder>/osgPlugins<osgversion>;<SYSTEM_folder>/osgPlugins<osgversion>;<CurrDir_folder>/osgPlugins<osgversion>;
2)
in VisualStudio builds, the projects appends /Debug or /Release to the
folders where dll are created at build time,
I was used to test osg build BEFORE installing by setting up PATH
environment to build folders.
With current enforced versioned plugin this is impossible as projects
place plugin dll in lib/osgPlugins<osgversion>/<Debug or Release>
I attach a patch that change the build folder placement to lib/<Debug
or Release>/osgPlugins<osgversion>
that seems also more consistent.
The patch should not affect other platform builds
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_plugin_folder.patch
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070824/cd5a28fc/attachment.asc
More information about the osg-submissions
mailing list