http://apple.stackexchange.com/questions/opencl kernels for building opencv not being generated completely

asked 2014-11-20 01:42:07 -0500

I'm using cmake and building OpenCV from source. The OpenCL kernels for each module (opencl_kernels_MODULENAME.cpp and opencl_kernels_MODULENAME.hpp) are predominantly empty. This is what one of them look like when I open them -

// This file is auto-generated. Do not edit!

#include "precomp.hpp"
#include "opencl_kernels_core.hpp"

namespace cv
{
namespace ocl
{
namespace core
{

}    

}

}

Same scenario in the .hpp files for EVERY module. Nothing inside.

So, why would this even happen? I've tried toggling WITH_OPENCL both ON and OFF. The OpenCL Include dir is empty, while it detects the framework. I'm using the Macports gcc,g++ and gfortran compilers.

This mistake does not allow me to build the library because a lot of the functions which depend on cv::ocl would not be identified.

edit retag flag offensive close merge delete