[Insight-users] Problem running ImageRegistratation1...

Balaji Gandhi bgandhi at mail.ucf.edu
Tue Apr 18 17:20:12 EDT 2006


Hi Luis/Eric/All,

Thanks for your inputs. From my experience:-

You need to add:-
# This is to find ITK
SET(ITK_DIR "{MY_PATH}/Insight-binary")

after:-
PROJECT(Registration)

to compile any code "outside the Insight directory". Is that right?

Thanks,
Balaji

On 4/18/06, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>
> Hi Eric,
>
> Here is a CMakeLists.txt file that you can use for
> configuring and building this Registration example:
>
>
> PROJECT(Registration)
>
>
> FIND_PACKAGE(ITK REQUIRED)
> IF(ITK_FOUND)
>    INCLUDE(${ITK_USE_FILE})
> ENDIF(ITK_FOUND)
>
> ADD_EXECUTABLE(ImageRegistration1 ImageRegistration1.cxx )
>
> TARGET_LINK_LIBRARIES(ImageRegistration1
>      ITKAlgorithms ITKBasicFilters ITKIO ITKCommon)
>
>
>
> Copy this CMakeLists.txt file and the ImageRegistration1.cxx
> in a directory and configure it with CMake.
>
>
>
>    Regards,
>
>
>       Luis
>
>
>
> ==============
> Eric John wrote:
> > Hello,
> >
> > Problem running imageregistration1...Not clear on the procedure? I tried
> > two different ways:
> >
> > I created new folder to run in, then copied Cmakelists.txt and the .cxx
> > file for imageregistration1, run cmake, when I try to run in C++ it
> > attepts to build the whole Registration folder?
> >
> > I also tried copying the whole Registration folder into the new folder,
> > run Cmake with source and binary to this folder, then I still get errors
> > when running program in C++?
> >
> > Thanks for any advice,
> >
> > Eric
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>

--
=========================
Balaji Gandhi
Research Associate
Biomolecular Science Center
University of Central Florida
4000 Central Florida Blvd.
BMS building, Room 223
Orlando, FL  32816-2364
Phone: 407-823-3387
Fax: 407-823-0956
URL: imgem.ucf.edu
=========================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060418/8a3498a2/attachment.html


More information about the Insight-users mailing list