[Insight-users] ITK, VTK and QT

Luis Ibanez luis.ibanez at kitware.com
Sat Dec 10 10:35:29 EST 2005


  Hi DiLLa,

  You *should use CMake* for configuring your project.


  That will save you *a lot of time and frustration*.


  CMake was designed for solving the exact problems
  that you are facing.


  If you were using CMake, by now you will be doing
  image processing and being productive, instead of
  wasting your valuable time playing around with the
  little options of Visual Studio.


  All your efforts in manually setting up your project
  will go to the trash as soon as you need to move your
  project to another computer.



    Regards,



       Luis



-------------------
DiLLa HaNdiNi wrote:
> Hi All,
>  
> Thanks for the suggestions. Really help.
> I enabled the "Enable Run Time Type Identification" and most of the 
> warnings disapear and the program could run (to display an image on the 
> GUI i.e. read the image using ITK, display using VTK, on QT GUI). Yet, 
> still, I got an error message when I click the image i.e. a pop up error 
> message that the program aborted, and subsequently the program closed. 
> Where does it go wrong ?
> The followings are the warnings that I still have.
> 
> --------------------Configuration: Regn - Win32 Debug--------------------
> Compiling...
> regndialog.cpp
> c:\program files\microsoft visual studio\vc98\include\vector(156) : 
> warning C4018: '<' : signed/unsigned mismatch
>         c:\program files\microsoft visual 
> studio\vc98\include\vector(156) : while compiling class-template member 
> function 'void __thiscall std::vector<unsigned int,class 
> std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const 
> unsig
> ned int &)'
> c:\program files\microsoft visual studio\vc98\include\vector(167) : 
> warning C4018: '<' : signed/unsigned mismatch
>         c:\program files\microsoft visual 
> studio\vc98\include\vector(156) : while compiling class-template member 
> function 'void __thiscall std::vector<unsigned int,class 
> std::allocator<unsigned int> >::insert(unsigned int *,unsigned int,const 
> unsig
> ned int &)'
> c:\program files\microsoft visual studio\vc98\include\vector(156) : 
> warning C4018: '<' : signed/unsigned mismatch
>         c:\program files\microsoft visual 
> studio\vc98\include\vector(156) : while compiling class-template member 
> function 'void __thiscall std::vector<long,class std::allocator<long> 
>  >::insert(long *,unsigned int,const long &)'
> c:\program files\microsoft visual studio\vc98\include\vector(167) : 
> warning C4018: '<' : signed/unsigned mismatch
>         c:\program files\microsoft visual 
> studio\vc98\include\vector(156) : while compiling class-template member 
> function 'void __thiscall std::vector<long,class std::allocator<long> 
>  >::insert(long *,unsigned int,const long &)'
> Linking...
>    Creating library Debug/Regn.lib and object Debug/Regn.exp
> 
> Regn.exe - 0 error(s), 4 warning(s)
> 
> 
> 
>  
> On 12/9/05, *Martin Urschler* <martin at urschler.info 
> <mailto:martin at urschler.info>> wrote:
> 
>     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.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list