[Insight-users] Re: is it the right way?

Luis Ibanez luis.ibanez@kitware.com
Wed, 30 Apr 2003 09:27:35 -0400


Hi Yasser,

It looks like you took the DeformableRegistration1.cxx
out of its current directory

        Image/Examples/Registration

Most of the examples have been configured to be built
as part of the global ITK build. This is just fon the
convenience of testing. Otherwise you will have to build
example by example moving it to independent directories.

You can certainly build any example by itself, but in order
to do that you have to modify its corresponding CMakeLists.txt.

In this case it should look very similar to the CMakeLists.txt
file available in


              Insight/Examples/Installation.


for example:



PROJECT(myProject)

FIND_PACKAGE(ITK)
IF(ITK_FOUND)
   INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
   MESSAGE(FATAL_ERROR
           "Cannot build without ITK.  Please set ITK_DIR.")
ENDIF(ITK_FOUND)

ADD_EXECUTABLE(DeformableRegistration1 DeformableRegistration1.cxx )

TARGET_LINK_LIBRARIES(HelloWorld ITKCommon  ITKIO)



NOTE that ITKIO is added to the list of libraries to link with.


Regards,



    Luis


-----------------------
yasser salman wrote:
> 
> hi all..,
> i compile the hello world and every thing is ok..,
> when i build the DeformableRegistration1.dsw (under VC++) the following error accure..
> 
> 1- fatal error C1083: Cannot open include file: 'itkImageFileReader.h': No such file or directory
> i defined the path to the compiler as a normal way (tools->option-> directories and put the file Path
> C:\...\INSIGHTTOOLKIT-1.2.0\CODE\IO
> it's ok and this error disappeared..
> 
> 2- Anther fatal error C1083: Cannot open include file: 'vnl/vnl_math.h': No such file or directory
> i can\t find this file  i only found vnl_math.h ok i delete vnl/ (i think it related to the directory)
> and it's ok the error message disappeared!
> 3- anthor one: fatal error C1083: Cannot open include file: 'vnl/vnl_vector_ref.h': No such file or directory
> ok i can solve this problems but it's the right way????
> yasser..
> 
> 
> _____________________________________________________________
> Your own email, free website, free software and services at 
> 
> http://www.uscomputer.net/portal.htm 
> - courtesy of U.S. Computer Corporation -
> 
> _____________________________________________________________
> Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
>