TheInterventionCentre / NorMIT-Plan

10 stars 1 forks source link

Compilation error CL/opencl.h: No such file or directory #45

Closed RafaelPalomar closed 6 years ago

RafaelPalomar commented 7 years ago

It seems to me that project specification is not taking into consideration the possibility of not having OpenCL installed. Modifications to the relevant CMakeLists.txt files should be done to detect OpenCL. If OpenCL is an absolute requirement, then generating the cmake project should stop the process and warn the user about the requirement. Otherwise, conditional code to handle systems with and without OpenCL should be included.


[ 74%] Building CXX object VesselSegmentation/Logic/CMakeFiles/vtkSlicerVesselSegmentationModuleLogic.dir/vtkSlicerVesselSegmentationLogic.cxx.o In file included from /home/rafael/build/Slicer-4.6.2/ITKv4/Modules/Core/GPUCommon/include/itkGPUImageDataManager.h:26:0, from /home/rafael/build/Slicer-4.6.2/ITKv4/Modules/Core/GPUCommon/include/itkGPUImage.h:23, from /home/rafael/src/NorMIT-Plan/VesselSegmentation/Logic/itkVesselSegmentationPreProcessingFilter.h:29, from /home/rafael/src/NorMIT-Plan/VesselSegmentation/Logic/vtkSlicerVesselSegmentationLogic.cxx:21: /home/rafael/build/Slicer-4.6.2/ITKv4/Modules/Core/GPUCommon/include/itkOpenCLUtil.h:36:23: fatal error: CL/opencl.h: No such file or directory compilation terminated.

RafaelPalomar commented 6 years ago

It seems the issue is still there.

Scanning dependencies of target vtkSlicerVesselSegmentationModuleLogic [ 64%] Building CXX object VesselSegmentation/Logic/CMakeFiles/vtkSlicerVesselSegmentationModuleLogic.dir/vtkSlicerVesselSegmentationLogic.cxx.o In file included from /home/rafael/build/Slicer-4.6.2/ITKv4/Modules/Core/GPUCommon/include/itkGPUImageDataManager.h:26:0, from /home/rafael/build/Slicer-4.6.2/ITKv4/Modules/Core/GPUCommon/include/itkGPUImage.h:23, from /home/rafael/src/NorMIT-Plan/VesselSegmentation/Logic/vtkSlicerVesselSegmentationLogic.cxx:91: /home/rafael/build/Slicer-4.6.2/ITKv4/Modules/Core/GPUCommon/include/itkOpenCLUtil.h:36:23: fatal error: CL/opencl.h: No such file or directory