[ITK Community] error building on OSX 10.8.5 w/ python

Randy Heiland heiland at iu.edu
Sun Jan 12 12:19:51 EST 2014


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
> 




More information about the Community mailing list