[Rtk-users] RTK compilation

Simon Rit simon.rit at creatis.insa-lyon.fr
Wed Jun 26 01:24:14 EDT 2019


Hi Howard,
Sorry to hear you're struggling. You need to set ITK_DIR to the location of
your ITK build. It may have been removed from cmake but it's provided by
ITK.
The simplest is to build the latest ITK 5.0.0 and to simply turn on the
option Module_RTK.
Simon

On Wed, Jun 26, 2019 at 12:55 AM Howard <lomahu at gmail.com> wrote:

> Hi,
>
> I followed the instructions on the RTK wiki page to build the latest
> RTK. With upgrading ITK to v4.13.0, during the build I encountered the
> following error:
>
> CMake Error at CMakeLists.txt:94 (find_package):
>    By not providing "FindITK.cmake" in CMAKE_MODULE_PATH this project has
>    asked CMake to find a package configuration file provided by "ITK", but
>    CMake did not find one.
>
>    Could not find a package configuration file provided by "ITK" (requested
>    version 4.12.0) with any of the following names:
>
>      ITKConfig.cmake
>      itk-config.cmake
>
>    Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set
> "ITK_DIR"
>    to a directory containing one of the above files.  If "ITK" provides a
>    separate development package or SDK, be sure it has been installed.
>
> I searched online and found some people said "The file FindITK.cmake
> was removed in CMake 3.0.", but RTK wiki page never said anything like
> that.
>
> With the older version RTK, I never had this trouble building RTK. It
> is supposed to be very smooth process but becomes so frustrating!!!!
> Can anyone out there help me out?
>
> Thanks,
> Howard
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> https://public.kitware.com/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20190626/39eaf649/attachment.html>


More information about the Rtk-users mailing list