<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br>Hi,<br><br>I compiled vtk-5.4 on a Mac OS 10.5 (Leopard) without errors<br>but after compiling (apparently successfully) the c++ example code in<br><br> <a href="http://www.vtk.org/VTK/help/examplecode.html">http://www.vtk.org/VTK/help/examplecode.html</a><br><br>using the CMakeList.txt file:<br>  cmake_minimum_required(VERSION 0.0)<br>  include_directories( /usr/local/include/vtk-5.4 )<br>  link_directories( /usr/lib /usr/local/lib /usr/local/lib/vtk-5.4 )<br>  add_executable( example example.cxx )<br>  target_link_libraries( example vtkFiltering vtkWidgets  vtkGraphics vtkViews vtkRendering  )<br><br>executing the binary gave me first:<br>~/test/ $  ./example<br>  dyld: Library not loaded: libvtkFiltering.5.4.dylib<br>    Referenced from: /Users/dgabbert/uksh/vtk/./example<br>    Reason: image not found<br><br>and after changing the current directory in which the library is located<br>/usr/local/lib/vtk-5.4/  $  ~/test/example<br>an X window is opened as expected, but then the program aborts with a<br>bus error. The gdb output is below.<br><br>Are there any ideas or hints which might help me?<br><br>Thanks in advance!<br><br>Dominik<br><br><br>Starting program: ~/test/example<br>Reading symbols for shared libraries ++++++++.................................................................................................................. done<br>Reading symbols for shared libraries . done<br>Reading symbols for shared libraries . done<br>Reading symbols for shared libraries . done<br>Reading symbols for shared libraries . done<br>Reading symbols for shared libraries . done<br>Reading symbols for shared libraries . done<br>Reading symbols for shared libraries . done<br><br>Program received signal EXC_BAD_ACCESS, Could not access memory.<br>Reason: KERN_PROTECTION_FAILURE at address: 0x00000000<br>0x026fb3fe in XQueryExtension ()<br>(gdb) bt<br>#0  0x026fb3fe in XQueryExtension ()<br>#1  0x0307993b in glXQueryExtension ()<br>#2  0x014b1480 in vtkOpenGLExtensionManager::ReadOpenGLExtensions ()<br>#3  0x014aff75 in vtkOpenGLExtensionManager::Update ()<br>#4  0x014affab in vtkOpenGLExtensionManager::ExtensionSupported ()<br>#5  0x014da74e in vtkOpenGLRenderWindow::OpenGLInit ()<br>#6  0x015251f3 in vtkCocoaRenderWindow::CreateAWindow ()<br>#7  0x01522ab4 in vtkCocoaRenderWindow::Initialize ()<br>#8  0x01521846 in vtkCocoaRenderWindow::Start ()<br>#9  0x015203be in vtkCocoaRenderWindowInteractor::Initialize ()<br>#10 0x0141d4be in vtkRenderWindow::Render ()<br>#11 0x00003e86 in main ()<br>(gdb)<br><br><br><br><br><br><br><br></body></html>