[Insight-users] Problem installing ITK 4.2.0 on Mac OS 10.8

Rehan Ali ali.bobby at gmail.com
Fri Sep 7 05:43:01 EDT 2012


I'm having trouble building the ITK 4.2.0 source (downloaded from the
ITK site) on a Macbook Pro with Mountain Lion. I've tried using
cmake-2.8.8 (Macports version) and cmake-2.8.9 (downloaded GUI from
official site), and both generate the same issue.

I've set up a 'build' subdirectory in the ITK directory as my target.
When I press "configure" in the cmake GUI, I get the following error
message:

Error in configuration process, project files may be invalid

The log at the bottom ends with the following:

[snip]
Enabled ITKVideoFiltering, requested by ITK_BUILD_ALL_MODULES.
Filter ZLIB is ON
CMake Error at Utilities/InstallTest/CMakeLists.txt:2 (if):
  if given arguments:
    "x/usr/local" "MATCHES"
"^x/Users/rehanali/Code/C++/InsightToolkit-4.2.0/build/InstallTest\$"
  Regular expression
  "^x/Users/rehanali/Code/C++/InsightToolkit-4.2.0/build/InstallTest$" cannot
  compile
Configuring incomplete, errors occurred!

Does this mean I have to build into /usr/local? I didn't see anything
about this in the accompanying installation instructions.

When I run
   cmake -G "Unix Makefiles" ..
using the command line version, I get the above error again, but the
output is more detailed and I find other issues appearing before that.
I'm not sure whether or not these are related:

-- Performing Test C_HAS_WARNING-Wno-long-double - Failed
-- Performing Test CXX_HAS_WARNING-Wstrict-null-sentinel - Failed
-- Checking whether struct stat has st_mtim member - no
-- Checking whether C++ compiler has '__int64' - no
-- Check size of __int64 - failed
-- Checking whether CXX compiler has environ in stdlib.h - no
-- Performing Test VCL_STATIC_CONST_INIT_NO_DEFN - Failed
-- Performing Test VCL_STATIC_CONST_INIT_FLOAT - Failed
-- Performing Test VCL_OVERLOAD_CAST - Failed
-- Performing Test VCL_NULL_TMPL_ARGS - Failed
-- Performing Try-Run Test VCL_HAS_TEMPLATE_SYMBOLS - Test Compilation Failed
-- Performing Test VCL_NEEDS_NAMESPACE_STD - Failed
-- Performing Test VXL_APPLE_HAS_ISNAND - Failed
-- Performing Test VXL_HAS_ALIGNED_MALLOC
-- Performing Test VXL_HAS_ALIGNED_MALLOC - Failed
-- Performing Test VXL_HAS_MINGW_ALIGNED_MALLOC - Failed
-- Performing Test VXL_HAS_POSIX_MEMALIGN - Failed
-- Looking for finitef - not found.
-- Looking for finitel - not found.
-- Looking for finite - not found.
-- Looking for 96-bit float. Not found.
-- Looking for tell - not found
-- Looking for C++ include type_traits - not found
-- Looking for include files sys/time.h, winsock.h - not found.
-- Looking for include files sys/time.h, byteswap.h - not found.
-- Looking for _stricmp - not found
-- Looking for _strnicmp - not found
-- Looking for _snprintf - not found
-- Performing Test GDCM_HAVE_WCHAR_IFSTREAM - Failed
RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.

Any ideas on how to resolve this?

All the best,

Rehan


More information about the Insight-users mailing list