This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OpenCL examples build issue

Expert 7680 points


Hi Champions,

I tried to build the OpenCL exampls in <install_path>/opencl-66ak2h-0.8.1/examples, and I set the cross compiling environment based on the user guilde in twiki.

Accroding to the user guide, I need to set the following environment variable:

TI_OCL_INSTALL, TI_OCL_CGT_INSTALL, PATH and TARGET_ROOTDIR, and installed the mesa-common-dev package,

but when I build the examples, it reportes the "GL/gl.h no such file or directory", I checked the make.inc, and add the /usr/incude to the search path, the "GL/gl.h no such file or directory" error eliminated, but the example mandelbrot_native reported the "main.o:Relocations in generic ELF (EM:3), main.o:could not read symbols: File in wrong format", any comments  for this issue? Thank you very much.

Zhan.

 

 

  • I found my issue of the mandelbrot_native example is the compiler tools issue, I doesn't use make clean to remove the old *.o file which is built by g++ not the cross compile tools.

    BTW, because the opencl examples need user to modify the make.inc to add the searching path, suggest add the description in the OpenCL twiki pages.