[Insight-users] ITK, VTK and QT

Martin Urschler martin at urschler.info
Fri Dec 9 04:56:27 EST 2005


hi

you have to enable the MSVC project setting "Enable Run Time Type 
Identification" (C++ Language). This will get you rid of most of your 
compiler warnings. These warnings are crucial since qt, itk, vtk are 
working with RTTI features...

greetings,
Martin


DiLLa HaNdiNi wrote:
> Dear All,
>  
> I am a student trying to build a GUI to combine ITK, VTK and QT. I am 
> using MSVC 6, SP6. I did not use CMake to configure the project, yet I 
> used manual addition of library and header files in project settings. 
> As I am still new in this, I started by trying the program in "Getting 
> Started II" tutorial. In the QT GUI I make a button to execute this 
> program. I managed to compile, link and run. Yet, when the button is 
> clicked, it doesn't perform as expected. There is a run time error 
> message appearing, and the program aborted. While compiling, there is no 
> error, yet there are several warnings that I appended below.
> I have no idea of how to deal about this.
> I really need suggestions.
> Thank you in advance.
>  
> While compiling, there are several warnings as follows:
> 
> --------------------Configuration: Regn - Win32 Debug--------------------
> UICing regndialog.ui...
> Performing Custom Build Step on .\vtkQtRenderWindowInteractor.h
> Performing Custom Build Step on .\regndialogimpl.h
> Compiling...
> main.cpp
> moc_regndialog.cpp
> moc_regndialogimpl.cpp
> moc_vtkQtRenderWindowInteractor.cpp
> regndialog.cpp
> c:\itksource\itksrc\itkbasic\code\common\itkeventobject.h(134) : warning 
> C4541: 'dynamic_cast' used on polymorphic type 'class itk::EventObject' 
> with /GR-; unpredictable behavior may result


More information about the Insight-users mailing list