OpenCV compilation error with OpenCL

asked 2013-10-30 09:53:13 -0500

mainul gravatar image


I compiled OpenCV from git earlier with opencl enabled for arm architecture and everything worked fine. Then I changed in the initialization file and added some printf statements and tried recompiling the opencv. But could not compile and got a number of errors. Then I downloaded another opencv from sourgeforge (version and tried to compile it. It compiled successfully. But when I tried to recompile it with OpenCL-after 87% of compilation I got this error:

/opencv/modules/ocl/src/imgproc.cpp: In function 'void cv::ocl::copyMakeBorder(const cv::ocl::oclMat&, cv::ocl::oclMat&, int, int, int, int, int, const Scalar&)': /opencv/modules/ocl/src/imgproc.cpp:748:9: internal compiler error: output_operand: invalid expression as operand Please submit a full bug report, with preprocessed source if appropriate. See <file: usr="" share="" doc="" gcc-4.6="" readme.bugs=""> for instructions. Preprocessed source stored into /tmp/cconMG0K.out file, please attach this to your bugreport. make[2]: * [modules/ocl/CMakeFiles/opencv_ocl.dir/src/imgproc.cpp.o] Error 1 make[1]: [modules/ocl/CMakeFiles/opencv_ocl.dir/all] Error 2 make: ** [all] Error 2

I have not changed any file. It was a fresh copy of opencv. But I do not know what's wrong. However I tried to download a copy from git but the git version is so changed that I have to do a lot of things/changes in my code to cope with the changes made in git version.

Can anyone kindly show me a path why I am getting that error and how to solve that?

edit retag flag offensive close merge delete