[Insight-developers] make install fails with ITK-3.8 and CMake 2.6.0

Brad King brad.king at kitware.com
Thu Jul 31 08:56:10 EDT 2008


Tom Vercauteren wrote:
> I guess it only fails on my machine and not on the dashboard
> submission because I was using the same directory to build ITK and to
> install it.
[snip]
> Changing the CMAKE_INSTALL_PREFIX to a different directory than my
> path_to_build fixed the problem.
[snip]
> Using my initial process, I have added the message between the make
> and make install steps. Here is the output:
> 
> [/usr/local/mkt-dev/install/itk-3.8.0-patched/RelWithDebInfo/bin/itkTestDriver]
> CMake Error at Code/IO/cmake_install.cmake:43 (FILE):
>   file INSTALL cannot find file
>   "/usr/local/mkt-dev/install/itk-3.8.0-patched/RelWithDebInfo/bin/itkTestDriver"

Okay, this is definately *not* a supported case.  You're asking CMake to
install a file on top of itself.  You'll have to choose a different
install location.  I usually do the following for third party software
that I build in my own prefix:

- source code in $prefix/src/project
- build tree in $prefix/src/project-build
- installation in $prefix/*

> The bug report is here:
> http://www.itk.org/Bug/view.php?id=7432

I think the fix to the bug will just be to add a check to the
CMakeLists.txt file to disallow this case.

-Brad


More information about the Insight-developers mailing list