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

Luis Ibanez luis.ibanez at kitware.com
Thu Jul 31 09:00:22 EDT 2008


Hi Tom,

Thanks for the additional information.


Installing ITK in the same directory where it was build
doesn't quite make sense, and I can see why that would
easily create problems.


Maybe we should simply add a check in the CMakeLists.txt
file to prevent users from installing in the same build
directory.



    Regards,


       Luis


-----------------------
Tom Vercauteren wrote:
> Hi All,
> 
> Below are some coments.
> 
> 
> 
>>From Luis:
> 
>>For some reason this is not indicated in our Nightly installation test:
> 
> 
>>From Brad:
> 
>>What is CMAKE_INSTALL_PREFIX?
> 
> 
> 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.
> 
> My process was thus
>  1) cd path_to_build
>  2) ccmake path_to_sources
>        CMAKE_INSTALL_PREFIX     path_to_build
>        BUILD_SHARED_LIBS           ON
>        BUILD_TESTING                    OFF
>        ITK_USE_REVIEW                 ON
>  3) make
>  4) make install
> 
> Changing the CMAKE_INSTALL_PREFIX to a different directory than my
> path_to_build fixed the problem.
> 
> 
> 
>>From Brad:
> 
>>Do you use DESTDIR during the
>>installation?  Can you please add a MESSAGE command in the install
>>script right before the rpath check line:
>>
>>MESSAGE("[$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/itkTestDriver]")
>>
>>and report the output?
> 
> 
> I don't think I use DESTDIR since I haven't heard of it before ;)
> 
> 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"
>   to install.
> Call Stack (most recent call first):
>   Code/cmake_install.cmake:43 (INCLUDE)
>   cmake_install.cmake:50 (INCLUDE)
> 
> 
> make: *** [install] Error 1
> 
> 
> 
>>From Bill:
> 
>>Can you try cmake 2.6.1 RC 13 from here:
> 
> 
> Just did, and got the same error.
> 
> 
> 
>>From Luis:
> 
>>Just to be safe, please log a bug report under Version ITK-3-8,
> 
> 
> The bug report is here:
> http://www.itk.org/Bug/view.php?id=7432
> 
> 
>>From Luis:
> 
>>Note that the same bug should then exist in our CVS trunk.
> 
> 
> I guess so, the thing is I usually don't install the CVS trunk.
> 
> 
> Regards,
> Tom
> 


More information about the Insight-developers mailing list