[Insight-users] compilation of ITK with Wrap Python on fails on osx 10.8.4

Juan Cardelino juan.cardelino at gmail.com
Wed Jul 10 08:46:53 EDT 2013


When enabling Wrap Python I'm not able to compile ITK with clang on osx.
Details abouT my setup follows. The error message is at the end of the
e-mail.

CMAKE OPTIONS
=================
BUILD_SHARED_LIBS = ON
CMAKE_BUILD_TYPE = Release
ITK_USE_REVIEW = ON
ITK_WRAPPING = ON
ITK_WRAP_PYTHON = ON

COMPILER
=========
clang --version
Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix


ITK VERSION (GIT)
===============
juan at invasor : ~/juanc/soft/develop/ITK
> git tag -l
v4.4.0
v4.4rc01
v4.4rc02

juan at invasor : ~/juanc/soft/develop/ITK
> git log --pretty=format:"%H" -1
d68d7a262bfc2ec40164670832d0d1478cf3ec65

ERROR MESSAGE
*===============*

Scanning dependencies of target ITKCommonGccXML
[ 22%] Generating vcl_complex.xml
In file included from /usr/include/c++/4.2.1/climits:50,
                 from /usr/include/c++/4.2.1/bits/stl_algobase.h:67,
                 from /usr/include/c++/4.2.1/bits/char_traits.h:46,
                 from /usr/include/c++/4.2.1/string:47,
                 from
/Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkMacro.h:46,
                 from
/Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkLightObject.h:21,
                 from
/Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkObject.h:31,
                 from
/Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkCommand.h:21,
                 from
/Users/juan/juanc/soft/build/ITK/Wrapping/Modules/ITKCommon/vcl_complex.cxx:1:
/usr/bin/../lib/clang/4.0/include/limits.h:37:54: error: missing binary
operator before token "("
In file included from /usr/include/c++/4.2.1/bits/postypes.h:49,
                 from /usr/include/c++/4.2.1/iosfwd:49,
                 from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,
                 from /usr/include/c++/4.2.1/bits/char_traits.h:46,
                 from /usr/include/c++/4.2.1/string:47,
                 from
/Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkMacro.h:46,
                 from
/Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkLightObject.h:21,
                 from
/Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkObject.h:31,
                 from
/Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkCommand.h:21,
                 from
/Users/juan/juanc/soft/build/ITK/Wrapping/Modules/ITKCommon/vcl_complex.cxx:1:
/usr/bin/../lib/clang/4.0/include/stdint.h:32:54: error: missing binary
operator before token "("
make[2]: *** [Wrapping/Modules/ITKCommon/vcl_complex.xml] Error 1
make[1]: ***
[Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonGccXML.dir/all] Error 2
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130710/dc835537/attachment.htm>


More information about the Insight-users mailing list