[IGSTK-Users] I need help about headers
Patrick Cheng
cheng at isis.georgetown.edu
Fri Apr 4 16:20:36 EDT 2008
Hi Behzat,
Sorry about my presumptuous email.
I assume you are using CMake for your own project as well. If that's the
case, the easier way to add all the required directories is by include
the following scripts in your CMakeLists.txt
We will look into out library build configuration, IGSTK_USE_FILE should
include all third party library setup all ready and developers do not
need to look for those third party library again. We will test the
external build and try to fix this.
I have also attached the CMakeCache.txt file. Let me know how it goes.
Thank you,
Patrick
===============================================================================
#
# FIND ITK
#
FIND_PACKAGE(ITK)
IF (USE_ITK_FILE)
INCLUDE (${USE_ITK_FILE})
ELSE (USE_ITK_FILE)
MESSAGE( FATAL_ERROR "This application requires ITK. One of these
components is missing. Please verify configuration")
ENDIF (USE_ITK_FILE)
#
# FIND VTK
#
FIND_PACKAGE(VTK)
IF (USE_VTK_FILE)
INCLUDE (${USE_VTK_FILE})
ELSE (USE_VTK_FILE)
MESSAGE( FATAL_ERROR "This application requires VTK. One of these
components is missing. Please verify configuration")
ENDIF (USE_VTK_FILE)
#
# FIND FLTK
#
FIND_PACKAGE(FLTK)
IF (FLTK_FOUND)
INCLUDE_DIRECTORIES (${FLTK_INCLUDE_DIR})
ELSE (FLTK_FOUND)
MESSAGE( FATAL_ERROR "This application requires FLTK. One of these
components is missing. Please verify configuration")
ENDIF (FLTK_FOUND)
#
# FIND IGSTK
#
FIND_PACKAGE(IGSTK)
IF (IGSTK_USE_FILE)
INCLUDE (${IGSTK_USE_FILE})
ELSE (IGSTK_USE_FILE)
MESSAGE( FATAL_ERROR "This application requires IGSTK. One of these
components is missing. Please verify configuration")
ENDIF (IGSTK_USE_FILE)
#
# Find Micron Lib
#
FIND_PATH(MTC_INCLUDE_DIRECTORY MTC.h
"C:/Program Files/Claron Technology/MicronTracker/Dist"
DOC "Directory where the MTC.h file is located")
INCLUDE_DIRECTORIES( ${MTC_INCLUDE_DIRECTORY} )
INCLUDE_DIRECTORIES( ${IGSTK_SOURCE_DIR}/Utilities/MicronTracker/src )
FIND_LIBRARY( MTC_LIBRARY
NAMES MTC MTC.dll
PATHS "C:/Program Files/Claron Technology/MicronTracker/Dist"
DOC "Full path to the MTC.dll file"
)
GET_FILENAME_COMPONENT( MTC_LIBRARY_DIRS ${MTC_LIBRARY} PATH )
LINK_DIRECTORIES( ${MTC_LIBRARY_DIRS} )
===========================================================================
B3hzat wrote:
> Hi Patrick,
>
> Thanks for advice.
>
> 1- I already intall cmake
> 2- I already build all every library
> 3- I already build and link IGSTK
> 4- And I already print IGSTKTheBook :)
>
> I think I miss something else. If you use MS Visual Studio, could you send
> your "Include" folder printscreen?
>
> Thanks for help.
> Warm regards,
> Behzat.
>
> -----Original Message-----
> From: Patrick Cheng [mailto:cheng at isis.georgetown.edu]
> Sent: Friday, April 04, 2008 5:09 PM
> To: B3hzat
> Cc: IGSTK-Users at public.kitware.com
> Subject: Re: [IGSTK-Users] I need help about headers
>
> Hi B3hzat,
>
> IGSTK is based on ITK and VTK.
>
> To be able to use the DICOMImageReader, you should:
>
> 1. Install CMake
>
> 2. Download, configure (using CMake), and compile ITK, VTK, GUI
> Toolkit (FLTK or Qt)
>
> 3. Download IGSTK, ,configure the project using CMake, you have to
> set the proper ITK, VTK binary directories. Then compile.
>
> After these steps, you can start your project and link to IGSTK library.
>
> Also igstkDICOMImageReader is an abstract class. You should use the
> following classes instead, they are modality specific:
> igstkMRImageReader
> igstkCTImageReader
> igstkUSImageReader
>
> We are currently developing a GenericImageReader class can be used to
> read all modalities supported by ITKImageFileReader.
>
> Thank you,
>
> Patrick
>
> B3hzat wrote:
>> Hello everyone,
>>
>>
>>
>> I want to use "only" IGSTK library but it's really confused me. I just
>> try to open dicom images but headers not allow this. Any idea this
>> situation?
>>
>>
>>
>> #code#
>>
>> #include <iostream>
>>
>> #include <igstk/igstkDICOMImageReader.h>
>>
>>
>>
>> int main()
>>
>> {
>>
>> //dummy code
>>
>> //testing
>>
>> return EXIT_SUCCESS;
>>
>> }
>>
>>
>>
>> #errors#
>>
>> Error 1 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 41
>>
>> Error 2 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 41
>>
>> Error 3 error C2143: syntax error : missing ';' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 44
>>
>> Error 4 error C4430: missing type specifier - int
>> assumed. Note: C++ does not support default-int c:\program files
>> (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 44
>>
>> Error 5 error C2238: unexpected token(s) preceding
>> ';' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 44
>>
>> Error 6 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 104
>>
>> Error 7 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 104
>>
>> Error 8 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 119
>>
>> Error 9 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 120
>>
>> Error 10 error C2065: 'Zero' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 123
>>
>> Error 11 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 131
>>
>> Error 12 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 131
>>
>> Error 13 error C3861: 'min': identifier not found
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 145
>>
>> Error 14 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 146
>>
>> Error 15 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 147
>>
>> Error 16 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 148
>>
>> Error 17 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 149
>>
>> Error 18 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 158
>>
>> Error 19 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 158
>>
>> Error 20 error C3861: 'min': identifier not found
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 172
>>
>> Error 21 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 173
>>
>> Error 22 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 174
>>
>> Error 23 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 175
>>
>> Error 24 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 176
>>
>> Error 25 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 185
>>
>> Error 26 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 185
>>
>> Error 27 error C3861: 'min': identifier not found
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 197
>>
>> Error 28 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 198
>>
>> Error 29 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 199
>>
>> Error 30 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 209
>>
>> Error 31 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 209
>>
>> Error 32 error C3861: 'min': identifier not found
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 221
>>
>> Error 33 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 222
>>
>> Error 34 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 223
>>
>> Error 35 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 224
>>
>> Error 36 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 225
>>
>> Error 37 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 234
>>
>> Error 38 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 234
>>
>> Error 39 error C3861: 'min': identifier not found
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 246
>>
>> Error 40 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 247
>>
>> Error 41 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 248
>>
>> Error 42 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 258
>>
>> Error 43 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 258
>>
>> Error 44 error C3861: 'min': identifier not found
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 270
>>
>> Error 45 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 271
>>
>> Error 46 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 272
>>
>> Error 47 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 273
>>
>> Error 48 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 274
>>
>> Error 49 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 283
>>
>> Error 50 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 283
>>
>> Error 51 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 298
>>
>> Error 52 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 299
>>
>> Error 53 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 310
>>
>> Error 54 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 310
>>
>> Error 55 error C3861: 'min': identifier not found
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 322
>>
>> Error 56 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 323
>>
>> Error 57 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 324
>>
>> Error 58 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 325
>>
>> Error 59 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 326
>>
>> Error 60 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 335
>>
>> Error 61 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 335
>>
>> Error 62 error C3861: 'min': identifier not found
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 347
>>
>> Error 63 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 348
>>
>> Error 64 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 349
>>
>> Error 65 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 360
>>
>> Error 66 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 360
>>
>> Error 67 error C3861: 'max': identifier not
>> found c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 372
>>
>> Error 68 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 373
>>
>> Error 69 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 374
>>
>> Error 70 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 375
>>
>> Error 71 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 376
>>
>> Error 72 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 385
>>
>> Error 73 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 385
>>
>> Error 74 error C3861: 'max': identifier not
>> found c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 397
>>
>> Error 75 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 398
>>
>> Error 76 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 399
>>
>> Error 77 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 400
>>
>> Error 78 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 401
>>
>> Error 79 error C2504: 'vcl_numeric_limits' : base class
>> undefined c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 410
>>
>> Error 80 error C2143: syntax error : missing ',' before
>> '<' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 410
>>
>> Error 81 error C3861: 'max': identifier not
>> found c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 422
>>
>> Error 82 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 423
>>
>> Error 83 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 424
>>
>> Error 84 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 425
>>
>> Error 85 error C2065: 'val' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\igstk\itknumerictraits.h 426
>>
>> Error 86 error C2065: 'vcl_complex' : undeclared
>> identifier c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 371
>>
>> Error 87 error C2062: type 'float' unexpected
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 371
>>
>> Error 88 error C2143: syntax error : missing ';' before
>> '{' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 372
>>
>> Error 89 error C2143: syntax error : missing ';' before
>> '}' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 387
>>
>> Error 90 error C2062: type 'float' unexpected
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 391
>>
>> Error 91 error C2062: type 'float' unexpected
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 391
>>
>> Error 92 error C2143: syntax error : missing ';' before
>> '{' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 391
>>
>> Error 93 error C2062: type 'double'
>> unexpected c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 395
>>
>> Error 94 error C2143: syntax error : missing ';' before
>> '{' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 396
>>
>> Error 95 error C2143: syntax error : missing ';' before
>> '}' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 411
>>
>> Error 96 error C2062: type 'double'
>> unexpected c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 415
>>
>> Error 97 error C2062: type 'double'
>> unexpected c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 415
>>
>> Error 98 error C2143: syntax error : missing ';' before
>> '{' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 415
>>
>> Error 99 error C2062: type 'long double' unexpected
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 419
>>
>> Error 100 error C2143: syntax error : missing ';' before
>> '{' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 420
>>
>> Error 101 error C2143: syntax error : missing ';' before
>> '}' c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 435
>>
>> Error 102 error C2062: type 'long double' unexpected
>> c:\program files (x86)\microsoft visual studio
>> 8\vc\include\vnl\vnl_numeric_traits.h 439
>>
>> Error 103 fatal error C1003: error count exceeds 100;
>> stopping compilation c:\program files (x86)\microsoft visual
>> studio 8\vc\include\vnl\vnl_numeric_traits.h 439
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> IGSTK-Users mailing list
>> IGSTK-Users at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache.txt
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20080404/acd1d484/attachment-0002.txt>
More information about the IGSTK-Users
mailing list