Opencv OpenCL Compilation error: x was not declared in this scope
Hi I created a program using OpenCV in windows with visual studio. My program has two cpp files. Both of them include many library files. The main function is in detect.cpp file and the other file is lbp.cpp. In windows the program runs just fine and can get every library files and header files. But when I tried to compile the program in Linux it did not compile and gave me error. The file cannot find opencl's function and data type. It gives me this error:
‘cl_command_queue’ was not declared in this scope ‘cl_mem’ was not declared in this scope ‘cl_int’ was not declared in this scope
There are many of them. Anyone has an idea how to solve them? I checked other sample files and used the same headers as they used. But my program just does not compile. Please help.