[vtk-developers] bus error on Mac OS 10.5
dgabbert at pedcard.uni-kiel.de
dgabbert at pedcard.uni-kiel.de
Wed Mar 10 08:43:40 EST 2010
Hi,
I compiled vtk-5.4 on a Mac OS 10.5 (Leopard) without errors
but after compiling (apparently successfully) the c++ example code in
http://www.vtk.org/VTK/help/examplecode.html
using the CMakeList.txt file:
cmake_minimum_required(VERSION 0.0)
include_directories( /usr/local/include/vtk-5.4 )
link_directories( /usr/lib /usr/local/lib /usr/local/lib/vtk-5.4 )
add_executable( example example.cxx )
target_link_libraries( example vtkFiltering vtkWidgets vtkGraphics
vtkViews vtkRendering )
executing the binary gave me first:
~/test/ $ ./example
dyld: Library not loaded: libvtkFiltering.5.4.dylib
Referenced from: /Users/dgabbert/uksh/vtk/./example
Reason: image not found
and after changing the current directory in which the library is located
/usr/local/lib/vtk-5.4/ $ ~/test/example
an X window is opened as expected, but then the program aborts with a
bus error. The gdb output is below.
Are there any ideas or hints which might help me?
Thanks in advance!
Dominik
Starting program: ~/test/example
Reading symbols for shared libraries +++++++
+
.................................................................................................................. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x026fb3fe in XQueryExtension ()
(gdb) bt
#0 0x026fb3fe in XQueryExtension ()
#1 0x0307993b in glXQueryExtension ()
#2 0x014b1480 in vtkOpenGLExtensionManager::ReadOpenGLExtensions ()
#3 0x014aff75 in vtkOpenGLExtensionManager::Update ()
#4 0x014affab in vtkOpenGLExtensionManager::ExtensionSupported ()
#5 0x014da74e in vtkOpenGLRenderWindow::OpenGLInit ()
#6 0x015251f3 in vtkCocoaRenderWindow::CreateAWindow ()
#7 0x01522ab4 in vtkCocoaRenderWindow::Initialize ()
#8 0x01521846 in vtkCocoaRenderWindow::Start ()
#9 0x015203be in vtkCocoaRenderWindowInteractor::Initialize ()
#10 0x0141d4be in vtkRenderWindow::Render ()
#11 0x00003e86 in main ()
(gdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100310/b2b70b81/attachment.html>
More information about the vtk-developers
mailing list