3.0.0 RC1 build fails on Yosemite, opencl_kernels_core.hpp not found (Bug #4318)
Description
OSX 10.10.3, cmake 3.2.2, Intel Iris graphics card/GPU
When trying to build 3.0.0 RC1 I get the following error:
```
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o
/Users/tterry/computer_vision/opencv-3.0.0-rc1/modules/core/src/arithm.cpp:51:10: fatal error:
'opencl_kernels_core.hpp' file not found
#include "opencl_kernels_core.hpp"
```
The file does exist in modules/core, but as others have reported in http://code.opencv.org/issues/4038 they are basically empty:
```
// This file is auto-generated. Do not edit!
#include "opencv2/core/ocl.hpp"
#include "opencv2/core/ocl_genbase.hpp"
#include "opencv2/core/opencl/ocl_defs.hpp"
namespace cv
{
namespace ocl
{
namespace core
{
}
}}
```
Related issues
duplicates Bug #4038: OpenCL kernels for building OpenCV not being generated co... | Cancelled | 2014-12-02 |
History
Updated by Maksim Shabunin almost 10 years ago
I was not able to reproduce this issue. Can you, please, attach cmake output (as file)?
Here is a part of my output:
-- General configuration for OpenCV 3.0.0-dev ===================================== -- Version control: 3.0.0-rc1-61-gf49544f -- -- Platform: -- Host: Darwin 13.2.0 x86_64 -- CMake: 3.2.2 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make -- Configuration: Release <snip> -- OpenCL: -- Version: static -- libraries: -framework OpenCL -- Use AMDFFT: NO -- Use AMDBLAS: NO
Updated by Maksim Shabunin almost 10 years ago
- Status changed from New to Incomplete
- Assignee set to Maksim Shabunin
- Category set to build/install
- Target version set to 3.0
Updated by Jochen Laubrock over 9 years ago
This might help locate/fix the bug. I had the same problem trying to build 3.0.0 RC1 on OS X 10.10 when the path to the folder containing the opencv sources included a space. After renaming the folder, everything works nicely.
For reference, this seems to have been around for a while: http://answers.opencv.org/question/26020/248-build-fails-mac-osx-opencl_kernelshpp-file-not-found/
Updated by Maksim Shabunin over 9 years ago
- Status changed from Incomplete to Cancelled