[Insight-users] Setting ITK_DIR

michiel mentink michael.mentink at st-hughs.ox.ac.uk
Fri Dec 18 06:37:01 EST 2009


hi Sravan,

first find out where FindITK is, open it, and in that file, you'll find some
directories that will be searched if the cmake can't find ITK
instantly. To that list, add:

#added by Sravan
/home/path/mypath

and obviously change mypath to whereever you'll find ITKConfig.cmake (find
that with locate ITKConfig.cmake in linux)

You'll find a similar description on my webpage:
https://sites.google.com/site/michielmentink/programming/cmake/adding-libraries

good luck,

Michael


On 12/18/09, sravan kumar <kumar.sravan09 at gmail.com> wrote:
>
> hi all,
>
> I am using Fedora 10 linux.I was able to install ITK and cmake
> successfully.But when i tried to cmake the Helloworld program in
> Examples/Installation directory i got an error like this:
>
> CMake error at /usr/local/share/cmake-2.8/Modules/FindITK.cmake:97
>
> Please set the ITK_DIR to the directory containing ITKConfig.cmake. This is
> either the root of the build tree, or PREFIX/lib/InsightToolKit  during the
> Installation.
>
> Can some one tell me the solution.
>
>
> --
> With Best Regards,
>
> Y.Sravan Kumar
> II M.Tech(CS),
> Sri Sathya Sai University,
> PRASHANTINILAYAM - 515134
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091218/c372d3d9/attachment.htm>


More information about the Insight-users mailing list