[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help in cmake / itk issue needed (Was: Plastimatch ready for upload)



Hello, 

it seems one message was not sent to the list ... 

On Sun, 2015-05-17 at 21:57 +0200, Andreas Tille wrote:
> Hi,
> 
> On Sun, May 17, 2015 at 12:43:27PM -0400, Greg Sharp wrote:
> > 1) The location of ITKConfig.cmake in ITK 3.20 is 
> > /usr/lib/InsightToolkit.  This seems not part of the 
> > normal search path.
> > 
> > 

and because the message was not sent to the list I'm a bit puzzled: 
The log 

https://buildd.debian.org/status/fetch.php?pkg=plastimatch&arch=armhf&ver=1.6.1%2Bdfsg-1&stamp=1431585994&file=log

seems to show  that ITK is actually found with cmake 3.2:  

>>>>
CMake Warning at CMakeLists.txt:627 (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" 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.


-- ITK_VERSION =  found
<<<< 

Although without a version string. 


> > 2) In ITK 3.0, there was a FindITK.cmake module.
> > This module had considered the search path for (1).
> > But FindITK.cmake was removed in ITK 3.1 and later.

Do you actually mean cmake 3.0 and cmake 3.1? Indeed, at least up until
2.8.12 cmake had a FindITK module.

>
> > Therefore, something more is needed to use ITK 3.20 
> > with cmake 3.2.  Maybe this:
> > cmake -DCMAKE_PREFIX_PATH=/usr/lib/InsightToolkit

It would probably be better to set ITK_DIR (if ITK is indeed not found).
CMAKE_PREFIX_PATH works like the PATH variable, and may contain other
paths. 

> Is this possibly a bug in itk?  
Well, yes in the sense that ITK < 4.? doesn't work with newer versions
of cmake. The problem is that upstream usually only supports the latest
version. Which brings us back to the problem that ITK3.20 should at some
point be dropped, which in turn would mean that some dependencies would
have to drop support for architectures where ITK4 is not available. 


> I was previously wondering where to put
> cmake files (of other libs) but it was not clear to me.  Do you know a
> location where the file could be properly found without any additional
> PATH setting?
I think it is "/usr/lib/cmake". At least ITK-4.7 installs its files
there in the the ITK-4.7 subdirectory. 

Best,  
Gert  




Reply to: