I have soloved the problem. Thanks for this amazing community and especially
thanks to Mike.
Instead of using:
IF ( ITK_FOUND)
INCLUDE( ${USE_ITK_FILE} )
ENDIF( ITK_FOUND)
I use:
FIND_PACKAGE(ITK REQUIRED)
INCLUDE_DIRECTORIES(${ITK_INCLUDE_DIRS})
LINK_DIRECTORIES(${ITK_LIBRARY_DIRS})
TARGE
It depends on how you are building your plugin. I use externally built
libraries all the time. 2 Things to remember here:
1: Compile time Includes - you will need to make sure that
include_directories(.. ) are called for each directory that needs to be
included. The "ITK_USE_FILE" should be se
Thanks for your help, Michael Jackson! I am a big fan of you. :-)
The problem was in my CMakeLists.txt file. Because I use ITK libraries in my
class, I include
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
in my CMakeList file.
After I delete those code in my CMakeList file, everything worked
Are you including the paths to the DICOMParser and DICOMAppHelper
header files? Can you do a "make VERBOSE=1" to see the entire compile
command? Maybe it is not getting included properly for some reason.
_
Mike Jackson
Yes, I have done that in my .cxx file, but it doesn't work...
I also found a strange phenomenon. When I include the header files for
DICOMParser and DICOMAppHelper in the header file of my class, I got an
error said "it can't find those header files".
I am wondering if this is related to the parav
In your .cxx file add #include "vtkDICOMImageReaderVector.h" and the
other classes that are just forward declared in the header file.
_
Mike Jackson mike.jack...@bluequartz.net
BlueQuartz Softwarewww.bl
Hi everyone. This might be a silly question, but I am really confused.
I am writing a class inherites from vtkDICOMImageReader. In the header file
of vtkDICOMImageReader class, there are some forward declaration of these
classes: vtkDICOMImageReaderVector, DICOMParser and DICOMAppHelper. The
defini