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
#6      0xb203f336 in QApplication::notify
#7      0xb202ec2d in QWidget::internalSetGeometry
#8      0xb20ad67f in QWidget::setGeometry
#9      0xb20395af in QWidgetItem::setGeometry
#10     0xb207192e in QGridLayoutData::distribute
#11     0xb2071bf7 in QGridLayout::setGeometry
#12     0xb2072644 in QBoxLayout::setGeometry
#13     0xb2072644 in QBoxLayout::setGeometry
#14     0xb203a202 in QLayout::eventFilter
#15     0xb2082caf in QObject::activate_filters
#16     0xb2082d2e in QObject::event
#17     0xb20b00d3 in QWidget::event
#18     0xb203d7ff in QApplication::internalNotify
#19     0xb203f336 in QApplication::notify
#20     0xb202ec2d in QWidget::internalSetGeometry
#21     0xb20ad67f in QWidget::setGeometry
#22     0xb20395af in QWidgetItem::setGeometry
#23     0xb2072644 in QBoxLayout::setGeometry
#24     0xb203a202 in QLayout::eventFilter
#25     0xb2082caf in QObject::activate_filters
#26     0xb2082d2e in QObject::event
#27     0xb20b00d3 in QWidget::event
#28     0xb203d7ff in QApplication::internalNotify
#29     0xb203f336 in QApplication::notify
#30     0xb202ec2d in QWidget::internalSetGeometry
#31     0xb20ad67f in QWidget::setGeometry
#32     0x000178d1 in QWidget::setGeometry at qwidget.h:847
#33     0xb2182491 in QWidgetStack::setChildGeometries
#34     0xb20b0475 in QWidget::event
#35     0xb203d7ff in QApplication::internalNotify
#36     0xb203f336 in QApplication::notify
#37     0xb202ec2d in QWidget::internalSetGeometry
#38     0xb20ad67f in QWidget::setGeometry
#39     0xb20395af in QWidgetItem::setGeometry
#40     0xb2072644 in QBoxLayout::setGeometry
#41     0xb203a202 in QLayout::eventFilter
#42     0xb2082caf in QObject::activate_filters
#43     0xb2082d2e in QObject::event
#44     0xb20b00d3 in QWidget::event
#45     0xb203d7ff in QApplication::internalNotify
#46     0xb203f336 in QApplication::notify
#47     0xb202ec2d in QWidget::internalSetGeometry
#48     0xb20ad67f in QWidget::setGeometry
#49     0x000178d1 in QWidget::setGeometry at qwidget.h:847
#50     0xb2168f91 in QSplitter::setGeo
#51     0xb216a9d7 in QSplitter::doResize
#52     0xb20b0475 in QWidget::event
#53     0xb216ae08 in QSplitter::event
#54     0xb203d7ff in QApplication::internalNotify
#55     0xb203f336 in QApplication::notify
#56     0xb202ec2d in QWidget::internalSetGeometry
#57     0xb20ad67f in QWidget::setGeometry
#58     0xb20395af in QWidgetItem::setGeometry
#59     0xb2072760 in QBoxLayout::setGeometry
#60     0xb203a202 in QLayout::eventFilter
#61     0xb2082caf in QObject::activate_filters
#62     0xb2082d2e in QObject::event
#63     0xb20b00d3 in QWidget::event
#64     0xb203d7ff in QApplication::internalNotify
#65     0xb203f336 in QApplication::notify
#66     0xb202ec2d in QWidget::internalSetGeometry
#67     0xb20ad67f in QWidget::setGeometry
#68     0xb2144870 in QMainWindowLayout::layoutItems
#69     0xb2147f3c in QMainWindowLayout::setGeometry
#70     0xb2072760 in QBoxLayout::setGeometry
#71     0xb2039a08 in QLayout::activate
#72     0xb203a2fc in QLayout::eventFilter
#73     0xb2082caf in QObject::activate_filters
#74     0xb2082d2e in QObject::event
#75     0xb20b00d3 in QWidget::event
#76     0xb21449d8 in QMainWindow::event
#77     0xb203d7ff in QApplication::internalNotify
#78     0xb203f336 in QApplication::notify
#79     0xb20425e3 in QApplication::sendPostedEvents
#80     0xb20af5e3 in QWidget::show
#81     0xb21452de in QMainWindow::show
#82     0xb20ae718 in QWidget::showMaximized
#83     0x0001052c in SampleApp::SetDefaultWidgetSize at SampleApp.cpp:144
#84     0x00016b9b in main at SampleAppMain.cpp:107


Got an idea?

Andreas



Am 28.03.2009 um 17:06 schrieb Andreas Hahn:

Thanks Stephan for your reply!

Now, i try using QT 3.3.8. and VTK 5.2.1.

No, i can't compile the MainApp. I got problems building the required libQmitk.dylib. XCode throws lots of errors when compiling the QT classes:

/Users/ahahn/Documents/BINARIES/MITK0.10.0/Utilities/vtk-bin/ GUISupport/Qt/QVTKWidget.h:150: error: expected primary-expression before 'void' /Users/ahahn/Documents/BINARIES/MITK0.10.0/Utilities/vtk-bin/ GUISupport/Qt/QVTKWidget.h:150: error: ISO C++ forbids declaration of 'Q_SIGNALS' with no type /Users/ahahn/Documents/BINARIES/MITK0.10.0/Utilities/vtk-bin/ GUISupport/Qt/QVTKWidget.h:150: error: expected ';' before 'void' /Users/ahahn/Documents/BINARIES/MITK0.10.0/Utilities/vtk-bin/ GUISupport/Qt/QVTKWidget.h:162: error: expected `:' before 'Q_SLOTS' /Users/ahahn/Documents/BINARIES/MITK0.10.0/Utilities/vtk-bin/ GUISupport/Qt/QVTKWidget.h:169: error: expected primary-expression before 'void' /Users/ahahn/Documents/BINARIES/MITK0.10.0/Utilities/vtk-bin/ GUISupport/Qt/QVTKWidget.h:169: error: ISO C++ forbids declaration of 'Q_SLOTS' with no type

I guess these headers have to be processed by QT to make it compatible with my XCode Project. How do i have to cope with them Q_Slots?

Andreas

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to