[Insight-users] Problem with building ITK with python wrapper on Mac 10.8.5 with clang 5.0

Emil Rozbicki emilroz at gmail.com
Tue Dec 17 09:43:58 EST 2013


Hello, 

as in the topic, I have a problem with building ITK 4.4.2 on OS X 10.8.5 with clang 5.0. 

Errors I'm getting have been posted here before: 

make[2]: *** [Wrapping/Modules/ITKCommon/vcl_complex.xml] Error 1 
make[1]: *** [Wrapping/Modules/ITKCommon/CMakeFiles/ITKCommonGccXML.dir/all] Error 2 

but solution came from getting the gcc and g++ compilers correct in Cmake and getting the python path right. I think I have those correctly (I can build SimpleITK with python wrapper with this config no problem but I'm after image registration so need full ITK). 

My CMake Config: 
C compilers: 
CMAKE_CXX_COMPILER    /usr/bin/g++ 
CMAKE_C_COMPILER      /usr/bin/gcc 

I'm using homebrew python so my path are: (I used the same paths to build SimpleITK python wrapper and it worked): 
PYTHON_EXECUTABLE    /usr/local/bin/python 
PYTHON_INCLUDE_DIR    /usr/local/Frameworks/Python.framework/Headers 
PYTHON_LIBRARY    /usr/local/Frameworks/Python.framework/Versions/Current/lib/libpython2.7.dylib 
PY_SITE_PACKAGES_PATH    /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages 

My C compilers: 
g++ -v 
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 
Target: x86_64-apple-darwin12.5.0 
Thread model: posix 

I also tried HEAD ITK from git but it results in different errors: 
make[2]: *** [bin/ITKCommon1TestDriver] Error 1 
make[1]: *** [Modules/Core/Common/test/CMakeFiles/ITKCommon1TestDriver.dir/all] Error 2 

Any idea what's wrong here? 

Kind Regards, 
Emi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20131217/e58ed633/attachment-0001.htm>


More information about the Insight-users mailing list