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.

Compiler/TDA4VM: How to use Draw2d functions inside kernel on DSP

Part Number: TDA4VM
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI C/C++ Compiler

Hello,

I would like to use the draw2d functions to draw bbox and text on DSP, so changed releated code and  concerto.mak by below reference.

https://e2e.ti.com/support/processors/f/791/p/876587/3243357?tisearch=e2e-sitesearch&keymatch=draw2d#3243357

But  an error occurs while compiling vision_apps,

I think that It was related to cannot refer to the external lib.
What should I do additionally?

Could you let me know how to add app_utils_draw2d.lib in concerto.mak file

I am not familiar with concerto build system.

please refer to below log

----------------------------------------------------------->

undefined first referenced
symbol in file
--------- ----------------
Draw2D_drawRect /home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSBIOS/release/vx_target_kernels_img_proc_c66.lib<vx_draw_keypoint_detections_target.obj>

error: unresolved symbols remain
error: errors encountered during linking;
"/home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSB
IOS/release/vx_app_tirtos_linux_c6x_1.out" not built
concerto/finale.mak:206: recipe for target '/home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSBIOS/release/vx_app_tirtos_linux_c6x_1.out' failed
make[1]: [/home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSBIOS/release/vx_app_tirtos_linux_c6x_1.out] Error 1 (ignored)
Building vx_app_tirtos_linux_c6x_1.out as static library
Running xdc configuro for apps.basic_demos.app_tirtos.tirtos_linux.c66x_2
Linking /home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSBIOS/release/vx_app_tirtos_linux_c6x_2.out

undefined first referenced
symbol in file
--------- ----------------
Draw2D_drawRect /home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSBIOS/release/vx_target_kernels_img_proc_c66.lib<vx_draw_keypoint_detections_target.obj>

error: unresolved symbols remain
error: errors encountered during linking;
"/home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSB
IOS/release/vx_app_tirtos_linux_c6x_2.out" not built
concerto/finale.mak:206: recipe for target '/home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSBIOS/release/vx_app_tirtos_linux_c6x_2.out' failed
make[1]: [/home/mmd/tda4v/psdk_rtos_auto_j7_06_02_00_21/vision_apps/out/J7/C66/SYSBIOS/release/vx_app_tirtos_linux_c6x_2.out] Error 1 (ignored)
Building vx_app_tirtos_linux_c6x_2.out as static library
Building vx_app_ptk_demo_common.lib as static library
Building vx_kernels_common.lib as static library
Building vx_target_kernels_img_proc_c66.lib as static library

<----------------------------------------------------------------------------------------------

BR,

Khethan

  • Hello there,

    Is there any update for me ?

    BR,

    Khethan

  • Please do below to compile and link draw2d to c6x, c7x…

     

    diff --git a/apps/basic_demos/app_tirtos/concerto_c6x_inc.mak b/apps/basic_demos/app_tirtos/concerto_c6x_inc.mak

    index 84262d9..5d377ed 100755

    --- a/apps/basic_demos/app_tirtos/concerto_c6x_inc.mak

    +++ b/apps/basic_demos/app_tirtos/concerto_c6x_inc.mak

    @@ -25,6 +25,7 @@ STATIC_LIBS += app_utils_udma

    STATIC_LIBS += app_utils_sciclient

    STATIC_LIBS += app_utils_misc

    STATIC_LIBS += app_utils_perf_stats

    +STATIC_LIBS += app_utils_draw2d

    STATIC_LIBS += vx_target_kernels_img_proc_c66

    STATIC_LIBS += vx_app_ptk_demo_common

    STATIC_LIBS += vx_kernels_common

     

    diff --git a/apps/basic_demos/app_tirtos/concerto_c7x_inc.mak b/apps/basic_demos/app_tirtos/concerto_c7x_inc.mak

    index 801e27a..0b781e8 100755

    --- a/apps/basic_demos/app_tirtos/concerto_c7x_inc.mak

    +++ b/apps/basic_demos/app_tirtos/concerto_c7x_inc.mak

    @@ -29,6 +29,7 @@ STATIC_LIBS += app_utils_udma

    STATIC_LIBS += app_utils_sciclient

    STATIC_LIBS += app_utils_misc

    STATIC_LIBS += app_utils_perf_stats

    +STATIC_LIBS += app_utils_draw2d

    STATIC_LIBS += vx_target_kernels_park_assist

    STATIC_LIBS += vx_target_kernels_stereo

    STATIC_LIBS += vx_app_ptk_demo_common

     

    diff --git a/utils/draw2d/src/concerto.mak b/utils/draw2d/src/concerto.mak

    index aada787..9350adc 100644

    --- a/utils/draw2d/src/concerto.mak

    +++ b/utils/draw2d/src/concerto.mak

    @@ -1,5 +1,5 @@

     

    -ifeq ($(TARGET_CPU),$(filter $(TARGET_CPU), x86_64 A72 R5F))

    +ifeq ($(TARGET_CPU),$(filter $(TARGET_CPU), x86_64 A72 R5F C66 C71))

     

     include $(PRELUDE)

    TARGET      := app_utils_draw2d

    @@ -9,7 +9,7 @@ CSOURCES    := $(call all-c-files)

     

     IDIRS       := $(VISION_APPS_PATH)

     

    -ifeq ($(TARGET_CPU),$(filter $(TARGET_CPU), R5F))

    +ifeq ($(TARGET_CPU),$(filter $(TARGET_CPU), R5F C66 C71))

    DEFS+=EXCLUDE_BMP_LOAD

    endif

  • Can you confirm if this issue can be closed ?

  • Hello,

    I resolved the issue by referring your solution.

    Thank you very much

    BR,

    Khethan