[Insight-users] Problem for building ITK examples out of ITK tree

Luis Ibanez luis.ibanez@kitware.com
Sat, 22 Feb 2003 13:27:25 -0500


Hi Neha,

Thanks for providing more information on your problem.

It seems that you are only having trouble building
applications out of the ITK source tree, is this the
actual problem ?


Could you plesase let us know about the following:

1) Did you succed compiling the basic ITK libraries ?
2) Did the test and examples in the ITK source tree
    compiled ?

---

If the basic components of ITK are compiling in your
system, then the problem for building out-of-source
application should be related with the configuration
done with CMake.

For example, for building the "BasicIOAndFilter" application
out of the ITK source tree you have to modify its CMakeLists.txt
file and make sure that you put the file in a directory
that is independent of both ITK source and binary directories.
The modifications to be made in the CMakeLists.txt file are
indicated as comments in the file itself.

Then, when you configure with CMake, you have to indicate
where the ITK binary dir is installed. You provide this in
the ITK_DIR variable.

Please confirm is the basic components of ITK are building
in your system, so we can localize the problem.


Thanks


   Luis


-----------------------------------
Neha D wrote:
> Hi Luis,
> 
> Thanks for the reply.
> 
> By this time, I haven't been successful using ITK to build simple 
> applcation by using ImageIO reader and writer. Also, I could not build 
> examples in ITK out of the ITK source tree. Your help is going be very 
> useful to me.
> 
> I am using follwoing versions of CMAKE and ITK
> 
> Cmake - version 1.4 patch 7
> 
> Itk        - Release 1.0.0
> 
> When I try to build BasicIOAndFilter example using cmake, it creates 
> ALL_BUILD. When I open BasicIOAndFilter.dsw and try to build it in MS 
> visual studio 6.0
> 
> I get following messages:
> 
> ****************************************************************************** 
> 
> 
> error C2039: 'type_info' : is not a member of 'std'
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\IO\itkImageIOBase.h(114) : error 
> C2039: 'type_info' : is not a member of 'std'
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\IO\itkImageIOBase.h(214) : error 
> C2039: 'type_info' : is not a member of 'std'
> 
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\IO\itkPNGImageIO.h(57) : error C2039: 
> 'type_info' : is not a member of 'std'
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(328) : 
> error C2653: 'Detail' : is not a class or namespace name
> 
>         
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(337) : 
> see reference to class template instantiation 'SameDimension<D1,D2>' 
> being compiled
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(328) : 
> error C2143: syntax error : missing ';' before '<'
>         
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(337) : 
> see reference to class template instantiation 'SameDimension<D1,D2>' 
> being compiled
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(328) : 
> error C2059: syntax error : '<'
> 
>         
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(337) : 
> see reference to class template instantiation 'SameDimension<D1,D2>' 
> being compiled
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(328) : 
> error C2238: unexpected token(s) preceding ';'
> 
>         
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(337) : 
> see reference to class template instantiation 'SameDimension<D1,D2>' 
> being compiled
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(329) : 
> error C2653: 'Detail' : is not a class or namespace name
> 
>         
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(337) : 
> see reference to class template instantiation 'SameDimension<D1,D2>' 
> being compiled
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(329) : 
> error C2059: syntax error : '<'
>         C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h
> 
> (337) : see reference to class template instantiation 
> 'SameDimension<D1,D2>' being compiled
> 
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(329) : 
> error C2238: unexpected token(s) preceding ';'
> 
>         
> C:\ITK_1\INSIGHTTOOLKIT-1.0.0\CODE\COMMON\itkConceptChecking.h(337) : 
> see reference to class template instantiation 'SameDimension<D1,D2>' 
> being compiled
> 
> ***************************************************************************** 
> 
> 
>  
> 
>  */Luis Ibanez <luis.ibanez@kitware.com>/* wrote:
> 
>     Hi Neha,
> 
> 
>     We will be glad to help you
>     if you provide some more specific information.
> 
>     For example,
> 
>     Could you please post the error messages
>     that you get ?
> 
>     It is pretty hard to imagine what the problem
>     could be without even having access to the
>     error messages...
> 
>     Could you please also let us know about:
> 
>     1) The version of ITK that you are running ?
>     2) The version of CMake that you are using ?
> 
> 
>     Thanks
> 
> 
>     Luis
> 
> 
>     ----------------------------
> 
>     Neha D wrote:
> 
>      > Hi All,
>      >
>      > I am getting lots of errors while building the example program using
>      > MSVC 6.0 compiler, though cmake build is successful.
>      >
>      > please help.
>      >
>      > neha
>      >
>      >
> 
> 
> 
>     _______________________________________________
>     Insight-users mailing list
>     Insight-users@public. kitware.com
>     http://public.kitware.com/mailman/listinfo/insight-users
> 
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center 
> <http://rd.yahoo.com/finance/mailtagline/*http://taxes.yahoo.com/> - 
> forms, calculators, tips, and more