[Insight-users] Error during install (3.6.0)
Steve M. Robbins
steve at sumost.ca
Sun May 25 22:31:12 EDT 2008
On Sun, May 25, 2008 at 07:01:09PM +0200, 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
> 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.
> Could you please help me ?
I have the same problem and solved it by simply removing COMPONENTS:
--- upstream/InsightToolkit-3.6.0/Wrapping/CSwig/pythonfiles_install.cmake.in 2007-10-10 10:14:44.000000000 -0500
+++ insighttoolkit-3.6.0/Wrapping/CSwig/pythonfiles_install.cmake.in 2008-05-25 21:25:00.000000000 -0500
@@ -10,5 +10,4 @@
- COMPONENTS "RuntimeLibraries"
I'm not sure what the consequences of this are, since FILE(INSTALL...
is not documented in cmake 2.6 nor in 2.4. The python files do,
however, get properly installed.
Hopefully one of the ITK folks more conversant in CMake will respond
with a proper fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the Insight-users