nihui/opencv-mobile

Error when build with custom package

Opened this issue · 0 comments

I tried building opencv-mobile along with a custom package but encountered some errors that I couldn't resolve:
opencv-mobile-4.10.0/modules/core/src/precomp.hpp:358:10: error: no type named 'OpenCLExecutionContext' in namespace 'cv::ogl' ocl::OpenCLExecutionContext oclExecutionContext; ~~~~~^ 2 errors generated. error: use of undeclared identifier 'ocl'; did you mean 'ogl'? ocl::OpenCLExecutionContext oclExecutionContext; ^~~ ogl
The Option.txt file includes the enabled packages:
-DBUILD_opencv_imgcodecs=ON
-DBUILD_opencv_calib3d=ON
-DBUILD_opencv_flann=ON
-DBUILD_opencv_objdetect=ON
have applied the opencv-4.10.0-no-gpu.patch to resolve some redundant UMAT code issues, but I'm still encountering the code error above. I would appreciate any advice."