[osg-submissions] Adding debug "d" extensions to plugins under linux

Robert Osfield robert.osfield at gmail.com
Tue May 27 12:58:39 PDT 2008


Thanks Mathieu,  it's end of day here so I'm turning in.   I'll have a
look at your submission tomorrow morning.

On Tue, May 27, 2008 at 7:41 PM, Mathieu MARACHE
<mathieu.marache at gmail.com> wrote:
> Hi Robert,
>
> I've gone ahead and added a preprocessor directive with the editable
> CMAKE_DEBUG_POSTFIX. I modified Registry.cpp to take this new preprocessor
> directive called OSG_DEBUG_POSTFIX while looking for libraries in Debug mode
> for the windows (msvc) and the linux platforms.
>
> MinGW, cygwin and Apple are still left out this proposal.
>
> The submission is based on r8371
>
> 2008/5/27 Robert Osfield <robert.osfield at gmail.com>:
>>
>> Hi Mathieu,
>>
>> I've done a quick review of your changes, and agree with the general
>> intent, but unfortunately the CMakeLists.txt files you've changed also
>> have been changed alot by others for items such as CMake 2.6 support,
>> pkg-config support etc.  I'd all these changes tested out by the
>> community in isolation, then move on to looking the changes you've
>> made.
>>
>> Could you try out the svn version of the OSG, then reapply your
>> changes.  One thing to bare in mind is Cedric Pinson change to make
>> the CMAKE_DEBUG_POSTFIX editable via CMakeSetup/ccmake.  Cedric's
>> change means that is possible to build without the d post fix or even
>> use another postfix, so we'll need to pass this postfix into the build
>> of osgDB so that the Registry change build the correct plugin names.
>> The code in Registry.cpp could probably be rationalised a bit once we
>> do pass in the post fix via a -D define.
>>
>> Thanks for you patience and assistance,
>> Robert.
>>
>> On Fri, May 23, 2008 at 9:21 AM, Mathieu MARACHE
>> <mathieu.marache at gmail.com> wrote:
>> > Hi Robert,
>> >
>> > I had the problem that debug and release version of the plugins had the
>> > same
>> > name under linux. These minors modification to Registry and the CMake
>> > support files enable to have both Release and Debug version of the
>> > plugins
>> > to coexist and be found by there respective runtimes.
>> >
>> > HTH someone.
>> >
>> > --
>> > Mathieu
>> > _______________________________________________
>> > osg-submissions mailing list
>> > osg-submissions at lists.openscenegraph.org
>> >
>> > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>> >
>> >
>> _______________________________________________
>> osg-submissions mailing list
>> osg-submissions at lists.openscenegraph.org
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>
> --
> Mathieu
> _______________________________________________
> 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