[osg-submissions] Plugin DLL search order fix for Win32
Luigi Calori
l.calori at cineca.it
Tue Aug 28 03:34:26 PDT 2007
Hi Robert, Just for curiosity, did you get my previous mail with patch
attached? I did not received from the list but apparently Eric did...
That is really puzzling.
If you do not have recevived the patch, I can resend.
Anyway, my previous patch managed to NOT renaming the .lib but only the
.dll This should not have impact on Find and other stuff.
The .dll are searched at runtime and, probably theyr name is written
inside .lib, so there are chances that nothing has to be changed.
I do not have run a lot of test though, just VPB under VS7.1
I can test the whole stuff unde VS8 today.
Le me know.
Luigi
Robert Osfield wrote:
>Hi Luigi,
>
>On 8/28/07, Luigi Calori <l.calori at cineca.it> wrote:
>
>
>>>Personally, if this is all caused by the case-insensitivity around
>>>osgViewer, then I say lets just rename the application to osgViewerApp
>>>or something. We can change the documentation or add an errata page
>>>easily. This is so much easier than fighting Windows and CMake and
>>>more reliable and maintainable in the long run. Also don't forget that
>>>Windows isn't the only system with case-insensitive file systems and
>>>the issue could remanifest itself somewhere else in the future.
>>>
>>>
>>>
>>>
>>That was my first suggestion but Robert was not keen on that.
>>This is the easiest thing to do, bear in mind, anyway, that using ../ in
>>the prefix is the only way to get rid of Debug and Release at build time.
>>
>>
>
>I'm in two minds about the renaming, basically its rename the libs or
>rename the apps. As the OSG is an SDK then renaming the apps is less
>intrusive as they are far less important than the libraries. Also
>from an engineering point of view renaming the apps is better. Its
>only from the perspective that people are used to running osgviewer
>aspect that haven't to call it osgviewerApp would be a pain.
>
>I'm open to either route, but the ideal is obviously not have to do
>any renaming, and any copying...
>
>
>
>>>There might be one other way out though. I thought CMake was going to
>>>(or already) handled this exact issue. I remember some discussion on
>>>the CMake list awhile back asking for a way to disambiguate between a
>>>library and executable that have the same name. If this works, I would
>>>suspect it would handle the case-sensitivity issue since it's
>>>basically the same problem. If CMake already supports this, then you
>>>aren't fighting CMake and should be well supported going into the
>>>future. So far, I haven't found the discussion thread, but I know it's
>>>there.
>>>
>>>
>>>
>>>
>>I don' t remeber either, any suggestion welcome.
>>
>>
>
>If this is going to get sorted at some point then perhaps the renaming
>of osgviewer and osgtext examples would be just a temporary measure.
>
>Renaming libs, then reverting back would be more of a pain.
>
>Robert.
>_______________________________________________
>osg-submissions mailing list
>osg-submissions at lists.openscenegraph.org
>http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>
>
More information about the osg-submissions
mailing list