[ITK Community] [Insight-users] Fwd: error building on OSX 10.8.5 w/ python
Randy Heiland
heiland at iu.edu
Sun Jan 12 14:02:06 EST 2014
(moving this to the ITK users list)
My bad on this, I'd previously renamed /usr/include to /usr/_include, per your instructions on installing ITK via brew, and forgot to rename back.
Now, I get the following error when building:
/usr/include/c++/4.2.1/bits/stl_iterator.h:646: error: no type named 'difference_type' in 'struct std::iterator_traits<const char*>'
which I realize has already been reported.
-Randy
Begin forwarded message:
> From: Randy Heiland <heiland at iu.edu>
> Subject: Re: [ITK Community] error building on OSX 10.8.5 w/ python
> Date: January 12, 2014 12:19:51 PM EST
> To: Michka Popoff <michkapopoff at gmail.com>
> Cc: <community at itk.org>
>
> Thanks for the reply. What about the following error from this config?
> $ cmake -DBUILD_SHARED_LIBS:BOOL=ON -DITK_WRAP_PYTHON:BOOL=ON -DBUILD_TESTING:BOOL=OFF ~/git/ITK
> ...
> [ 20%] Built target install_wrapitk_compatibility
> [ 20%] Performing configure step for 'PCRE'
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ../PCRE/install-sh -c -d
> checking for gawk... no
> checking for mawk... mawk
> checking whether make sets $(MAKE)... yes
> checking for gcc... /usr/bin/cc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... configure: error: in `/Users/heiland/dev/ITK/InsightToolkit-git-build/Wrapping/Generators/SwigInterface/PCRE-prefix/src/PCRE-build':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
>
> On Jan 12, 2014, at 10:21 AM, Michka Popoff <michkapopoff at gmail.com> wrote:
>
>> Hi
>>
>> This error is coming from the tests in CheckFixedArrayTraits (itkNumericTraitsTest.cxx), I did not launch the tests for the moment, but I can provide also a fix for these if you want the tests to be run. It will take me some time. Can you disable the tests for the moment if the goal is just to get it installed ?
>> The fix is under discussion for the moment and was not merged to ITK, when doing a fresh checkout be sure to apply the patch.
>>
>>
>> Michka
>>
>> On 12 janv. 2014, at 15:52, Randy Heiland <heiland at iu.edu> wrote:
>>
>>> Hello,
>>>
>>> I just did a fresh checkout from git and still get an error, in spite of the recent change (http://review.source.kitware.com/#/c/14033/ )
>>>
>>> $ c++ --version
>>> Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>> Target: x86_64-apple-darwin12.5.0
>>> Thread model: posix
>>>
>>> $ /Users/heiland/dev/ITK/InsightToolkit-git-build/Wrapping/Generators/GccXML/gccxml/bin/gccxml --version
>>> GCC-XML version 0.9.0
>>>
>>> $ cmake -DBUILD_SHARED_LIBS:BOOL=ON -DITK_WRAP_PYTHON:BOOL=ON ~/git/ITK
>>> $ make
>>> ...
>>> "itk::NumericTraits<itk::RGBAPixel<unsigned long> >::Zero", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<unsigned long> >(itk::RGBAPixel<unsigned long> const&) in itkNumericTraitsTest.cxx.o
>>> "itk::NumericTraits<itk::RGBAPixel<short> >::One", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<short> >(itk::RGBAPixel<short> const&) in itkNumericTraitsTest.cxx.o
>>> "itk::NumericTraits<itk::RGBAPixel<short> >::Zero", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<short> >(itk::RGBAPixel<short> const&) in itkNumericTraitsTest.cxx.o
>>> "itk::NumericTraits<itk::RGBAPixel<unsigned short> >::One", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<unsigned short> >(itk::RGBAPixel<unsigned short> const&) in itkNumericTraitsTest.cxx.o
>>> "itk::NumericTraits<itk::RGBAPixel<unsigned short> >::Zero", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<unsigned short> >(itk::RGBAPixel<unsigned short> const&) in itkNumericTraitsTest.cxx.o
>>> "itk::NumericTraits<itk::RGBAPixel<long long> >::One", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<long long> >(itk::RGBAPixel<long long> const&) in itkNumericTraitsTest.cxx.o
>>> "itk::NumericTraits<itk::RGBAPixel<long long> >::Zero", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<long long> >(itk::RGBAPixel<long long> const&) in itkNumericTraitsTest.cxx.o
>>> "itk::NumericTraits<itk::RGBAPixel<unsigned long long> >::One", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<unsigned long long> >(itk::RGBAPixel<unsigned long long> const&) in itkNumericTraitsTest.cxx.o
>>> "itk::NumericTraits<itk::RGBAPixel<unsigned long long> >::Zero", referenced from:
>>> void CheckFixedArrayTraits<itk::RGBAPixel<unsigned long long> >(itk::RGBAPixel<unsigned long long> const&) in itkNumericTraitsTest.cxx.o
>>> ld: symbol(s) not found for architecture x86_64
>>> clang: error: linker command failed with exit code 1 (use -v to see invocation
>>>
>>> thanks, Randy
>>>
>>> _______________________________________________
>>> Community mailing list
>>> Community at itk.org
>>> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140112/3bf4ce95/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