[Insight-users] Unsuccessful ITK build
Luis Ibanez
luis.ibanez at kitware.com
Wed Jan 17 17:04:43 EST 2007
Hi Ann,
ITK builds fine with Visual C++ 8.0 express. You
will find a nightly build in the Dashboard for
dash19.kitware
Your problem seem to be related to the configuration
performed by CMake.
It is very likely that your paths are too long.
When the sources of ITK are put in directory with
long paths, the command lines that CMake prepares
for Visual Studio tend to reach the length limit
of the compiler command line arguments.
When that happens, the command line is *silently*
truncated and results on the compiler missing many
of the directories where it should look for headers.
You may want to try putting the sources of ITK in
a directory that is closer to the root of the
filesystem (e.g. C:\ITK3.0\)
Regards,
Luis
-----------------
Ann Choe wrote:
> Hello all,
>
>
> I am having trouble installing ITK and was wondering if you could help.
>
> I have so far:
> 1. installed cmake
> 2. installed vtk sucessfully, using cmake
>
> I assumed that installing itk would be of a same process as vtk, and
> that is exactly what I did. (used cmake for configuring/generating,
> and compiled, release mode.) I have downloaded and installed visual
> c++ 8.0 express from microsoft (+ sdk + service pack1) for compiling
> purposes (yesterday).
>
> windows xp
> visual c++ 8.0 express (free)
> cmake: 2.4.
> vtk: 5.0.2
> itk: 3.0.0
>
>
>
> There were many errors generated during cmake process. All of them
> were not the same, but one example would be:
>
>
> Performing Test VXL_C_MATH_HAS_LROUND failed with the following output:
>
>
> Microsoft (R) Visual C++ Express Edition Version 8.0.50727.762.
>
> Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
>
> ------ Build started: Project: cmTryCompileExec, Configuration: Debug
> Win32 ------
>
> Compiling...
>
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
> for 80x86
>
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> cl /Od /D "_MBCS" /FD /EHsc /RTC1 /MDd
> /Fo"cmTryCompileExec.dir\Debug\\" /Fd"Debug/cmTryCompileExec.pdb" /W3
> /c /Zi /TP /DWIN32 /D_WINDOWS /Zm1000 -DNOMINMAX
> -DVXL_C_MATH_HAS_LROUND /D_DEBUG -DCMAKE_INTDIR=\"Debug\"
>
> "..\..\..\InsightToolkit-3.0.0\Utilities\vxl\config\cmake\config\vxl_platform_tests.cxx"
>
>
> vxl_platform_tests.cxx
>
> ..\..\..\InsightToolkit-3.0.0\Utilities\vxl\config\cmake\config\vxl_platform_tests.cxx(1069)
>
> : error C3861: 'lround': identifier not found
>
> Build log was saved at "file://c:\Program
> Files\ITK30\InsightToolkit-3.0.0_bin\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"
>
>
> cmTryCompileExec - 1 error(s), 0 warning(s)
>
> ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
>
>
>
> But the biggest problem is, after I build the ITK (ALL_BUILD),
> ITK_Common.lb is not generated. It's not in the folder, period, and
> subsequent build of all the rest of the files fail. e.g.,
>
>
> ------ Build started: Project: ImageReadWrite, Configuration: Release
> Win32 ------
> Compiling...
> ImageReadWrite.cxx
> Linking...
> LINK : fatal error LNK1181: cannot open input file 'ITKCommon.lib'
> Build log was saved at "file://c:\Program
> Files\ITK30\InsightToolkit-3.0.0_bin\Examples\IO\ImageReadWrite.dir\Release\BuildLog.htm"
>
> ImageReadWrite - 1 error(s), 0 warning(s)
>
>
>
> I am a newbie to this world of ITK, and I am lost. Could someone help?
>
>
>
>
>
> Thank you.
>
> Ann
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list