Hi JP,

I have done some further experiments and have similar finding to
yours.  The double linking is caused by applications/CMakeLists.txt
and examples/CMakeLists.txt explicitly listing OpenThreads in the
TARGET_COMMON_LIBRARIES, and these entries automatically get the 'd'
appended to lib names, which conflicts with the OpenThreads.so found
by the initial cmake/ccmake .etup.

Take OpenThreads out of the TARGET_COMMON_LIBRARIES list solves the
double linking problem, and things still compile fine for me under
Linux.  I have checked this in as a temporary measure.  I'll raise
this topic on osg-build w.r.t finding the best way of tackling this
issue.

Robert.

On 3/25/07, J.P. Delport <[EMAIL PROTECTED]> wrote:
Hi,

I also saw this double linking problem. It seems to be created by the
CMake scripts once one has two versions of libOpenThreads in
/usr/local/lib. (maybe the detection script?)

If you look at your OSG dir now you should see both OT libs in e.g.
applications/osgviewer/CMakeFiles/application_osgviewer.dir/build.make

What I had to do to get rid of it was to clean out my /usr/local/lib,
then compile OT and then compile OSG when only libOpenThreadsd.so was
present. In this case the apps would only be linked to libOpenThreadsd.

At first I also thought that this was the problem, but after a restart
and clean debug compile I still get the strange errors when starting an
app/example.

Let me know if I can provide more info.

regards
jp

Robert Osfield wrote:
> Hi JP,
>
> On 3/25/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
>> I don't have any explanation for this odd behavior.  I'm currently
>> rebuilding OpenThreads and OpenSceneGraph under Debug to see what
>> happens.
>
> I have now rebuilt the OSG and OpenThreads under debug and on running
> osgviewerd (the debug build version of osg) things run just fine.
>
> Things get a bit more curious when running ldd on osgviewer and
> osgviewerd though - the later debug version links to both
> libOpenThreadsd.so and libOpenThreads.so which is certainly wrong, but
> I don't know if this might be the cause at your end.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>

--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.

CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html

CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html

For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to