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.

D3-3P-TDA2X-DK: Error Received to build the opencv usecase

Part Number: D3-3P-TDA2X-DK

Dear Sir,

I try to run the usecase for UC_vip_single_cam_opencvcanny under "MAKECONFIG?=tda2xx_evm_bios_opencx" configuration.

But build failed and received the  following error

error: symbol "atan2" redefined: first defined in

   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/open_compute/
   opencl_rtos_am57xx_01_01_10_00/packages/ti/opencl/usr/share/ti/opencl/libm.l
   ib<e_atan2.o>"; redefined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/cg_tools/linu
   x/ti-cgt-c6000_8.2.4/lib/rts6600_elf.lib<atan2.obj>"
error: symbol "cosh" redefined: first defined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/open_compute/
   opencl_rtos_am57xx_01_01_10_00/packages/ti/opencl/usr/share/ti/opencl/libm.l
   ib<e_cosh.o>"; redefined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/cg_tools/linu
   x/ti-cgt-c6000_8.2.4/lib/rts6600_elf.lib<cosh.obj>"
error: symbol "cos" redefined: first defined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/open_compute/
   opencl_rtos_am57xx_01_01_10_00/packages/ti/opencl/usr/share/ti/opencl/libm.l
   ib<s_cos.o>"; redefined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/cg_tools/linu
   x/ti-cgt-c6000_8.2.4/lib/rts6600_elf.lib<cos.obj>"
error: symbol "exp" redefined: first defined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/open_compute/
   opencl_rtos_am57xx_01_01_10_00/packages/ti/opencl/usr/share/ti/opencl/libm.l
   ib<e_exp.o>"; redefined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/cg_tools/linu
   x/ti-cgt-c6000_8.2.4/lib/rts6600_elf.lib<exp.obj>"
error: symbol "log" redefined: first defined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/open_compute/
   opencl_rtos_am57xx_01_01_10_00/packages/ti/opencl/usr/share/ti/opencl/libm.l
   ib<e_log.o>"; redefined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/cg_tools/linu
   x/ti-cgt-c6000_8.2.4/lib/rts6600_elf.lib<log.obj>"
error: symbol "sinh" redefined: first defined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/open_compute/
   opencl_rtos_am57xx_01_01_10_00/packages/ti/opencl/usr/share/ti/opencl/libm.l
   ib<e_sinh.o>"; redefined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/cg_tools/linu
   x/ti-cgt-c6000_8.2.4/lib/rts6600_elf.lib<sinh.obj>"
error: symbol "sin" redefined: first defined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/open_compute/
   opencl_rtos_am57xx_01_01_10_00/packages/ti/opencl/usr/share/ti/opencl/libm.l
   ib<s_sin.o>"; redefined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/cg_tools/linu
   x/ti-cgt-c6000_8.2.4/lib/rts6600_elf.lib<sin.obj>"
error: symbol "sqrt" redefined: first defined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/open_compute/
   opencl_rtos_am57xx_01_01_10_00/packages/ti/opencl/usr/share/ti/opencl/libm.l
   ib<c_sqrt.o>"; redefined in
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/ti_components/cg_tools/linu
   x/ti-cgt-c6000_8.2.4/lib/rts6600_elf.lib<sqrt.obj>"
error: errors encountered during linking;
   "/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/vision_sdk/binaries/apps/td
   a2xx_evm_bios_opencx/vision_sdk/bin/tda2xx-evm/vision_sdk_c66xdsp_1_release.
   xe66" not built
/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/vision_sdk/build/rtos/makerules/rules_66.mk:271: recipe for target '/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/vision_sdk/binaries/apps/tda2xx_evm_bios_opencx/vision_sdk/bin/tda2xx-evm/vision_sdk_c66xdsp_1_release.xe66' failed
make[7]: *** [/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/vision_sdk/binaries/apps/tda2xx_evm_bios_opencx/vision_sdk/bin/tda2xx-evm/vision_sdk_c66xdsp_1_release.xe66] Error 1
/home/vijender/PROCESSOR_SDK_VISION_03_06_00_00/vision_sdk/build/rtos/makerules/common.mk:271: recipe for target 'c66xdsp_1' failed
make[6]: *** [c66xdsp_1] Error 2
MAKEFILE.MK:116: recipe for target 'apps_dsp1' failed
make[5]: *** [apps_dsp1] Error 2
MAKEFILE.MK:31: recipe for target 'apps' failed
make[4]: *** [apps] Error 2
MAKEFILE.MK:299: recipe for target 'apps' failed
make[3]: *** [apps] Error 2
Makefile:175: recipe for target 'apps_exe' failed
make[2]: *** [apps_exe] 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

 

 

****************************************************************************************

I also attach the configuration file

 

 

#
# This file defines the modules included in $(MAKECONFIG) config
#
# Modules are split into,
# - Use-cases specified in uc_cfg.mk
# - Other system config/feature, specified in this file
#
# Any specific overrides are also specified in this file
# Example, for TDA3x SoC EVE2/3/4 are not present and hence force marked as <blank>, i.e disabled
#

#
# Additional config options
#

# Configure this parameter to enable using OpenCL with OpenCV
# Setting yes enables OpenCL in OpenCV
# Anything else disables it
OPENCV_OPENCL=yes


#
# CPUs to included in build
#
# EVEs, IPU1-1 not required for OpenCx demos hence disabled
# for build custom use-cases with EVE and OpenCx, EVE, IPU1-1
# can be enabled as required
#
PROC_IPU1_0_INCLUDE=yes
PROC_IPU1_1_INCLUDE=no
PROC_IPU2_INCLUDE=no
PROC_A15_0_INCLUDE=yes
PROC_DSP1_INCLUDE=yes
PROC_DSP2_INCLUDE=no
PROC_EVE1_INCLUDE=no
PROC_EVE2_INCLUDE=no
PROC_EVE3_INCLUDE=no
PROC_EVE4_INCLUDE=no


VSDK_BOARD_TYPE=TDA2XX_EVM

DUAL_A15_SMP_BIOS=no

# Supported values: DDR_MEM_512M
DDR_MEM=DDR_MEM_512M

# Supported values: ipu1_0 ipu1_1 a15_0 none
NDK_PROC_TO_USE=a15_0

# Supported values: ipu1_0 none
FATFS_PROC_TO_USE=ipu1_0
ifeq ($(OPENCV_OPENCL), yes)
FATFS_PROC_TO_USE=a15_0
endif

#
# Used to control building of algorithm source.
# By default algorithm source not included in Vision SDK
#
BUILD_ALGORITHMS=no



#
# Applies profile to all cores
#
# Supported profiles: release debug
#PROFILE=debug
PROFILE ?= release

PROFILE_ipu1_0 ?= $(PROFILE)
PROFILE_ipu1_1 ?= $(PROFILE)
PROFILE_ipu2 ?= $(PROFILE)
PROFILE_c66xdsp_1 ?= $(PROFILE)
PROFILE_c66xdsp_2 ?= $(PROFILE)
PROFILE_arp32_1 ?= $(PROFILE)
PROFILE_arp32_2 ?= $(PROFILE)
PROFILE_arp32_3 ?= $(PROFILE)
PROFILE_arp32_4 ?= $(PROFILE)
PROFILE_a15_0 ?= $(PROFILE)

#
# For TDA2xx & TDA2Ex - vision SDK can run on either IPU1 or IPU2 subsystem
# For TDA3xx - We have only IPU1 and hence IPU1 is the only option
# Select IPU primary core from the available IPU1 & IPU2 subsytems
#
# Supported values: ipu1_0 ipu2
IPU_PRIMARY_CORE=ipu1_0
IPU_SECONDARY_CORE=ipu2

#
# Set A15_TARGET_OS
# A15 can run Linux or Bios
#
#                 A15_TARGET_OS support
#   Platform        BIOS        Linux
#
#   TDA2XX_EVM      yes         yes
#   TDA3XX_EVM      yes         no
#   TDA2EX_EVM      yes         yes
#
# Supported values: Bios Linux
A15_TARGET_OS=Bios

IVAHD_INCLUDE=yes
VPE_INCLUDE=yes
DSS_INCLUDE=yes

#
# EMIF ECC and Freedom from Interference (FFI) are clubbed together as they
# involve consolidated memory map changes
# ECC_FFI_INCLUDE=yes is not supported for DDR_MEM_128M
# If ECC_FFI_INCLUDE is set to no - memory map will match older versions.
# Firewall configuration and DSP XMC configuration is enabled/disabled using this
# flag
# Vision SDK does not enable EMIF ECC but expects SBL to enable it.
# Vision SDK sets up ECC error handlers irrespective of value of ECC_FFI_INCLUDE.
#
ECC_FFI_INCLUDE=no

AVB_INCLUDE=no

#
# Enable below macro to enable DCAN integration into Vision SDK.
#
DCAN_INCLUDE=no

CPU_IDLE_ENABLED=yes

#
# Enable below macro to view the bandwidth used by different IPs in the device
# as a graphical plot on the display screen.
#
DATA_VIS_INCLUDE=no

OPENCL_INCLUDE=yes
ENABLE_OPENCV=yes
ENABLE_OPENCV_TESTS=no
BUILD_OPENCV_SRC=no
TREAT_WARNINGS_AS_ERROR = no
HS_DEVICE=no

include $($(MAKEAPPNAME)_PATH)/configs/$(MAKECONFIG)/uc_cfg.mk

 Please suggest me the solution to run the OpenCV usecase.  

 

Thank you & Regard

Vijender