<div dir="ltr">Matt,<div>      Thanks for the answer. I got stuck with other things and missed this e-mail. I will try that as soon as possible. Thanks.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jul 17, 2013 at 1:29 AM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Juan,<br>
<br>
It is important to use the same compiler that was used to build the<br>
Python you are building against (see the CMake cache variables<br>
PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR, and PYTHON_LIBRARY).<br>
<br>
HTH,<br>
Matt<br>
<div><div class="h5"><br>
On Wed, Jul 10, 2013 at 8:46 AM, Juan Cardelino<br>
<<a href="mailto:juan.cardelino@gmail.com">juan.cardelino@gmail.com</a>> wrote:<br>
> When enabling Wrap Python I'm not able to compile ITK with clang on osx.<br>
> Details abouT my setup follows. The error message is at the end of the<br>
> e-mail.<br>
><br>
> CMAKE OPTIONS<br>
> =================<br>
> BUILD_SHARED_LIBS = ON<br>
> CMAKE_BUILD_TYPE = Release<br>
> ITK_USE_REVIEW = ON<br>
> ITK_WRAPPING = ON<br>
> ITK_WRAP_PYTHON = ON<br>
><br>
> COMPILER<br>
> =========<br>
> clang --version<br>
> Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)<br>
> Target: x86_64-apple-darwin12.4.0<br>
> Thread model: posix<br>
><br>
><br>
> ITK VERSION (GIT)<br>
> ===============<br>
> juan@invasor : ~/juanc/soft/develop/ITK<br>
>> git tag -l<br>
> v4.4.0<br>
> v4.4rc01<br>
> v4.4rc02<br>
><br>
> juan@invasor : ~/juanc/soft/develop/ITK<br>
>> git log --pretty=format:"%H" -1<br>
> d68d7a262bfc2ec40164670832d0d1478cf3ec65<br>
><br>
> ERROR MESSAGE<br>
> ===============<br>
><br>
> Scanning dependencies of target ITKCommonGccXML<br>
> [ 22%] Generating vcl_complex.xml<br>
> In file included from /usr/include/c++/4.2.1/climits:50,<br>
>                  from /usr/include/c++/4.2.1/bits/stl_algobase.h:67,<br>
>                  from /usr/include/c++/4.2.1/bits/char_traits.h:46,<br>
>                  from /usr/include/c++/4.2.1/string:47,<br>
>                  from<br>
> /Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkMacro.h:46,<br>
>                  from<br>
> /Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkLightObject.h:21,<br>
>                  from<br>
> /Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkObject.h:31,<br>
>                  from<br>
> /Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkCommand.h:21,<br>
>                  from<br>
> /Users/juan/juanc/soft/build/ITK/Wrapping/Modules/ITKCommon/vcl_complex.cxx:1:<br>
> /usr/bin/../lib/clang/4.0/include/limits.h:37:54: error: missing binary<br>
> operator before token "("<br>
> In file included from /usr/include/c++/4.2.1/bits/postypes.h:49,<br>
>                  from /usr/include/c++/4.2.1/iosfwd:49,<br>
>                  from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,<br>
>                  from /usr/include/c++/4.2.1/bits/char_traits.h:46,<br>
>                  from /usr/include/c++/4.2.1/string:47,<br>
>                  from<br>
> /Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkMacro.h:46,<br>
>                  from<br>
> /Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkLightObject.h:21,<br>
>                  from<br>
> /Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkObject.h:31,<br>
>                  from<br>
> /Users/juan/juanc/soft/develop/ITK/Modules/Core/Common/include/itkCommand.h:21,<br>
>                  from<br>
> /Users/juan/juanc/soft/build/ITK/Wrapping/Modules/ITKCommon/vcl_complex.cxx:1:<br>
> /usr/bin/../lib/clang/4.0/include/stdint.h:32:54: error: missing binary<br>
> operator before token "("<br>
> make[2]: *** [Wrapping/Modules/ITKCommon/vcl_complex.xml] Error 1<br>
> make[1]: *** [Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonGccXML.dir/all]<br>
> Error 2<br>
> make: *** [all] Error 2<br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
</blockquote></div><br></div>