Hi Stephan,
i rebuilded everything with your options, exept i had to use ITK_ZLIB
and VTK 5.2.1. I could build mitk, but the error stayed the same.
Cmake threw the following warning, but generated anyway:
CMake Warning (dev) at Core/CMakeLists.txt:47 (ADD_LIBRARY):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning
appears
because target "mitkCore" links to some libraries for which the
linker must
search:
m, -lpthread, -lm
and other libraries with known full path:
/Users/ahahn/Documents/BINARIES/MITK0.10.0/bin/Debug/
libmitkIpPic.dylib
/opt/local/lib/libqt-mt.dylib
CMake is adding directories in the second list to the linker search
path in
case they are needed to find libraries from the first list (for
backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to
enable
or disable this behavior explicitly. Run "cmake --help-policy
CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
Generating done
I dont know what to check next. Does this error in glViewport mean,
that openGL is wrong??
Regards,
Andreas
Am 30.03.2009 um 14:19 schrieb Stephan Wirth:
Hi Andreas,
On Sun, Mar 29, 2009 at 12:45 AM, Andreas Hahn
<[email protected]> 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
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users