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/TDA2: how to use lib in alg_plugins

Part Number: TDA2

Tool/software: Linux

vision_sdk\sample_app\src\rtos\alg_plugins\framecopy      in framecopy link, i add my algorithm Interface function after framecopy is done, Initialization add in Alg_FrameCopyCreate .
it Include 10 .c file and 8 .h file , i add .c file name in SRC_FILES.MK to Compile them.  

so   add   my  souce  code  is  success,   now    i    first   use ccs Compile   my  souce  code    create my.lib.  

then    in   vision_sdk\sample_app\MAKEFILE.MK     i   add    APP_LIBS_c66xdsp_1 += $(ROOTDIR)/my.lib   APP_LIBS_c66xdsp_2 += $(ROOTDIR)/my.lib 

but  failed    follow  is  the  log

# Making tda2xx-evm:c66xdsp_1:release:vision_sdk_lib...
make[7]: *** No rule to make target `/home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/my.lib', needed by `/home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/binaries/sample_app/tda2xx_evm_linux_all/vision_sdk/bin/tda2xx-evm/vision_sdk_c66xdsp_1_release.xe66'.  Stop.
make[6]: *** [c66xdsp_1] Error 2
make[5]: *** [apps_dsp1] Error 2
make[5]: *** Waiting for unfinished jobs....
# Making tda2xx-evm:arp32_2:release:vision_sdk_lib...
# Configuro done!
# Configuro done!

BESTWISHES!

  • Hi,

    What you want to do?

    1> Build your lib using your .c and .h files?
    2> Use the lib built by CCS in framecopy algorithm?

    Regards,
    Anuj
  • Hi: Anuj
    framecopy algorithm is a algorithm link ,now it done framecopy algorithm then add myself algorithm.
    so i donot have to make a new algorithm link. Now do you understand what i have to do ?

    then i put all my source file(10 .c file and 8 .h file) in vision_sdk\sample_app\src\rtos\alg_plugins\framecopy , i add .c file name in SRC_FILES.MK to Compile them , i add my algorithm Interface function after framecopy is done, Initialization of my algorithm add in Alg_FrameCopyCreate . this way is success, my algorithm is run ,result is correct.

    promblem is come in. i have to compile my source into libraries, in framecopy algorithm call the lib(i use CCS compiled it and creat my.lib, and put my.lib in vision_sdk Folder), in vision_sdk\sample_app\MAKEFILE.MK i add APP_LIBS_c66xdsp_1 += $(ROOTDIR)/my.lib APP_LIBS_c66xdsp_2 += $(ROOTDIR)/my.lib
    when i make the vision_sdk it have some problem follow is the LOG.
    # Making tda2xx-evm:c66xdsp_1:release:vision_sdk_lib...
    make[7]: *** No rule to make target `/home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/my.lib', needed by `/home/hancan/PROCESSOR_SDK_VISION_03_02_00_00/vision_sdk/binaries/sample_app/tda2xx_evm_linux_all/vision_sdk/bin/tda2xx-evm/vision_sdk_c66xdsp_1_release.xe66'. Stop.
    make[6]: *** [c66xdsp_1] Error 2
    make[5]: *** [apps_dsp1] Error 2
    make[5]: *** Waiting for unfinished jobs....
    # Making tda2xx-evm:arp32_2:release:vision_sdk_lib...
    # Configuro done!
    # Configuro done!
    do you know what is my problem?
    BESTWISHES!
    shuai
  • Hi,

    1st thing where you have added your lib in makefile thats not correct. If you add there then it will try to create that lib using your source file.
    Please go through the makefiles and try to undertsand how it works.

    2nd thing, you said that you are building your library in ccs so that is not right way as CCS might use different toolchain than VSDK.
    So try to create your library using VSK toolchains only

    3rd if you want to use your lib in a link then take reference of encoder module, How an encoder link uses encoder lib.
    You can find the path of encoder libs in build/tools_path.mk

    Please go through below docs
    vision_sdk\docs\FeatureSpecificUserGuides\VisionSDK_DevelopmentGuide.pdf
    vision_sdk\docs\FeatureSpecificUserGuides\VisionSDK_UserGuide_BuildSystem.pdf

    Regards,
    Anuj