[ITK Community] [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://public.kitware.com/pipermail/community/attachments/20131217/e58ed633/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list