[Insight-users] Setting ITK_DIR

David Doria daviddoria+itk at gmail.com
Fri Dec 18 07:28:23 EST 2009


On Fri, Dec 18, 2009 at 6:37 AM, michiel mentink <
michael.mentink at st-hughs.ox.ac.uk> wrote:

> 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
>>
>>
You should edit your ~/.bashrc and add:

export ITK_DIR="/home/doriad/bin/Insight"

Where clearly "/home/doriad/bin/Insight" should be replaced by the path to
your ITK installation.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091218/0df42302/attachment.htm>


More information about the Insight-users mailing list