BoW categorization - CV_OpenCLInitError (OpenCL not available) [SOLVED]
Hello there,
I started diving into visual bag of words categorization. There is very good sample code in samples folder. I compiled the code and put it to run. Everything gone fine before SVM training, where I got the following error:
OpenCV Error: Gpu API call (-1001) in initializeOpenCLDevices, file opencv-2.4.8/modules/ocl/src/cl_context.cpp, line 455 OpenCV Error: Unknown error code -221 (OpenCL not available) in getContext, file opencv-2.4.8/modules/ocl/src/cl_context.cpp, line 670 terminate called after throwing an instance of 'cv::Exception' what(): opencv-2.4.8/modules/ocl/src/cl_context.cpp:670: error: (-221) OpenCL not available in function getContext
I used following libs in a Mafefile:
-lopencv_core -lopencv_ocl -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann -lopencv_nonfree
Does anybody know what is wrong?
Cheers!