在Zedboard上安装OpenCL ICD Loader到ubuntu12时发生错误

时间:2016-12-30 06:21:47

标签: opencl embedded-linux zynq pocl

我想在zedboard上运行opencl,现在我无法在ubuntu12上安装ocl_icd

我指的是“https://github.com/umaurmi/OPENCL_EXAMPLES_ZEDBOARD/wiki/Installing-POCL-dependencies-on-Ubuntu-linux-based-targets”页面

“./ configure”完成且没有错误 但“make”会导致错误,请在下面显示

root@localhost:~/Downloads/ocl-icd-1.2.1# make
make  all-am
make[1]: Entering directory `/root/Downloads/ocl-icd-1.2.1'
  CC     libOpenCL_la-ocl_icd_loader.lo
  CC     libOpenCL_la-ocl_icd_loader_gen.lo
In file included from ocl_icd_loader_gen.c:30:0:
ocl_icd_debug.h: In function 'debug_init':
ocl_icd_debug.h:66:5: error: implicit declaration of function 'getenv'     [-Werror=implicit-function-declaration]
ocl_icd_debug.h:66:17: error: initialization makes pointer from integer     without a cast [-Werror]
ocl_icd_debug.h:68:7: error: implicit declaration of function 'atoi'         [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [libOpenCL_la-ocl_icd_loader_gen.lo] Error 1
make[1]: Leaving directory `/root/Downloads/ocl-icd-1.2.1'
make: *** [all] Error 2

我该怎么做?

0 个答案:

没有答案