Deleted CMakeCache.txt, ccmake .
recompiled, but it continue crashing. In GDB this time I have:
Starting program: /local/OSG/OpenSceneGraph/bin/osgthirdpersonview
[Thread debugging using libthread_db enabled]
[New Thread 0xb6a66910 (LWP 6697)]
/local/OSG/OpenSceneGraph/bin/osgthirdpersonview: Could not find specified files. Trying
"cow.osg" instead.
[New Thread 0xb5f6cb90 (LWP 6708)]
[New Thread 0xb576bb90 (LWP 6709)]
[New Thread 0xb4f6ab90 (LWP 6710)]
[New Thread 0xb4769b90 (LWP 6711)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb576bb90 (LWP 6709)]
osg::OperationQueue::getNextOperation (this=0x814b4c0, blockIfEmpty=true)
at /local/OSG/OpenSceneGraph/include/OpenThreads/Atomic:107
107 return ++_value;
(gdb) where
#0 osg::OperationQueue::getNextOperation (this=0x814b4c0, blockIfEmpty=true)
at /local/OSG/OpenSceneGraph/include/OpenThreads/Atomic:107
#1 0xb7edc331 in osg::OperationThread::run (this=0x814b3d0)
at /local/OSG/OpenSceneGraph/src/osg/OperationThread.cpp:399
#2 0xb7fb1093 in OpenThreads::ThreadPrivateActions::StartThread
(data=0x814b3dc)
at /local/OSG/OpenSceneGraph/src/OpenThreads/pthreads/PThread.c++:170
#3 0xb7a67192 in start_thread () from /lib/libpthread.so.0
#4 0xb766702e in clone () from /lib/libc.so.6
My ./include/OpenThreads/Config has all the 5 #undef commented out.
If I manually define _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS as you have, osg does
not build.
Idem for what seems the most obvious fallback: _OPENTHREADS_ATOMIC_USE_MUTEX.
I should add that I have: gcc (GCC) 4.2.1 (SUSE Linux) and cmake version
2.4-patch 7
Hope it helps
mario
Robert Osfield wrote:
On Fri, Jun 27, 2008 at 11:48 AM, Mario Valle <[EMAIL PROTECTED]> wrote:
32bits, Intel(R) Xeon(TM) CPU 3.00GHz quad core 4GB RAM.
GeForce 6800 GS NVIDIA Driver Version: 169.12
Suse 10.3
Let me know if other info or other tests are needed.
The only test is the one suggested, remove your CMakeCache.txt, rerun
./configure or ccmake . to make sure it regenerates your
include/OpenThreads/Config, check the contents of this Config file to
make sure its been updated to a sensible value.
On my Kubuntu 64bit system I get a include/OpenThreads/Config that looks like:
/* -*-c++-*- OpenSceneGraph - Copyright (C) 2008 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
/****************************************************************************
* THIS FILE IS AUTOGENERATED BY CMAKE. DO NOT EDIT!
****************************************************************************/
/* Changes to the configuration reflected here can be made with ccmake on
* unix or with cmake-gui on windows. Alternatively you can use cmake's -D
* or -P switches to set some configuration values at cmake configuration time.
*/
#ifndef _OPENTHREADS_CONFIG
#define _OPENTHREADS_CONFIG
#define _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
/* #undef _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS */
/* #undef _OPENTHREADS_ATOMIC_USE_SUN */
/* #undef _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED */
/* #undef _OPENTHREADS_ATOMIC_USE_MUTEX */
#endif
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Ing. Mario Valle
Data Analysis and Visualization Services | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS) | Tel: +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org