AnsweredAssumed Answered

OpenCL on Sabre iMX6Q

Question asked by constantins on Mar 12, 2013
Latest reply on Aug 20, 2014 by Andre Silva
Branched to a new discussion

All,

I am attempting to compile OpenCV with OpenCL support for my iMX6Q board. I had some compiler issues earlier which I resolved by manually dropping the optimization level for one file. However, now I am having linking trouble due to undefined references in the libOpenCL.so and I am at a loss.

 

A "readelf -s /usr/lib/libOpenCL.so" shows many undefined symbols. This libOpenCL.so came with my system and I did not install it. I am confused as to where I have made a mistake. I installed the packages that came with the board (some packages were ignored as they seemed to have been replaced by newer versions.)

 

Linking CXX executable ../../bin/opencv_perf_ocl

/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libOpenCL.so: undefined reference to `gcoOS_CloseThread'

/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libOpenCL.so: undefined reference to `gcoOS_AtomIncrement'

... and so on

Outcomes