Re: [mitk-users] Installation with Mac OS X
Brought to you by:
mitk
From: Stephan W. <st...@un...> - 2009-03-30 12:19:40
|
Hi Andreas, On Sun, Mar 29, 2009 at 12:45 AM, Andreas Hahn <zwe...@gm...> wrote: > Update: > I can build MainApp.app without errors now, but cannot launch despite i > wrapped it like you told me. > Debugger shows EXC_BAD_ACCESS in function: > #0 0x936cdf99 in glViewport > #1 0x03e9345f in mitk::VtkPropRenderer::Resize at > mitkVtkPropRenderer.cpp:418 > #2 0x006f7a93 in QmitkRenderWindow::resizeEvent at QmitkRenderWindow.cpp:174 > #3 0xb20b0475 in QWidget::event > #4 0x0025bfc2 in QVTKWidget::event at QVTKWidget.cxx:436 > #5 0xb203d7ff in QApplication::internalNotify > > Got an idea? > Andreas > I'm sorry, I'm not that much into mitk, I don't know what happens in mitk::VtkPropRenderer. Did you check your VTK installation? I set the following settings for VTK/ITK/MITK (qt3-mac installed through macports): ITK 3.8.0: BUILD_SHARED_LIBS=ON CMAKE_VERBOSE_MAKEFILE=ON ITK_USE_SYSTEM_ZLIB=ON ITK_USE_SYSTEM_PNG=ON ITK_USE_SYSTEM_TIFF_ON VTK 5.0.4: BUILD_SHARED_LIBS=ON CMAKE_VERBOSE_MAKEFILE=ON VTK_USE_PARALLEL=ON VTK_USE_GUISUPPORT=ON VTK_USE_QVTK=ON DESIRED_QT_VERSION=3 QT_INCLUDE_DIR=/opt/local/include/qt3 MITK: BUILD_SHARED_LIBS=ON BUILD_QmitkInteractiveSegmentation=ON BUILD_QmitkRegionGrowing=ON BUILD_QmitkSimpleExampleFunctionality=ON CMAKE_VERBOSE_MAKEFILE=ON USE_ITKZLIB=OFF QT_INCLUDE_DIR=/opt/local/include/qt3 VTK_DIR=<your path to VTK 5.0.4 build> ITK_DIR=<your path to ITK 3.8.0 build> OPENGL_INCLUDE_DIR=/System/Library/Frameworks/OpenGL.framework/Headers CMAKE_EXE_LINKER_FLAGS=-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib CMAKE_SHARED_LINKER_FLAGS=-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib Especially finding out these linker flags to get the dynamic binding working took me a lot of time... Good luck! Stephan |