[ITK] [ITK-users] Problem compiling ITK 4.6.1

Alfonso Castro alfonso.castro at udc.es
Wed Oct 8 14:13:43 EDT 2014


Hi.

I'm trying to compile ITK 4.6.1 on OpenSuSE 13.1 with CUDA 6.5 from NVIDIA.

Whwn I turn on the option of Module_SmoothingRecursiveYvvGaussianFilter and 
Module_VariationalRegistration with ITK_USE_GPU option. Make gives the follow 
errors:

 Building CXX object 
Modules/Remote/SmoothingRecursiveYvvGaussianFilter/src/CMakeFiles/SmoothingRecursiveYvvGaussianFilter.dir/GPUSmoothingRecursiveYvvGaussianImageFilterKernel.cxx.o
In file included from /usr/local/cuda-6.5/include/CL/opencl.h:44:0,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Core/GPUCommon/include/itkOpenCLUtil.h:36,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/SmoothingRecursiveYvvGaussianFilter/include/itkGPUSmoothingRecursiveYvvGaussianImageFilter.h:29,
                 from 
/opt/mia/itk/Modules/Remote/SmoothingRecursiveYvvGaussianFilter/src/GPUSmoothingRecursiveYvvGaussianImageFilterKernel.cxx:1:
/usr/local/cuda-6.5/include/CL/cl_gl_ext.h:44:4: warning: "/*" within comment 
[-Wcomment]
  * /* cl_VEN_extname extension  */
 ^
In file included from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Core/GPUCommon/include/itkGPUImage.h:284:0,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Core/GPUCommon/include/itkGPUKernelManager.h:30,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Core/GPUCommon/include/itkGPUImageToImageFilter.h:22,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/SmoothingRecursiveYvvGaussianFilter/include/itkGPUSmoothingRecursiveYvvGaussianImageFilter.h:30,
                 from 
/opt/mia/itk/Modules/Remote/SmoothingRecursiveYvvGaussianFilter/src/GPUSmoothingRecursiveYvvGaussianImageFilterKernel.cxx:1:
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Core/GPUCommon/include/itkGPUImage.hxx: 
In member function ‘virtual void itk::GPUImage<TPixel, 
NDimension>::Graft(const itk::DataObject*)’:
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Core/GPUCommon/include/itkGPUImage.hxx:188:56: 
warning: typedef ‘GPUImageDataSuperclassPointer’ locally defined but not used 
[-Wunused-local-typedefs]
   typedef typename GPUImageDataSuperclass::Pointer     
GPUImageDataSuperclassPointer;
                                                        ^
Linking CXX static library 
../../../../lib/libSmoothingRecursiveYvvGaussianFilter.a
[100%] Built target SmoothingRecursiveYvvGaussianFilter
Scanning dependencies of target SplitComponents-all
[100%] Built target SplitComponents-all
Scanning dependencies of target VariationalRegistration-all
[100%] Built target VariationalRegistration-all
Scanning dependencies of target VariationalRegistration
[100%] Building CXX object 
Modules/Remote/VariationalRegistration/src/CMakeFiles/VariationalRegistration.dir/VariationalRegistrationMain.cxx.o
In file included from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/VariationalRegistration/include/itkVariationalRegistrationFilter.h:24:0,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/VariationalRegistration/include/itkVariationalRegistrationMultiResolutionFilter.h:24,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/VariationalRegistration/src/VariationalRegistrationMain.cxx:60:
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/VariationalRegistration/include/itkVariationalRegistrationFunction.h:156:11: 
error: duplicate ‘virtual’
   virtual virtual void InitializeIteration();
           ^
make[2]: *** 
[Modules/Remote/VariationalRegistration/src/CMakeFiles/VariationalRegistration.dir/VariationalRegistrationMain.cxx.o] 
Erro 1
make[1]: *** 
[Modules/Remote/VariationalRegistration/src/CMakeFiles/VariationalRegistration.dir/all] 
Erro 2
make: *** [all] Erro 2

If I deactivated the GPU option only, I obtained:

[ 18%] Building CXX object 
Modules/Remote/VariationalRegistration/src/CMakeFiles/VariationalRegistration.dir/VariationalRegistrationMain.cxx.o
In file included from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/VariationalRegistration/include/itkVariationalRegistrationFilter.h:24:0,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/VariationalRegistration/include/itkVariationalRegistrationMultiResolutionFilter.h:24,
                 from 
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/VariationalRegistration/src/VariationalRegistrationMain.cxx:60:
/opt/mia/fuentes/InsightToolkit-4.6.1/Modules/Remote/VariationalRegistration/include/itkVariationalRegistrationFunction.h:156:11: 
error: duplicate ‘virtual’
   virtual virtual void InitializeIteration();
           ^
make[2]: *** 
[Modules/Remote/VariationalRegistration/src/CMakeFiles/VariationalRegistration.dir/VariationalRegistrationMain.cxx.o] 
Erro 1
make[1]: *** 
[Modules/Remote/VariationalRegistration/src/CMakeFiles/VariationalRegistration.dir/all] 
Erro 2
make: *** [all] Erro 2

If I deactivated GPU and Module_VariationalRegistration, ITK compile without 
problem.


Is there some solution or walk around for those errors?

Thanks.

Alfonso
Faculty of Computer Science
University of A Coruna

_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list