编译选项使能ENABLE_OPENCV后编译会报错

Other Parts Discussed in Thread: PROCESSOR-SDK-TDAX

使用PROCESSOR-SDK-TDAX V3.06版本,在我的vision_sdk\apps\configs\tda2xx_atp_linux_all目录下的cfg.mk中增加ENABLE_OPENCV=yes后,进行make -s -j depend然后make -s -j ,最后会出现如下错误:

# apps: tda2xx-evm: Compiling chains_main.c
# apps: tda2xx-evm: Compiling chains_main_linux_radar.c
# apps: tda2xx-evm: Compiling chains_main_linux_single_cam.c
# apps: tda2xx-evm: Compiling chains_main_linux_settings_vision.c
# apps: tda2xx-evm: Compiling chains_main_linux_multi_cam.c
# apps: tda2xx-evm: Compiling chains_main_linux_opencompute.c
# apps: tda2xx-evm: Compiling chains_main_linux_iss.c
# apps: tda2xx-evm: Compiling chains_main_linux_avb.c
# apps: tda2xx-evm: Creating archive apps.a
# apps: tda2xx-evm: Linking
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_imgproc.a(deriv.cpp.o): In function `cv::Sobel(cv::_InputArray const&, cv::_OutputArray const&, int, int, int, int, double, double, int)':
deriv.cpp:(.text._ZN2cv5SobelERKNS_11_InputArrayERKNS_12_OutputArrayEiiiiddi+0x14aa): undefined reference to `clCreateBuffer'
deriv.cpp:(.text._ZN2cv5SobelERKNS_11_InputArrayERKNS_12_OutputArrayEiiiiddi+0x15e2): undefined reference to `clEnqueueReadBuffer'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `int cv::ocl::getStringInfo<int (*)(_cl_device_id*, unsigned int, unsigned int, void*, unsigned int*), _cl_device_id*>(int (*)(_cl_device_id*, unsigned int, unsigned int, void*, unsigned int*), _cl_device_id*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) [clone .constprop.320]':
ocl.cpp:(.text._ZN2cv3ocl13getStringInfoIPFiP13_cl_device_idjjPvPjES3_EEiT_T0_jRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.constprop.320[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x26): undefined reference to `clGetPlatformInfo'
ocl.cpp:(.text._ZN2cv3ocl13getStringInfoIPFiP13_cl_device_idjjPvPjES3_EEiT_T0_jRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE.constprop.320[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x5e): undefined reference to `clGetPlatformInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLBufferPoolBaseImpl<cv::ocl::OpenCLBufferPoolImpl, cv::ocl::CLBufferEntry, _cl_mem*>::freeAllReservedBuffers()':
ocl.cpp:(.text._ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE22freeAllReservedBuffersEv[_ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE22freeAllReservedBuffersEv]+0x4a): undefined reference to `clReleaseMemObject'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLBufferPoolBaseImpl<cv::ocl::OpenCLBufferPoolImpl, cv::ocl::CLBufferEntry, _cl_mem*>::setMaxReservedSize(unsigned int)':
ocl.cpp:(.text._ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE18setMaxReservedSizeEj[_ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE18setMaxReservedSizeEj]+0x80): undefined reference to `clReleaseMemObject'
ocl.cpp:(.text._ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE18setMaxReservedSizeEj[_ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE18setMaxReservedSizeEj]+0x18e): undefined reference to `clReleaseMemObject'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLBufferPoolBaseImpl<cv::ocl::OpenCLBufferPoolImpl, cv::ocl::CLBufferEntry, _cl_mem*>::~OpenCLBufferPoolBaseImpl()':
ocl.cpp:(.text._ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memED2Ev[_ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memED5Ev]+0x5a): undefined reference to `clReleaseMemObject'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Device::Impl::getStrProp(unsigned int) const [clone .isra.50]':
ocl.cpp:(.text._ZNK2cv3ocl6Device4Impl10getStrPropEj.isra.50+0x2c): undefined reference to `clGetDeviceInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::PlatformInfo::Impl::getStrProp(unsigned int) const [clone .isra.55]':
ocl.cpp:(.text._ZNK2cv3ocl12PlatformInfo4Impl10getStrPropEj.isra.55+0x2c): undefined reference to `clGetPlatformInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLBufferPoolBaseImpl<cv::ocl::OpenCLBufferPoolImpl, cv::ocl::CLBufferEntry, _cl_mem*>::release(_cl_mem*)':
ocl.cpp:(.text._ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE7releaseES5_[_ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE7releaseES5_]+0x68): undefined reference to `clReleaseMemObject'
ocl.cpp:(.text._ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE7releaseES5_[_ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE7releaseES5_]+0x106): undefined reference to `clReleaseMemObject'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::get_platform_name(_cl_platform_id*, cv::String&) [clone .constprop.314]':
ocl.cpp:(.text._ZN2cv3oclL17get_platform_nameEP15_cl_platform_idRNS_6StringE.constprop.314+0x2a): undefined reference to `clGetPlatformInfo'
ocl.cpp:(.text._ZN2cv3oclL17get_platform_nameEP15_cl_platform_idRNS_6StringE.constprop.314+0x58): undefined reference to `clGetPlatformInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::haveOpenCL()':
ocl.cpp:(.text._ZN2cv3ocl10haveOpenCLEv+0x20): undefined reference to `clGetPlatformIDs'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Platform::Impl::init()':
ocl.cpp:(.text._ZN2cv3ocl8Platform4Impl4initEv[_ZN2cv3ocl8Platform4Impl4initEv]+0x26): undefined reference to `clGetPlatformIDs'
ocl.cpp:(.text._ZN2cv3ocl8Platform4Impl4initEv[_ZN2cv3ocl8Platform4Impl4initEv]+0x50): undefined reference to `clGetPlatformInfo'
ocl.cpp:(.text._ZN2cv3ocl8Platform4Impl4initEv[_ZN2cv3ocl8Platform4Impl4initEv]+0xa8): undefined reference to `clGetPlatformInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Device::set(void*)':
ocl.cpp:(.text._ZN2cv3ocl6Device3setEPv+0x11e): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3ocl6Device3setEPv+0x14c): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3ocl6Device3setEPv+0x17c): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3ocl6Device3setEPv+0x1aa): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3ocl6Device3setEPv+0x1e2): undefined reference to `clGetDeviceInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o):ocl.cpp:(.text._ZNK2cv3ocl6Device11addressBitsEv+0x22): more undefined references to `clGetDeviceInfo' follow
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Queue::operator=(cv::ocl::Queue const&)':
ocl.cpp:(.text._ZN2cv3ocl5QueueaSERKS1_+0x64): undefined reference to `clFinish'
ocl.cpp:(.text._ZN2cv3ocl5QueueaSERKS1_+0x6a): undefined reference to `clReleaseCommandQueue'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Queue::~Queue()':
ocl.cpp:(.text._ZN2cv3ocl5QueueD2Ev+0x46): undefined reference to `clFinish'
ocl.cpp:(.text._ZN2cv3ocl5QueueD2Ev+0x4c): undefined reference to `clReleaseCommandQueue'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Queue::finish()':
ocl.cpp:(.text._ZN2cv3ocl5Queue6finishEv+0x22): undefined reference to `clFinish'
ocl.cpp:(.text._ZN2cv3ocl5Queue6finishEv+0x34): undefined reference to `clFinish'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::set(int, void const*, unsigned int)':
ocl.cpp:(.text._ZN2cv3ocl6Kernel3setEiPKvj+0x3c): undefined reference to `clSetKernelArg'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Program::Impl::release()':
ocl.cpp:(.text._ZN2cv3ocl7Program4Impl7releaseEv[_ZN2cv3ocl7Program4Impl7releaseEv]+0x3c): undefined reference to `clReleaseProgram'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Program::~Program()':
ocl.cpp:(.text._ZN2cv3ocl7ProgramD2Ev+0x46): undefined reference to `clReleaseProgram'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Program::operator=(cv::ocl::Program const&)':
ocl.cpp:(.text._ZN2cv3ocl7ProgramaSERKS1_+0x64): undefined reference to `clReleaseProgram'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Image2D::operator=(cv::ocl::Image2D const&)':
ocl.cpp:(.text._ZN2cv3ocl7Image2DaSERKS1_+0x6e): undefined reference to `clReleaseMemObject'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Image2D::~Image2D()':
ocl.cpp:(.text._ZN2cv3ocl7Image2DD2Ev+0x46): undefined reference to `clReleaseMemObject'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Context::Impl::~Impl()':
ocl.cpp:(.text._ZN2cv3ocl7Context4ImplD2Ev[_ZN2cv3ocl7Context4ImplD5Ev]+0x12): undefined reference to `clReleaseContext'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Context::~Context()':
ocl.cpp:(.text._ZN2cv3ocl7ContextD2Ev+0x50): undefined reference to `clReleaseContext'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Context::operator=(cv::ocl::Context const&)':
ocl.cpp:(.text._ZN2cv3ocl7ContextaSERKS1_+0x7a): undefined reference to `clReleaseContext'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::Impl::release()':
ocl.cpp:(.text._ZN2cv3ocl6Kernel4Impl7releaseEv[_ZN2cv3ocl6Kernel4Impl7releaseEv]+0x4e): undefined reference to `clReleaseKernel'
ocl.cpp:(.text._ZN2cv3ocl6Kernel4Impl7releaseEv[_ZN2cv3ocl6Kernel4Impl7releaseEv]+0x56): undefined reference to `clReleaseEvent'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::set(int, cv::ocl::KernelArg const&)':
ocl.cpp:(.text._ZN2cv3ocl6Kernel3setEiRKNS0_9KernelArgE+0x7e): undefined reference to `clSetKernelArg'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3setEiRKNS0_9KernelArgE+0x110): undefined reference to `clSetKernelArg'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3setEiRKNS0_9KernelArgE+0x158): undefined reference to `clSetKernelArg'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3setEiRKNS0_9KernelArgE+0x17a): undefined reference to `clSetKernelArg'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3setEiRKNS0_9KernelArgE+0x19c): undefined reference to `clSetKernelArg'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o):ocl.cpp:(.text._ZN2cv3ocl6Kernel3setEiRKNS0_9KernelArgE+0x1dc): more undefined references to `clSetKernelArg' follow
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `oclCleanupCallback':
ocl.cpp:(.text.oclCleanupCallback+0x28): undefined reference to `clWaitForEvents'
ocl.cpp:(.text.oclCleanupCallback+0xa2): undefined reference to `clReleaseEvent'
ocl.cpp:(.text.oclCleanupCallback+0xe2): undefined reference to `clReleaseKernel'
ocl.cpp:(.text.oclCleanupCallback+0xea): undefined reference to `clReleaseEvent'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::~Kernel()':
ocl.cpp:(.text._ZN2cv3ocl6KernelD2Ev+0x50): undefined reference to `clReleaseKernel'
ocl.cpp:(.text._ZN2cv3ocl6KernelD2Ev+0x58): undefined reference to `clReleaseEvent'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::operator=(cv::ocl::Kernel const&)':
ocl.cpp:(.text._ZN2cv3ocl6KernelaSERKS1_+0x80): undefined reference to `clReleaseKernel'
ocl.cpp:(.text._ZN2cv3ocl6KernelaSERKS1_+0x88): undefined reference to `clReleaseEvent'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::create(char const*, cv::ocl::Program const&)':
ocl.cpp:(.text._ZN2cv3ocl6Kernel6createEPKcRKNS0_7ProgramE+0x72): undefined reference to `clCreateKernel'
ocl.cpp:(.text._ZN2cv3ocl6Kernel6createEPKcRKNS0_7ProgramE+0xde): undefined reference to `clReleaseKernel'
ocl.cpp:(.text._ZN2cv3ocl6Kernel6createEPKcRKNS0_7ProgramE+0xe6): undefined reference to `clReleaseEvent'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::PlatformInfo::PlatformInfo(void*)':
ocl.cpp:(.text._ZN2cv3ocl12PlatformInfoC2EPv+0x4e): undefined reference to `clGetDeviceIDs'
ocl.cpp:(.text._ZN2cv3ocl12PlatformInfoC2EPv+0x82): undefined reference to `clGetDeviceIDs'
ocl.cpp:(.text._ZN2cv3ocl12PlatformInfoC2EPv+0xc4): undefined reference to `clGetDeviceIDs'
ocl.cpp:(.text._ZN2cv3ocl12PlatformInfoC2EPv+0x108): undefined reference to `clGetDeviceIDs'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::getPlatfomsInfo(std::vector<cv::ocl::PlatformInfo, std::allocator<cv::ocl::PlatformInfo> >&)':
ocl.cpp:(.text._ZN2cv3ocl15getPlatfomsInfoERSt6vectorINS0_12PlatformInfoESaIS2_EE+0x2e): undefined reference to `clGetPlatformIDs'
ocl.cpp:(.text._ZN2cv3ocl15getPlatfomsInfoERSt6vectorINS0_12PlatformInfoESaIS2_EE+0x58): undefined reference to `clGetPlatformIDs'
ocl.cpp:(.text._ZN2cv3ocl15getPlatfomsInfoERSt6vectorINS0_12PlatformInfoESaIS2_EE+0x8c): undefined reference to `clGetPlatformIDs'
ocl.cpp:(.text._ZN2cv3ocl15getPlatfomsInfoERSt6vectorINS0_12PlatformInfoESaIS2_EE+0xee): undefined reference to `clGetPlatformIDs'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::selectOpenCLDevice()':
ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x1ee): undefined reference to `clGetPlatformIDs'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o):ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x210): more undefined references to `clGetPlatformIDs' follow
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::selectOpenCLDevice()':
ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x766): undefined reference to `clGetDeviceIDs'
ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x8c4): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x90c): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x97a): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0xaa0): undefined reference to `clGetDeviceIDs'
ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0xb02): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3oclL18selectOpenCLDeviceEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0xb44): undefined reference to `clGetDeviceInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Context::Impl::Impl(int)':
ocl.cpp:(.text._ZN2cv3ocl7Context4ImplC2Ei[_ZN2cv3ocl7Context4ImplC5Ei]+0xaa): undefined reference to `clGetDeviceIDs'
ocl.cpp:(.text._ZN2cv3ocl7Context4ImplC2Ei[_ZN2cv3ocl7Context4ImplC5Ei]+0x118): undefined reference to `clGetDeviceIDs'
ocl.cpp:(.text._ZN2cv3ocl7Context4ImplC2Ei[_ZN2cv3ocl7Context4ImplC5Ei]+0x248): undefined reference to `clCreateContext'
ocl.cpp:(.text._ZN2cv3ocl7Context4ImplC2Ei[_ZN2cv3ocl7Context4ImplC5Ei]+0x2f8): undefined reference to `clGetDeviceIDs'
ocl.cpp:(.text._ZN2cv3ocl7Context4ImplC2Ei[_ZN2cv3ocl7Context4ImplC5Ei]+0x310): undefined reference to `clGetDeviceIDs'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::initializeContextFromHandle(cv::ocl::Context&, void*, void*, void*)':
ocl.cpp:(.text._ZN2cv3ocl27initializeContextFromHandleERNS0_7ContextEPvS3_S3_+0x30): undefined reference to `clReleaseContext'
ocl.cpp:(.text._ZN2cv3ocl27initializeContextFromHandleERNS0_7ContextEPvS3_S3_+0xc2): undefined reference to `clReleaseContext'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Context::Impl::setDefault()':
ocl.cpp:(.text._ZN2cv3ocl7Context4Impl10setDefaultEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x8e): undefined reference to `clGetDeviceInfo'
ocl.cpp:(.text._ZN2cv3ocl7Context4Impl10setDefaultEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0xb8): undefined reference to `clCreateContext'
ocl.cpp:(.text._ZN2cv3ocl7Context4Impl10setDefaultEv[_ZN2cv3ocl7Context4Impl10setDefaultEv]+0x12c): undefined reference to `clGetDeviceInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::workGroupSize() const':
ocl.cpp:(.text._ZNK2cv3ocl6Kernel13workGroupSizeEv+0x3c): undefined reference to `clGetKernelWorkGroupInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::preferedWorkGroupSizeMultiple() const':
ocl.cpp:(.text._ZNK2cv3ocl6Kernel29preferedWorkGroupSizeMultipleEv+0x3c): undefined reference to `clGetKernelWorkGroupInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::compileWorkGroupSize(unsigned int*) const':
ocl.cpp:(.text._ZNK2cv3ocl6Kernel20compileWorkGroupSizeEPj+0x42): undefined reference to `clGetKernelWorkGroupInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::localMemSize() const':
ocl.cpp:(.text._ZNK2cv3ocl6Kernel12localMemSizeEv+0x3c): undefined reference to `clGetKernelWorkGroupInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::convertFromBuffer(void*, unsigned int, int, int, int, cv::UMat&)':
ocl.cpp:(.text._ZN2cv3ocl17convertFromBufferEPvjiiiRNS_4UMatE+0xac): undefined reference to `clGetMemObjectInfo'
ocl.cpp:(.text._ZN2cv3ocl17convertFromBufferEPvjiiiRNS_4UMatE+0x106): undefined reference to `clGetMemObjectInfo'
ocl.cpp:(.text._ZN2cv3ocl17convertFromBufferEPvjiiiRNS_4UMatE+0x13c): undefined reference to `clRetainMemObject'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::attachContext(cv::String const&, void*, void*, void*)':
ocl.cpp:(.text._ZN2cv3ocl13attachContextERKNS_6StringEPvS4_S4_+0x2e): undefined reference to `clGetPlatformIDs'
ocl.cpp:(.text._ZN2cv3ocl13attachContextERKNS_6StringEPvS4_S4_+0x64): undefined reference to `clGetPlatformIDs'
ocl.cpp:(.text._ZN2cv3ocl13attachContextERKNS_6StringEPvS4_S4_+0x13a): undefined reference to `clRetainContext'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Queue::create(cv::ocl::Context const&, cv::ocl::Device const&)':
ocl.cpp:(.text._ZN2cv3ocl5Queue6createERKNS0_7ContextERKNS0_6DeviceE+0x7a): undefined reference to `clCreateCommandQueue'
ocl.cpp:(.text._ZN2cv3ocl5Queue6createERKNS0_7ContextERKNS0_6DeviceE+0x10a): undefined reference to `clFinish'
ocl.cpp:(.text._ZN2cv3ocl5Queue6createERKNS0_7ContextERKNS0_6DeviceE+0x110): undefined reference to `clReleaseCommandQueue'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLAllocator::deallocate(cv::UMatData*) const':
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x12c): undefined reference to `clEnqueueMapBuffer'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x1c0): undefined reference to `clEnqueueUnmapMemObject'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x1d0): undefined reference to `clFinish'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x1e4): undefined reference to `clReleaseMemObject'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x2ba): undefined reference to `clReleaseMemObject'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x306): undefined reference to `clEnqueueReadBuffer'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x384): undefined reference to `clEnqueueUnmapMemObject'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x432): undefined reference to `clEnqueueReadBuffer'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator10deallocateEPNS_8UMatDataE]+0x458): undefined reference to `clFinish'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::run(int, unsigned int*, unsigned int*, bool)':
ocl.cpp:(.text._ZN2cv3ocl6Kernel3runEiPjS2_b+0x174): undefined reference to `clEnqueueNDRangeKernel'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3runEiPjS2_b+0x188): undefined reference to `clFinish'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3runEiPjS2_b+0x1c6): undefined reference to `clEnqueueNDRangeKernel'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3runEiPjS2_b+0x1fa): undefined reference to `clSetEventCallback'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3runEiPjS2_b+0x23e): undefined reference to `clFinish'
ocl.cpp:(.text._ZN2cv3ocl6Kernel3runEiPjS2_b+0x250): undefined reference to `clSetEventCallback'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::runTask(bool)':
ocl.cpp:(.text._ZN2cv3ocl6Kernel7runTaskEb+0x54): undefined reference to `clEnqueueTask'
ocl.cpp:(.text._ZN2cv3ocl6Kernel7runTaskEb+0x86): undefined reference to `clSetEventCallback'
ocl.cpp:(.text._ZN2cv3ocl6Kernel7runTaskEb+0x9c): undefined reference to `clEnqueueTask'
ocl.cpp:(.text._ZN2cv3ocl6Kernel7runTaskEb+0xaa): undefined reference to `clFinish'
ocl.cpp:(.text._ZN2cv3ocl6Kernel7runTaskEb+0xbe): undefined reference to `clSetEventCallback'
ocl.cpp:(.text._ZN2cv3ocl6Kernel7runTaskEb+0xc6): undefined reference to `clFinish'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLAllocator::copy(cv::UMatData*, cv::UMatData*, int, unsigned int const*, unsigned int const*, unsigned int const*, unsigned int const*, unsigned int const*, bool) const':
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator4copyEPNS_8UMatDataES3_iPKjS5_S5_S5_S5_b[_ZNK2cv3ocl15OpenCLAllocator4copyEPNS_8UMatDataES3_iPKjS5_S5_S5_S5_b]+0x22c): undefined reference to `clEnqueueCopyBuffer'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator4copyEPNS_8UMatDataES3_iPKjS5_S5_S5_S5_b[_ZNK2cv3ocl15OpenCLAllocator4copyEPNS_8UMatDataES3_iPKjS5_S5_S5_S5_b]+0x252): undefined reference to `clFinish'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator4copyEPNS_8UMatDataES3_iPKjS5_S5_S5_S5_b[_ZNK2cv3ocl15OpenCLAllocator4copyEPNS_8UMatDataES3_iPKjS5_S5_S5_S5_b]+0x2b4): undefined reference to `clEnqueueCopyBufferRect'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator4copyEPNS_8UMatDataES3_iPKjS5_S5_S5_S5_b[_ZNK2cv3ocl15OpenCLAllocator4copyEPNS_8UMatDataES3_iPKjS5_S5_S5_S5_b]+0x2ea): undefined reference to `clFinish'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLAllocator::upload(cv::UMatData*, void const*, int, unsigned int const*, unsigned int const*, unsigned int const*, unsigned int const*) const':
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator6uploadEPNS_8UMatDataEPKviPKjS7_S7_S7_[_ZNK2cv3ocl15OpenCLAllocator6uploadEPNS_8UMatDataEPKviPKjS7_S7_S7_]+0x168): undefined reference to `clEnqueueWriteBuffer'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator6uploadEPNS_8UMatDataEPKviPKjS7_S7_S7_[_ZNK2cv3ocl15OpenCLAllocator6uploadEPNS_8UMatDataEPKviPKjS7_S7_S7_]+0x290): undefined reference to `clEnqueueWriteBufferRect'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLAllocator::download(cv::UMatData*, void*, int, unsigned int const*, unsigned int const*, unsigned int const*, unsigned int const*) const':
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator8downloadEPNS_8UMatDataEPviPKjS6_S6_S6_[_ZNK2cv3ocl15OpenCLAllocator8downloadEPNS_8UMatDataEPviPKjS6_S6_S6_]+0x12a): undefined reference to `clEnqueueReadBufferRect'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator8downloadEPNS_8UMatDataEPviPKjS6_S6_S6_[_ZNK2cv3ocl15OpenCLAllocator8downloadEPNS_8UMatDataEPviPKjS6_S6_S6_]+0x1d4): undefined reference to `clEnqueueReadBuffer'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLAllocator::unmap(cv::UMatData*) const':
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE]+0x88): undefined reference to `clEnqueueWriteBuffer'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE]+0x116): undefined reference to `clEnqueueUnmapMemObject'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE]+0x1ca): undefined reference to `clFinish'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE[_ZNK2cv3ocl15OpenCLAllocator5unmapEPNS_8UMatDataE]+0x22c): undefined reference to `clFinish'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLAllocator::map(cv::UMatData*, int) const':
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator3mapEPNS_8UMatDataEi[_ZNK2cv3ocl15OpenCLAllocator3mapEPNS_8UMatDataEi]+0x8a): undefined reference to `clEnqueueReadBuffer'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator3mapEPNS_8UMatDataEi[_ZNK2cv3ocl15OpenCLAllocator3mapEPNS_8UMatDataEi]+0x15a): undefined reference to `clEnqueueMapBuffer'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::convertFromImage(void*, cv::UMat&)':
ocl.cpp:(.text._ZN2cv3ocl16convertFromImageEPvRNS_4UMatE+0x2c): undefined reference to `clGetMemObjectInfo'
ocl.cpp:(.text._ZN2cv3ocl16convertFromImageEPvRNS_4UMatE+0x7e): undefined reference to `clGetImageInfo'
ocl.cpp:(.text._ZN2cv3ocl16convertFromImageEPvRNS_4UMatE+0x11c): undefined reference to `clGetImageInfo'
ocl.cpp:(.text._ZN2cv3ocl16convertFromImageEPvRNS_4UMatE+0x160): undefined reference to `clGetImageInfo'
ocl.cpp:(.text._ZN2cv3ocl16convertFromImageEPvRNS_4UMatE+0x1a4): undefined reference to `clGetImageInfo'
ocl.cpp:(.text._ZN2cv3ocl16convertFromImageEPvRNS_4UMatE+0x242): undefined reference to `clEnqueueCopyImageToBuffer'
ocl.cpp:(.text._ZN2cv3ocl16convertFromImageEPvRNS_4UMatE+0x274): undefined reference to `clFinish'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Program::Impl::Impl(cv::ocl::ProgramSource const&, cv::String const&, cv::String&)':
ocl.cpp:(.text._ZN2cv3ocl7Program4ImplC2ERKNS0_13ProgramSourceERKNS_6StringERS6_[_ZN2cv3ocl7Program4ImplC5ERKNS0_13ProgramSourceERKNS_6StringERS6_]+0xca): undefined reference to `clCreateProgramWithSource'
ocl.cpp:(.text._ZN2cv3ocl7Program4ImplC2ERKNS0_13ProgramSourceERKNS_6StringERS6_[_ZN2cv3ocl7Program4ImplC5ERKNS0_13ProgramSourceERKNS_6StringERS6_]+0x1e2): undefined reference to `clBuildProgram'
ocl.cpp:(.text._ZN2cv3ocl7Program4ImplC2ERKNS0_13ProgramSourceERKNS_6StringERS6_[_ZN2cv3ocl7Program4ImplC5ERKNS0_13ProgramSourceERKNS_6StringERS6_]+0x204): undefined reference to `clGetProgramBuildInfo'
ocl.cpp:(.text._ZN2cv3ocl7Program4ImplC2ERKNS0_13ProgramSourceERKNS_6StringERS6_[_ZN2cv3ocl7Program4ImplC5ERKNS0_13ProgramSourceERKNS_6StringERS6_]+0x23e): undefined reference to `clGetProgramBuildInfo'
ocl.cpp:(.text._ZN2cv3ocl7Program4ImplC2ERKNS0_13ProgramSourceERKNS_6StringERS6_[_ZN2cv3ocl7Program4ImplC5ERKNS0_13ProgramSourceERKNS_6StringERS6_]+0x260): undefined reference to `clReleaseProgram'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Program::create(cv::ocl::ProgramSource const&, cv::String const&, cv::String&)':
ocl.cpp:(.text._ZN2cv3ocl7Program6createERKNS0_13ProgramSourceERKNS_6StringERS5_+0x7a): undefined reference to `clReleaseProgram'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Program::create(cv::ocl::ProgramBinary const&, cv::String&)':
ocl.cpp:(.text._ZN2cv3ocl7Program6createERKNS0_13ProgramBinaryERNS_6StringE+0xc0): undefined reference to `clCreateProgramWithBinary'
ocl.cpp:(.text._ZN2cv3ocl7Program6createERKNS0_13ProgramBinaryERNS_6StringE+0xd6): undefined reference to `clBuildProgram'
ocl.cpp:(.text._ZN2cv3ocl7Program6createERKNS0_13ProgramBinaryERNS_6StringE+0xf8): undefined reference to `clReleaseProgram'
ocl.cpp:(.text._ZN2cv3ocl7Program6createERKNS0_13ProgramBinaryERNS_6StringE+0x138): undefined reference to `clReleaseProgram'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::create(char const*, cv::ocl::ProgramBinary const&)':
ocl.cpp:(.text._ZN2cv3ocl6Kernel6createEPKcRKNS0_13ProgramBinaryE+0xa2): undefined reference to `clReleaseKernel'
ocl.cpp:(.text._ZN2cv3ocl6Kernel6createEPKcRKNS0_13ProgramBinaryE+0xaa): undefined reference to `clReleaseEvent'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Program::Impl::store()':
ocl.cpp:(.text._ZN2cv3ocl7Program4Impl5storeEv[_ZN2cv3ocl7Program4Impl5storeEv]+0x52): undefined reference to `clGetProgramInfo'
ocl.cpp:(.text._ZN2cv3ocl7Program4Impl5storeEv[_ZN2cv3ocl7Program4Impl5storeEv]+0xaa): undefined reference to `clGetProgramInfo'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Kernel::create(char const*, cv::ocl::ProgramSource const&, cv::String const&, cv::String*)':
ocl.cpp:(.text._ZN2cv3ocl6Kernel6createEPKcRKNS0_13ProgramSourceERKNS_6StringEPS7_+0xf6): undefined reference to `clReleaseKernel'
ocl.cpp:(.text._ZN2cv3ocl6Kernel6createEPKcRKNS0_13ProgramSourceERKNS_6StringEPS7_+0xfe): undefined reference to `clReleaseEvent'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Program::read(cv::String const&, cv::String const&)':
ocl.cpp:(.text._ZN2cv3ocl7Program4readERKNS_6StringES4_+0x180): undefined reference to `clCreateProgramWithBinary'
ocl.cpp:(.text._ZN2cv3ocl7Program4readERKNS_6StringES4_+0x1b0): undefined reference to `clReleaseProgram'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLAllocator::allocate(cv::UMatData*, int, cv::UMatUsageFlags) const':
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator8allocateEPNS_8UMatDataEiNS_14UMatUsageFlagsE[_ZNK2cv3ocl15OpenCLAllocator8allocateEPNS_8UMatDataEiNS_14UMatUsageFlagsE]+0xc2): undefined reference to `clCreateBuffer'
ocl.cpp:(.text._ZNK2cv3ocl15OpenCLAllocator8allocateEPNS_8UMatDataEiNS_14UMatUsageFlagsE[_ZNK2cv3ocl15OpenCLAllocator8allocateEPNS_8UMatDataEiNS_14UMatUsageFlagsE]+0xf4): undefined reference to `clCreateBuffer'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::OpenCLBufferPoolBaseImpl<cv::ocl::OpenCLBufferPoolImpl, cv::ocl::CLBufferEntry, _cl_mem*>::allocate(unsigned int)':
ocl.cpp:(.text._ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE8allocateEj[_ZN2cv3ocl24OpenCLBufferPoolBaseImplINS0_20OpenCLBufferPoolImplENS0_13CLBufferEntryEP7_cl_memE8allocateEj]+0x68): undefined reference to `clCreateBuffer'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Image2D::Impl::isFormatSupported(_cl_image_format)':
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl17isFormatSupportedE16_cl_image_format[_ZN2cv3ocl7Image2D4Impl17isFormatSupportedE16_cl_image_format]+0x78): undefined reference to `clGetSupportedImageFormats'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl17isFormatSupportedE16_cl_image_format[_ZN2cv3ocl7Image2D4Impl17isFormatSupportedE16_cl_image_format]+0xc2): undefined reference to `clGetSupportedImageFormats'
/home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a(ocl.cpp.o): In function `cv::ocl::Image2D::Impl::init(cv::UMat const&, bool, bool)':
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x216): undefined reference to `clCreateImage2D'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x2da): undefined reference to `clCreateBuffer'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x36c): undefined reference to `clEnqueueCopyBufferRect'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x3b0): undefined reference to `clFlush'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x3e2): undefined reference to `clEnqueueCopyBufferToImage'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x3f8): undefined reference to `clFlush'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x40e): undefined reference to `clReleaseMemObject'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x486): undefined reference to `clFlush'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x622): undefined reference to `clEnqueueCopyBufferToImage'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x6c8): undefined reference to `clReleaseMemObject'
ocl.cpp:(.text._ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb[_ZN2cv3ocl7Image2D4Impl4initERKNS_4UMatEbb]+0x6d0): undefined reference to `clFlush'
collect2: error: ld returned 1 exit status
/home/hao.luo/vsdk_360/vision_sdk/build/hlos/makerules/linux/common_footer_a15.mk:93: recipe for target 'exe' failed
make[6]: *** [exe] Error 1
MAKEFILE_adas.MK:171: recipe for target 'demo' failed
make[5]: *** [demo] Error 2
MAKEFILE_adas.MK:5: recipe for target 'apps' failed
make[4]: *** [apps] Error 2
Makefile:187: recipe for target 'apps_exe_hlos' failed
make[3]: *** [apps_exe_hlos] Error 2
Makefile:68: recipe for target 'apps_hlos' failed
make[2]: *** [apps_hlos] Error 2
Makefile:38: recipe for target 'apps' failed
make[1]: *** [apps] Error 2
Makefile:12: recipe for target 'vision_sdk' failed
make: *** [vision_sdk] Error 2
hao.luo@hirain-PowerEdge-R740:~/vsdk_360/vision_sdk/build$

加上-n后查看编译指令:

 

/opt/sdk_tda2/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -lpthread -lm -L/home/hao.luo/vsdk_360/vision_sdk/../ti_components/os_tools/linux/targetfs/usr/lib -Wl,--rpath-link,/home/hao.luo/vsdk_360/vision_sdk/../ti_components/os_tools/linux/targetfs/usr/lib -L/home/hao.luo/vsdk_360/vision_sdk/../ti_components/os_tools/linux/targetfs/lib -Wl,--rpath-link,/home/hao.luo/vsdk_360/vision_sdk/../ti_components/os_tools/linux/targetfs/lib -lrt -lEGL -lGLESv2 -lgbm -ldrm -ldrm_omap -Wl,--start-group /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/apps.a  /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/system.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/network_utils.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/utils.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_gate.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_null.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_dup.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_algorithm.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_ipcIn.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_ipcOut.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_sync.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_merge.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_sgxFrmcpy.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_select.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_nullSrc.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/links_a15_dispDistSrc.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/system.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/osa.a /home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/lib/tda2xx-evm/a15_0/release/apps.a -Wl,--end-group  /home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_imgproc.a /home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_imgcodecs.a /home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_imgproc.a /home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_core.a /home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libpng.a /home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libzlib.a /home/hao.luo/vsdk_360/ti_components/open_compute/opencv/opencv-3.1.0/libs_linux/libopencv_genericio.a -ldl  -o/home/hao.luo/vsdk_360/vision_sdk/binaries/apps/tda2xx_atp_linux_all/vision_sdk/bin/tda2xx-evm//apps.out

看 链接目录和编译指令也没发现问题,只要把开关闭上重新编译就好了,这是什么引起的呢?是官方给的sdk的opencv的.a库有问题吗?是不是需要重新去opencv官网下载编译呢?