Tool/software: Linux
Hi, all
Refer to vip_single_cam_opencvcanny_sgx_display, I write a usecase with a OpenCV alg_plugin.
I got some error in Linking. it looks like something invoked opencl, but I do not enable opencl in cfg.mk.
how can I locate the problem?
best regards,
John
-----------------------------------------------------------------
cfg.mk
#
# Enable below macro to enable OPENVX into Vision SDK
#
OPENVX_INCLUDE=yes
CIO_REDIRECT=yes
HS_DEVICE=no
DEFAULT_UBOOT_CONFIG := dra7xx_evm_vision_config
DEFAULT_KERNEL_CONFIG := omap2plus_defconfig
# For TDA2x
DEFAULT_DTB := dra7-evm-infoadas.dtb
# add by John
# Enable macro for OpenCV
ENABLE_OPENCV=yes
CMEM_INCLUDE=yes
BUILD_OPENCV_SRC=no
BUILD_LLVM=no
-----------------------------------------------------------------
Err info:
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'
/opt/proj/e0800/apa_r04/bsw/platform/ti/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'