[Insight-users] installation problem

Luis Ibanez luis.ibanez@kitware.com
Fri, 22 Nov 2002 11:34:06 -0500


Hi Imho,

There is no full example application using ITK,VTK and Qt.

Most the example applications using VTK are using FLTK
as GUI in part due to the version compatibility problem
of Qt that you just verified. (Qt 2.3 vs 3.1)

I would suggest you to work from the QtITK example and
add VTK components to the .cxx file.

You will only need to add the following four lines to
the CMakeLists.txx file:


INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
IF (USE_VTK_FILE)
   INCLUDE (${USE_VTK_FILE})
ENDIF (USE_VTK_FILE)


Reconfigure with CMake and start including VTK headers
to the .cxx file.


Please let us know if you encounter any problem.

Thanks,

    Luis


========================================


imho wrote:

> Hi Luis,
> I only try to compile one example, to get familiarized with cmake before 
> trying with my project.
> Wich example should I try? (with only itk, vtk, and qt 2.3)?
> 
> Thanks
> 
> Luis Ibanez wrote:
> 
>>
>> Hi imho,
>>
>> The ImageViewer example illustrates a simple
>> image viewer based on GLUT. It shouldn't be
>> building unless you enable the option "USE_GLUT"
>> on CMake while you configured the toolkit.
>>
>> I would suggest you to disable this option for
>> a first try of ITK (as recommended in the
>> InsightStart.pdf document).
>>
>> However if you insist in see the example, please
>> note that enabling GLUT is not enough. GLUT has
>> a very non-standard way of installation. You
>> have to go to Cmake advanced options and verify
>> that the variables GLUT_INCLUDE_DIR and
>> GLUT_glut_LIBRARY are correctly defined.
>>
>>
>> Please let us know if that helps,
>>
>>
>>   Thanks
>>
>>
>>      Luis
>>
>>
>>
>> ----------------------------------------------
>>
>>
>> imho wrote:
>>
>> > OK Luis, but why after replacing the sources in the right folder, have
>> > I still errors with itkImageViewer :
>> >
>> > 
>> C:\internet\VTK\ITK\InsightToolkit-1.0.0\InsightToolkit-1.0.0\Examples\ImageViewer\itkImageViewer.cxx(19) 
>>
>> > : fatal error C1083: Cannot open include file: 'itkImage.h': No such
>> > file or directory
>> >
>> >
>>
>>
>>
>>
> 
>