[Insight-users] Error during install (3.6.0)

Steve M. Robbins steve at sumost.ca
Sun May 25 22:48:15 EDT 2008


On Sun, May 25, 2008 at 07:25:09PM -0400, Luis Ibanez wrote:
>
> Hi Olivier,
>
>
>        It works for me...   :-/

Dumb question: did you configure for python wrapping using cableswig?



> From your error message it actually looks like you
> are not doing this from a build that you configured
> with CMake 2.6 from the begining.

That's what the message implies, but it isn't true.
I have the same problem, built from scratch using
cmake 2.6 [1].

The error message is quite misleading, since it doesn't come from a
generated file (necessarily).  In the case in point, it actually is
generated, but only to subsitute in the destination directory.  The
relevant bit ("COMPONENTS") is hardcoded, not generated:


---- Excerpt from Wrapping/CSwig/pythonfiles_install.cmake.in ----

FILE(INSTALL
  DESTINATION "@CMAKE_INSTALL_PREFIX@@ITK_INSTALL_LIB_DIR@"
  TYPE FILE
  COMPONENTS "RuntimeLibraries"
  FILES ${ITK_PYTHON_FILES})

---- Wrapping/CSwig/pythonfiles_install.cmake.in ----


I wonder if the message really should read "... generated for an older
version of CMake." instead of "generated with".

-Steve

[1] http://buildd.debian.org/fetch.cgi?&pkg=insighttoolkit&ver=3.6.0-1&arch=amd64&stamp=1211586393&file=log



> -----------------------
> Olivier Tournaire wrote:
>> Hi all,
>>
>> I am currently trying to build ITK, but it fails during install.
>> CMake version: cmake version 2.6-patch 0
>> g++ version : g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
>> Ubuntu Gutsy
>>
>> It builds correctly, but when I do 'sudo make install', I get the  
>> following message:
>>
>> "[...]
>> Linking CXX executable CMakeFiles/CMakeRelink.dir/itkTestDriver
>> Install the project...
>> -- Install configuration: ""
>> CMake Error at cmake_install.cmake:35 (FILE):
>>   file INSTALL called with old-style COMPONENTS argument.  This script was
>>   generated with an older version of CMake.  Re-run this cmake version on
>>   your build tree.
>> "

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080525/d973e67a/attachment.pgp>


More information about the Insight-users mailing list