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.

Build error while building Object Detection module in TDA2x



Hello Everyone,

     I have the following SDK:

D3_VISION_SDK_03_02_63_00_RC_TDA2X_RVP_LINUX

I am trying to build the usecase vip_single_cam_object_detection2 in hlos.I have ported it from rtos.

I have done changes to the following files:

  cfg.mk under vision_sdk\apps\configs

uc_cfg.mk under vision_sdk\apps\configs\tda2xx_rvp_linux_all

 chains_main_linux_single_cam.c under vision_sdk\apps\src\hlos\adas\src\common

chains.h under vision_sdk\apps\src\hlos\adas\include

and MAKEFILE_adas.MK under vision_sdk\apps\src\hlos

I am getting the following error while giving the command make -s -j followed by make depend -s -j:

# links_a15_algorithm: tda2xx-rvp: Compiling algorithmLink_cfg.c
# links_a15_algorithm: tda2xx-rvp: Creating archive links_a15_algorithm.a
# system: tda2xx-rvp: Compiling system_common.c
# system: tda2xx-rvp: Compiling system_ipc.c
# osa: tda2xx-rvp: Compiling osa_remote_log_server.c
# osa: tda2xx-rvp: Compiling osa_mem.c
# osa: tda2xx-rvp: Compiling osa_remote_log_client.c
# system: tda2xx-rvp: Creating archive system.a
# osa: tda2xx-rvp: Creating archive osa.a
make[6]: MAKEFILE.MK: No such file or directory
make[6]: *** No rule to make target 'MAKEFILE.MK'. Stop.
MAKEFILE_adas.MK:14: recipe for target 'vision_sdk_linux_demo' failed
make[5]: *** [vision_sdk_linux_demo] Error 2
MAKEFILE_adas.MK:5: recipe for target 'apps' failed
make[4]: *** [apps] Error 2
Makefile:183: recipe for target 'apps_exe_hlos' failed
make[3]: *** [apps_exe_hlos] Error 2
Makefile:64: recipe for target 'apps_hlos' failed
make[2]: *** [apps_hlos] Error 2
Makefile:36: recipe for target 'apps' failed
make[1]: *** [apps] Error 2
Makefile:12: recipe for target 'vision_sdk' failed
make: *** [vision_sdk] Error 2

Please let me know if I am missing something.Please note that I have used the same chain structure as in rtos for this usecase.The following is the chain structure:

chains_vipSingleCameraObjectDetect2Tda3xx

Capture -> Alg_ImagePreProcess (EVE1) -> Dup_capture -> Merge_alg

Dup_capture -> Alg_ImgPyramid -> Dup_imgPyramid -> Alg_FPCompute (EVE1) -> Alg_ObjectDetection (DSP1) -> Merge_objectDetect (DSP1)

Dup_imgPyramid -> Merge_objectDetect (DSP1) -> Sync_objectDetect (DSP1) -> Alg_ObjectClassification (DSP1) -> Merge_alg -> Sync_alg -> Alg_ObjectDraw -> Display_alg

GrpxSrc -> Display_Grpx

Thanking you in advance,

Best Regards,

Vijay

  • Hi Vijay,

    under hlos you need to add MAKEFILE.MK for your usecase (you can take it from existing usecase).
    You can check chapter "6.2 Adding new use-cases to build (Linux + BIOS mode)" of VisionSDK_UserGuide_BuildSystem.pdf for a step-by-step guide of adding usecase for hlos.

    Regards,
    Yordan
  • Hello Yordan,
    Thank you for the information.I could resolve the error.But I am getting another error while compilation.
    The following is the error:
    In file included from /home/bharat/Downloads/tmp_dl/vision_sdk/apps/src/include/chains_common.h:83:0,
    from chains_vipSingleCameraObjectDetect2Tda3xx.c:67:
    /home/bharat/Downloads/tmp_dl/vision_sdk/apps/src/include/chains.h:123:55: fatal error: ti/drv/vps/include/platforms/bsp_platform.h: No such file or directory
    compilation terminated.
    /home/bharat/Downloads/tmp_dl/vision_sdk/build/hlos/makerules/linux/common_footer_a15.mk:81: recipe for target 'depend' failed
    make[6]: *** [depend] Error 1
    MAKEFILE_adas.MK:14: recipe for target 'vision_sdk_linux_demo' failed
    make[5]: *** [vision_sdk_linux_demo] Error 2
    MAKEFILE_adas.MK:5: recipe for target 'apps' failed
    make[4]: *** [apps] Error 2
    Makefile:183: recipe for target 'apps_exe_hlos' failed
    make[3]: *** [apps_exe_hlos] Error 2
    Makefile:64: recipe for target 'apps_hlos' failed
    make[2]: *** [apps_hlos] Error 2
    Makefile:36: recipe for target 'apps' failed
    make[1]: *** [apps] Error 2
    Makefile:12: recipe for target 'vision_sdk' failed
    make: *** [vision_sdk] Error 2


    The error says bsp_platform.h: No such file or directory.But the file is present in the sdk.I request you to help me in resolving the error.

    Best Regards,
    Vijay
  • Hi Vijay,

    can you check if in your usecase files there are includes of chains_common.h?

    In rtos usecases they look like:

    #include <src/include/chains_common.h>

    can you try to change them to:

    #include <src/hlos/common/chains_common.h>

    and see if it works?

    Regards,
    Yordan
  • Hello Yordan,
    Thank you for the information.It worked.I am able to compile and generate the binaries.
    I ran the use case of object detection in single camera and I got the following error:

    [HOST] [HOST ] 439.307417 s:
    [HOST] [HOST ] 439.307448 s:
    [HOST] [HOST ]
    [HOST] [HOST ] Select use-case options,
    [HOST] [HOST ] ------------------------
    [HOST] [HOST ] 1: Enable Pedestrain Detect (PD)
    [HOST] [HOST ] 2: Enable Traffic Sign Regonition (TSR)
    [HOST] [HOST ] 3: Enable Vehicle Detect (VD)
    [HOST] [HOST ] 4: Enable PD+TSR+VD
    [HOST] [HOST ]
    [HOST] [HOST ] Enter Choice:
    [HOST] [HOST ]
    1
    [HOST] [IPU2 ] 450.403403 s: CAPTURE: Create in progress !!!
    [HOST] [IPU2 ] 450.403800 s: CAPTURE: VIP2 Slice0 PortA capture mode is [ 8-bit] !!!
    [HOST] [IPU2 ] 450.403952 s: captdrv/src/vpsdrv_capturePriv.c @ Line 266:
    [HOST] [IPU2 ] 450.404044 s: Invalid number of streams(0) - Supported max streams 8
    [HOST] [IPU2 ] 450.404135 s: Assertion @ Line: 548 in captureLink_drv.c: pInst->captureVipHandle != NULL : failed !!!

    I request you to help me in resolving this issue.

    Best Regards,
    Vijay
  • Hi Vijay,

    I saw in the other thread that this particular issue is resolved.
    Can we close this one and continue the discussion in the other thread?

    Regards,
    Yordan