diff --git a/modules/core/src/opencl/runtime/opencl_core.cpp b/modules/core/src/opencl/runtime/opencl_core.cpp index 3a454faa29..35d24eb1cd 100644 --- a/modules/core/src/opencl/runtime/opencl_core.cpp +++ b/modules/core/src/opencl/runtime/opencl_core.cpp @@ -204,7 +204,7 @@ static void* GetProcAddress(const char* name) { const std::string path = (i==0) ? getRuntimePath(defaultAndroidPaths[i]) : defaultAndroidPaths[i]; if (!path.empty()) { - handle = GetHandle(path); + handle = GetHandle(path.c_str()); if (handle) { foundOpenCL = true; break;