[osg-submissions] Plugin DLL search order fix for Win32
Luigi Calori
l.calori at cineca.it
Mon Aug 27 03:11:52 PDT 2007
Robert Osfield wrote:
>Hi Luigi,
>
>OK I'll wait till your happy.
>
>Personally I'd prefer to see lib or executable renaming rather than a
>more complicated build system such as with copying things around. I
>don't have an issue with calling the core libraries lib*.lib lib*.dll,
>its a little bit different than Windows norm, but it shouldn't require
>too much in the way of changes for end users.
>
>
Requring all lib in lib (debug+release) and all dll in bin without
copying can be done with a hack that is not "the usual CMake way"...
I can ask the CMake mailing list, but it seems a non common usage: it
seems to me the default is to keep .lib and .dll in the same place with
the same prefix.
By using .. in the prefix, one can force placing stuff... but is
probably not thorougly tested (as debug / release inconsistency shows)
I have posted a question on CMake linst
>One thing it might upset is using CMake for find things though... as
>under Windows you'll need to look for libname rather than name...
>
>Umm... renaming the examples/apps would of course be the least
>instrusive approach, I a bit loathed to rename osgviewer though as its
>been commonly referenced other the years.
>
>
Even to me this seems the most straigthforward route, but, if you do not
want to rename stuff, you need copying.
The copying can be limited to only the clashing examples though
Luigi
More information about the osg-submissions
mailing list