Can't compile OpenCV 3.3 with galcore OpenCL library (Debian 7)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't compile OpenCV 3.3 with galcore OpenCL library (Debian 7)

Jump to solution
1,448 Views
mathieu_c
Contributor I

Hi everyone,

I am using an i.MX6q (HummingBoard), on which I run a SolidRun Debian Linux distro (which are available here).

In our company, we would like to use OpenCV and make it work with OpenCL using the Vivante GC2000 GPU. I found out there was already the Vivante ICD and also a galcore directory in /usr/lib which apparently contains all the libraries I would need to use OpenCL (libOpenCL.so, libVivanteOpenCL.so, etc).

When I'm trying to compile OpenCV 3.3 with a link to those OpenCL libraries, I got a compilation error (undefined reference to clCreateImage) but as far as I know, Vivante supports OpenCL 1.1 EP and OpenCV seems to support it also, it should work.

When I execute strings /usr/lib/galcore/libOpenCL.so on the board, I can see clCreateImage2D and clCreateImage3D but not clCreateImage. At first I thought this was caused because of an outdated linux distro our outdated drivers but when I execute the same command on the lib I found on the poky distro from Freescale Community, it also doesn't have this function. I also thought it was caused because of a recent version of OpenCV but it seems that this function has already been used in previous OpenCV versions.

I'm kinda lost right now, I quite don't understand where this can come from. Do you guys have any idea of what would cause this or at least how can I compile OpenCV 3.3 with Vivante OpenCL library ?

PS: I also have some heavy misunderstandings between the galcore library, the galcore kernel module and this galcore directory I have on my distro: I don't have any galcore module on my distro, if you guys could enlighten me on this one it would be really nice !

Labels (4)
1 Solution
855 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mathieu

building procedures are described on
http://www.engcore.com/category/blog/
https://community.nxp.com/thread/311625
for OpenCV 3.x building steps may be useful to look at
https://lists.yoctoproject.org/pipermail/yocto/2016-November/033204.html
https://community.nxp.com/thread/435590

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
856 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mathieu

building procedures are described on
http://www.engcore.com/category/blog/
https://community.nxp.com/thread/311625
for OpenCV 3.x building steps may be useful to look at
https://lists.yoctoproject.org/pipermail/yocto/2016-November/033204.html
https://community.nxp.com/thread/435590

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------