[Insight-users] Setting ITK_DIR

Bill Lorensen bill.lorensen at gmail.com
Fri Dec 18 10:20:15 EST 2009


When you run ccmake to configure project, you can set ITK_DIR through
the interface. I don't recommend changing your path or setting ITK_DIR
in your .bashrc. Although either will probably work.,

On Fri, Dec 18, 2009 at 7:28 AM, David Doria <daviddoria+itk at gmail.com> wrote:
>
> 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
>
> _____________________________________
> 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
>
>


More information about the Insight-users mailing list