Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Best way to add new projects/files using Opencv and OCL

Hi,

I have written some custom codes for facedetection that uses Opencv's libraries and opencl function. I copied my files in the sample folders and tried to compile but I got several errors. Most of them occurs because it cannot link the OpenCV files and OPencl files. So, I manually put the full path of the files in the headers of my files as well as Opencv's files. For example, I got an error that cl_mem is not declared in the scope. To overcome this I had to put the full path of CL.h to all the dependent files. This process worked and the program compiled successfully.

But I think this is not a good approach to manually put the path of dependent files in the header. The samples provided by opencv can easily link all the necessary files. So, there must be way that will automatically link any new files with opencv and opencl's dependent files.

So, I need your suggestion regarding the best way of adding new projrcts/files so that they can automatically link all the OpenCL and OpenCV files.

click to hide/show revision 2
retagged

updated 2013-09-24 13:33:25 -0600

berak gravatar image

Best way to add new projects/files using Opencv and OCL

Hi,

I have written some custom codes for facedetection that uses Opencv's libraries and opencl function. I copied my files in the sample folders and tried to compile but I got several errors. Most of them occurs because it cannot link the OpenCV files and OPencl files. So, I manually put the full path of the files in the headers of my files as well as Opencv's files. For example, I got an error that cl_mem is not declared in the scope. To overcome this I had to put the full path of CL.h to all the dependent files. This process worked and the program compiled successfully.

But I think this is not a good approach to manually put the path of dependent files in the header. The samples provided by opencv can easily link all the necessary files. So, there must be way that will automatically link any new files with opencv and opencl's dependent files.

So, I need your suggestion regarding the best way of adding new projrcts/files so that they can automatically link all the OpenCL and OpenCV files.