Tried building master branch (c1c6774) on Ubuntu 16.04. The build failed with the following error message:
./Modules/OpenCL/mitkOclResourceServiceImpl_p.h:74:24: error: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated [-Werror=deprecated-declarations] m_CommandQueue = clCreateCommandQueue(m_Context, m_Devices[0], 0, &clErr); ^
I suspect that this is caused by the installed version of OpenCL which is the package nvidia-opencl-dev in Version 7.5.18-0ubuntu.
Fix:
Add
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
directly in front of line 23:
#include <CL/cl.h>
in file
./Modules/OpenCL/mitkOpenCL.h