Ask Your Question

latki8's profile - activity

2017-02-14 03:20:16 -0600 received badge  Popular Question (source)
2014-01-12 11:39:30 -0600 commented answer Make failed on Linux Mint 15: filtering.cpp reference opencl_kernels.hpp

Thank you for this. I did notice an Opencv\ directory at the same level as Opencv but didn't realise the significance. I've marked this as the correct answer but I haven't tested it because I just gave up and decided to use PyGame instead for now. I might give it another go when I've got time.

2014-01-12 11:36:33 -0600 received badge  Scholar (source)
2014-01-10 20:29:34 -0600 received badge  Student (source)
2013-12-04 09:26:32 -0600 asked a question Make failed on Linux Mint 15: filtering.cpp reference opencl_kernels.hpp

I followed the procedure to install OpenCV laid out in link text

I pre-installed only those items shown as required and downloaded the stable version of OpenCV using the link on the page.

When I issued the 'make' command, the final part of the output was:

Linking CXX static library ../../lib/libopencv_ocl_pch_dephelp.a
[ 74%] Built target opencv_ocl_pch_dephelp
Scanning dependencies of target pch_Generate_opencv_ocl
[ 74%] Generating precomp.hpp
[ 74%] Generating precomp.hpp.gch/opencv_ocl_RELEASE.gch
[ 74%] Built target pch_Generate_opencv_ocl
[ 74%] Generating opencl_kernels.cpp, opencl_kernels.hpp
Scanning dependencies of target opencv_ocl
[ 74%] Building CXX object modules/ocl/CMakeFiles/opencv_ocl.dir/src/filtering.cpp.o
/home/spearmint/Software/OpenCV Software/opencv-2.4.7/modules/ocl/src/filtering.cpp:52:30: fatal error: opencl_kernels.hpp: No such file or directory
compilation terminated.
make[2]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/src/filtering.cpp.o] Error 1
make[1]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/all] Error 2
make: *** [all] Error 2

The module filtering.cpp contains:

#include "precomp.hpp"
#include "opencl_kernels.hpp"

Can anyone tell me what I need to do to resolve this problem?