[ITK Community] Run HelloWorld example
Stefanos M. Rigos
smrigos at gmail.com
Tue Oct 29 06:54:23 EDT 2013
Hi Matt,
The Git master worked perfectly! Thank you very much for the help!
Best regards,
Stefanos
On Oct 29, 2013, at 4:02 AM, Matt McCormick <matt.mccormick at kitware.com> wrote:
> Hi Stefanos,
>
> This is MacOS 10.9 that just came out? A fix in Git master was merged
> today. Please try [1] it out.
>
> Thanks,
> Matt
>
> [1] http://www.itk.org/Wiki/ITK/Git
>
> P.S. Please reply-to-all so the messages hit the mailing list.
>
> On Mon, Oct 28, 2013 at 8:05 PM, Stefanos M. Rigos <smrigos at gmail.com> wrote:
>> Hi Matt,
>>
>> Thanks for the quick answer. I restarted the setup from scratch following
>> your instructions at the video with the only difference being me enabling
>> the ITK_USE_64BITS_IDS but when I get to 97% at the make process I get the
>> following errors:
>>
>>
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/TestKernel/src/itkTestDriver.cxx:29:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/TestKernel/include/itkTestDriverIncludeRequiredIOFactories.h:30:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/TestKernel/include/itkTestDriverInclude.h:50:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/IO/ImageBase/include/itkImageFileWriter.h:227:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/IO/ImageBase/include/itkImageFileWriter.hxx:34:
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:51:16:
>> error:
>> no member named 'tr1' in namespace 'std'
>> typedef std::tr1::true_type TrueType;
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:52:16:
>> error:
>> no member named 'tr1' in namespace 'std'
>> typedef std::tr1::false_type FalseType;
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:142:15:
>> error:
>> static and non-static member functions with the same parameter types
>> cannot be overloaded
>> static void DispatchedCopy( const InputImageType *inImage, OutputImage...
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:136:15:
>> note:
>> previous declaration is here
>> static void DispatchedCopy( const InputImageType *inImage, OutputImage...
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:98:44:
>> error:
>> no member named 'tr1' in namespace 'std'
>> , std::tr1::is_convertible<typename ...
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:98:95:
>> error:
>> expected '(' for function-style cast or type construction
>> ..., std::tr1::is_convertible<typename _ImageType1::PixelType,
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:119:44:
>> error:
>> no member named 'tr1' in namespace 'std'
>> , std::tr1::is_convertible<typename ...
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:119:95:
>> error:
>> expected '(' for function-style cast or type construction
>> ..., std::tr1::is_convertible<typename _ImageType1::PixelType,
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/TestKernel/src/itkTestDriver.cxx:29:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/TestKernel/include/itkTestDriverIncludeRequiredIOFactories.h:30:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/TestKernel/include/itkTestDriverInclude.h:50:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/IO/ImageBase/include/itkImageFileWriter.h:227:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/IO/ImageBase/include/itkImageFileWriter.hxx:34:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:177:
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.hxx:67:22:
>> error:
>> redefinition of 'DispatchedCopy'
>> void ImageAlgorithm::DispatchedCopy( const InputImageType *inImage,
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.hxx:31:22:
>> note:
>> previous definition is here
>> void ImageAlgorithm::DispatchedCopy( const InputImageType *inImage, Outp...
>> ^
>> [ 97%] Building CXX object
>> Modules/Numerics/Optimizersv4/src/CMakeFiles/ITKOptimizersv4.dir/itkGradientDescentOptimizerBasev4.cxx.o
>> 8 errors generated.
>> make[2]: ***
>> [Modules/Core/TestKernel/src/CMakeFiles/itkTestDriver.dir/itkTestDriver.cxx.o]
>> Error 1
>> make[1]: *** [Modules/Core/TestKernel/src/CMakeFiles/itkTestDriver.dir/all]
>> Error 2
>> make[1]: *** Waiting for unfinished jobs....
>> [ 97%] Building CXX object
>> Modules/Numerics/Optimizersv4/src/CMakeFiles/ITKOptimizersv4.dir/itkGradientDescentOptimizerBasev4ModifyGradientByLearningRateThreader.cxx.o
>> [ 97%] Building CXX object
>> Modules/Numerics/Optimizersv4/src/CMakeFiles/ITKOptimizersv4.dir/itkGradientDescentOptimizerBasev4ModifyGradientByScalesThreader.cxx.o
>> [ 97%] Building CXX object
>> Modules/Numerics/Optimizersv4/src/CMakeFiles/ITKOptimizersv4.dir/itkGradientDescentOptimizerv4.cxx.o
>> [ 97%] Building CXX object
>> Modules/Numerics/Optimizersv4/src/CMakeFiles/ITKOptimizersv4.dir/itkGradientDescentLineSearchOptimizerv4.cxx.o
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/src/itkGradientDescentOptimizerv4.cxx:19:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h:23:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.h:97:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.hxx:24:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Filtering/ImageGrid/include/itkBSplineScatteredDataPointSetToImageFilter.h:425:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Filtering/ImageGrid/include/itkBSplineScatteredDataPointSetToImageFilter.hxx:24:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageDuplicator.h:102:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageDuplicator.hxx:22:
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:51:16:
>> error:
>> no member named 'tr1' in namespace 'std'
>> typedef std::tr1::true_type TrueType;
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:52:16:
>> error:
>> no member named 'tr1' in namespace 'std'
>> typedef std::tr1::false_type FalseType;
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:142:15:
>> error:
>> static and non-static member functions with the same parameter types
>> cannot be overloaded
>> static void DispatchedCopy( const InputImageType *inImage, OutputImage...
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:136:15:
>> note:
>> previous declaration is here
>> static void DispatchedCopy( const InputImageType *inImage, OutputImage...
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:98:44:
>> error:
>> no member named 'tr1' in namespace 'std'
>> , std::tr1::is_convertible<typename ...
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:98:95:
>> error:
>> expected '(' for function-style cast or type construction
>> ..., std::tr1::is_convertible<typename _ImageType1::PixelType,
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:119:44:
>> error:
>> no member named 'tr1' in namespace 'std'
>> , std::tr1::is_convertible<typename ...
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:119:95:
>> error:
>> expected '(' for function-style cast or type construction
>> ..., std::tr1::is_convertible<typename _ImageType1::PixelType,
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/src/itkGradientDescentOptimizerv4.cxx:19:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h:23:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.h:97:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.hxx:24:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Filtering/ImageGrid/include/itkBSplineScatteredDataPointSetToImageFilter.h:425:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Filtering/ImageGrid/include/itkBSplineScatteredDataPointSetToImageFilter.hxx:24:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageDuplicator.h:102:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageDuplicator.hxx:22:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:177:
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.hxx:67:22:
>> error:
>> redefinition of 'DispatchedCopy'
>> void ImageAlgorithm::DispatchedCopy( const InputImageType *inImage,
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.hxx:31:22:
>> note:
>> previous definition is here
>> void ImageAlgorithm::DispatchedCopy( const InputImageType *inImage, Outp...
>> ^
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/src/itkGradientDescentLineSearchOptimizerv4.cxx:19:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkGradientDescentLineSearchOptimizerv4.h:21:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h:23:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.h:97:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.hxx:24:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Filtering/ImageGrid/include/itkBSplineScatteredDataPointSetToImageFilter.h:425:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Filtering/ImageGrid/include/itkBSplineScatteredDataPointSetToImageFilter.hxx:24:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageDuplicator.h:102:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageDuplicator.hxx:22:
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:51:16:
>> error:
>> no member named 'tr1' in namespace 'std'
>> typedef std::tr1::true_type TrueType;
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:52:16:
>> error:
>> no member named 'tr1' in namespace 'std'
>> typedef std::tr1::false_type FalseType;
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:142:15:
>> error:
>> static and non-static member functions with the same parameter types
>> cannot be overloaded
>> static void DispatchedCopy( const InputImageType *inImage, OutputImage...
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:136:15:
>> note:
>> previous declaration is here
>> static void DispatchedCopy( const InputImageType *inImage, OutputImage...
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:98:44:
>> error:
>> no member named 'tr1' in namespace 'std'
>> , std::tr1::is_convertible<typename ...
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:98:95:
>> error:
>> expected '(' for function-style cast or type construction
>> ..., std::tr1::is_convertible<typename _ImageType1::PixelType,
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:119:44:
>> error:
>> no member named 'tr1' in namespace 'std'
>> , std::tr1::is_convertible<typename ...
>> ~~~~~^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:119:95:
>> error:
>> expected '(' for function-style cast or type construction
>> ..., std::tr1::is_convertible<typename _ImageType1::PixelType,
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/src/itkGradientDescentLineSearchOptimizerv4.cxx:19:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkGradientDescentLineSearchOptimizerv4.h:21:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkGradientDescentOptimizerv4.h:23:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.h:97:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.hxx:24:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Filtering/ImageGrid/include/itkBSplineScatteredDataPointSetToImageFilter.h:425:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Filtering/ImageGrid/include/itkBSplineScatteredDataPointSetToImageFilter.hxx:24:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageDuplicator.h:102:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageDuplicator.hxx:22:
>> In file included from
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.h:177:
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.hxx:67:22:
>> error:
>> redefinition of 'DispatchedCopy'
>> void ImageAlgorithm::DispatchedCopy( const InputImageType *inImage,
>> ^
>> /Users/StefanosMRigos/src/InsightToolkit-4.4.2/Modules/Core/Common/include/itkImageAlgorithm.hxx:31:22:
>> note:
>> previous definition is here
>> void ImageAlgorithm::DispatchedCopy( const InputImageType *inImage, Outp...
>> ^
>> 8 errors generated.
>> make[2]: ***
>> [Modules/Numerics/Optimizersv4/src/CMakeFiles/ITKOptimizersv4.dir/itkGradientDescentLineSearchOptimizerv4.cxx.o]
>> Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> 8 errors generated.
>> make[2]: ***
>> [Modules/Numerics/Optimizersv4/src/CMakeFiles/ITKOptimizersv4.dir/itkGradientDescentOptimizerv4.cxx.o]
>> Error 1
>> make[1]: ***
>> [Modules/Numerics/Optimizersv4/src/CMakeFiles/ITKOptimizersv4.dir/all] Error
>> 2
>> make: *** [all] Error 2
>> Stefanoss-MacBook-Pro:ITK-Build StefanosMRigos$
>>
>>
>>
>> Any ideas why or how to resolve?
>>
>>
>>
>> Thank you in advance
>>
>> Stefanos
>>
>> On Oct 29, 2013, at 12:16 AM, Matt McCormick <matt.mccormick at kitware.com>
>> wrote:
>>
>> Hi Stefanos,
>>
>> On Mon, Oct 28, 2013 at 10:02 PM, Stefanos M. Rigos <smrigos at gmail.com>
>> wrote:
>>
>> Dear all,
>>
>> Thank you in advance for reading this email. I am trying to run the simple
>> hello world example in the installation folder of ITK. After configuring and
>> generating the project as an Eclipse CDT4 Unix make file I import it to
>> Eclipse but the project will not build and I get the following errors:
>> Description Resource Path Location Type
>> make: *** [all] Error 2 C/C++ Problem
>> make[1]: *** [CMakeFiles/HelloWorld.dir/all] Error 2
>> C/C++ Problem
>> make[2]: *** [HelloWorld] Error 1 C/C++
>> Problem
>>
>>
>> This does not contain the relevant error message -- there must be more.
>>
>> The following resources [1] [2][3] might be helpful.
>>
>> Hope this helps,
>> Matt
>>
>> [1]
>> http://itk.org/ITKExamples/src/Core/Common/BuildAHelloWorldProgram/Documentation.html
>> [2] http://www.cmake.org/Wiki/Eclipse_CDT4_Generator
>> [3] http://www.youtube.com/watch?v=VfB6ue6HLMA
>>
>>
More information about the Community
mailing list