> -----Ursprungligt meddelande----- > Från: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] För > Jean-Sébastien Guay > Skickat: den 8 oktober 2008 16:20 > Till: OpenSceneGraph Users > Ämne: Re: [osg-users] Problem with OpenThreads::Atomic when > buildingapplication with OSG 2.6.0 on SUSE 10.2 > > Hi Björn, > > > The application that fails linking has been successfully > compiled and linked against the following computers. > > Intel Core 2 Duo running Windows XP sp3, Visual Studio 2005 sp1. > > Intel Pentium 4 running Ubuntu 8.04, GCC version 4.2.3-2ubuntu7 > > > > Both have OSG 2.6.0 built from source. > > Can you check if your Ubuntu box is failing or succeeding the > atomic test in CMake?
The _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS reports success on the Ubuntu machine. > Can you make sure you're linking to OpenThreads (the right > version) and that you've included the right OpenThreads/Config header. > > Note that if the machine fails the atomic test, the > OpenThreads/Config header will be different than if it > passes. So your two machines should not include the same > OpenThreads/Config header (assuming one passed the test and > the other failed). So if you put your OSG in source control > for both machines to use (as we do) that might cause problems... Just as you we put OSG under source control, although only the include files. But the OpenThreads/Config file is NOT under source control. I have built OSG with CMAKE "out of source" and if I check the OpenThreads/Config file on each computer I can clearly see that they are diffrent. The Windows machine is using: _OPENTHREAD_ATOMIC_USE_WIN32_INTERLOCKED The Ubuntu machine is using: _OPENTHREAD_ATOMIC_USE_GCC_BUILTINS And the OpenSuse machine is using: _OPENTHREAD_ATOMIC_USE_MUTEX I have also tried to use OSG 2.7.3, which results with the same linking errors. /Björn _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

