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.

Linux/AM5728: TIDEP0076 build with CMake

Part Number: AM5728
Other Parts Discussed in Thread: TIDEP0076,

Tool/software: Linux

Hi TI experts

I'm trying to deploy TIDEP0076 design on AM5728, the target is to Generate point cloud with IDS ethernet based camera.

Recommended approaches in tiduc48b are:

1. use pre-build binaries

2. rebuild TIDEP0076 with bitbake by rebuiding SDK based on instruction processors.wiki.ti.com/.../Processor_SDK_Building_The_SDK

Option 1 is just for quick verification while option 2 is quite slow(maybe because of the great wall in China) and I haven't succeed.

I tried another approach: use installed TI SDK together with cmake to build TIDEP0076 based on dlp-sdk-2.0.tar.gz.

The options in cmake:

compiler is directed to ${TISDK}/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc / g++

OpenCV install folder is directed to ${TISDK}/targetNFS/usr/share/OpenCV

Makefile is successfully generated.

While building the DLP sdk, I got error information below.

Strangely, I can't find where this clc.h is referred in this DLP sdk. This error is popped up during building opencl part.

For other part src like common folder, I can successfully build if I manually remove the opencl dependency.

Could you please help?

<built-in>:335:10: fatal error: 'clc.h' file not found

Makefile:9: recipe for target 'dlp_kernels.dsp_h' failed
make[3]: *** [dlp_kernels.dsp_h] Error 255
CMakeFiles/DLP_SDK_OPENCL.dir/build.make:57: recipe for target 'CMakeFiles/DLP_SDK_OPENCL' failed
make[2]: *** [CMakeFiles/DLP_SDK_OPENCL] Error 2
CMakeFiles/Makefile2:284: recipe for target 'CMakeFiles/DLP_SDK_OPENCL.dir/all' failed
make[1]: *** [CMakeFiles/DLP_SDK_OPENCL.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

  • Hello,

    Please check this thread and try to follow the steps:
    e2e.ti.com/.../2346480
    You could check this one for more information also:
    e2e.ti.com/.../1966862

    Hope this helps.


    BR
    Margarita

  • Hi
    Thanks for your quick response.
    e2e.ti.com/.../1966862 I tried before, it works for installing the binary dlp package.
    e2e.ti.com/.../2346480 is about bitbake approach to rebuild the SDK.

    I tried this new cmake approach. I assume it make works because
    1. I get the proper Makefile generated.
    2. I can complie some of the sources/objects by removing the opencl dependency.

    The issue I got is during OPENCL build in folder /dlp-sdk-2.0/src/opencl
    In Makefile in this opencl folder, two folders are referred:
    DSP_INCLUDE = -I$(TI_OCL_CGT_INSTALL)/include
    DSP_INCLUDE += -I$(TGT_RDIR)/usr/share/ti/cgt-c6x/include
    DSP_INCLUDE += -I$(TGT_RDIR)/usr/share/ti/opencl

    1. TI_OCL_CGT_INSTALL: the C6000 complier installation specified by TI_OCL_CGT_INSTALL, i don't know what does it means.
    2. TGT_RDIR: I tried to direct it to ${TISDK}/targetNFS with export TGT_RDIR=${TISDK}/targetNFS but failed.
    I manully copy clc.h, dsp.h and dsp_c.h into the dlp-sdk-2.0/src/opencl folder, this clc.h missing problem is gone.

    Now I have these 2 questions:
    1. What is this TI_OCL_CGT_INSTALL and how to specify it so that make command can get the right input?
    2. How to specify TGT_RDIR so that make command can get the right input?
  • Hello,

    user4686533 said:
    1. TI_OCL_CGT_INSTALL: the C6000 complier installation specified by TI_OCL_CGT_INSTALL, i don't know what does it means.

    Try with : /ti-processor-sdk-linux-am57xx-evm-xxxx/linux-devkit/sysroots/x86_64-arago-linux/usr/share/ti/cgt-c6x

    BR
    Margarita

  • Hello,

    user4686533 said:
    e2e.ti.com/.../2346480 is about bitbake approach to rebuild the SDK.

    Yes. It is recommend approach in here also:

    http://www.ti.com/lit/ug/tiduc48b/tiduc48b.pdf

    BR
    Margarita

    1. Hi

    I got all the files complied but is now blocked by linking
    error shows:
    Linking CXX executable bin/DLP_LIGHTCRAFTER
    cannot find -lhidapi-libusb
    cannot find -lflycapture

    for flycapture libs, I've installed flycapture.2.9.3.43_armhf.tar and manually specify the lib in CMakelists.txt with following statements:
    find_library(flycapture-c libflycapture-c "/home/abb/flycapture.2.9.3.43_armhf/lib/c")
    list(APPEND LIBS ${flycapture-c})

    I re-run the cmake to generate the Makefile, unfortunately, the ld program still can't find this flycapture.

    These two libs are requested in CMakefile.txt as
     target_link_libraries(DLP_LIGHTCRAFTER DLP_SDK )
    target_link_libraries(DLP_LIGHTCRAFTER ${LIBS} hidapi-libusb flycapture-c -Wl,--allow-shlib-undefined dl rt wayland-client wayland-cursor EGL GLES_CM xkbcommon pvr_wlegl )

    I don't know how to specify them, could you please help?