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.

CCS/TDA2PXEVM: Getting linking issues in CCS static library creation

Part Number: TDA2PXEVM

Tool/software: Code Composer Studio

Hi,

I am using Code composer studio 7.4.0. for creating static library of C / CPP files. This static library I want to use in vision sdk plugin.

I'm able to create static lib and use successfully in vision sdk when library code doesn't contain vision sdk functions such as Utils_memAlloc, Utils_memFree, UTILS_assert, Utils_getCurGlobalTimeInMsec() etc.

But when I include vision sdk functions in library code, I get compilation error saying "function undefined". My library project location and visionsdk folder are different. I have included vision sdk folder path to ccs static library project in "Properties->Build->C6000 Compiler->Include Options", now I'm not getting compilation error but now I'm getting linking issues in .obj files.

Please suggest how to resolve this issue ?

  • Hello,
    The linker errors are likely a missing dependent object file.

    I will move this post to the device forums. The experts there are most familiar with the SDK and can help you further.

    Thanks
    ki
  • Hi,

    Please try to build using makefile based build system as CCS based build is not supported by TI for VSDK.

    Regards,
    Anuj
  • Hi Anuj,

    Thanks for the reply.

    I tried creating makefile based build system project but I did not find a way to create static lib of existing source code.

    Can you please guide me in creating static library of algorithm (contains vision sdk functions ) that will again be used in vision sdk using makefile based build system?

    Regards,

    Megha

  • Hi,

    In VSDK we build a lot of static libraries using our makefiles.
    You just need to take a reference of any library.
    Please go through the below doc
    vision_sdk\docs\FeatureSpecificUserGuides\VisionSDK_UserGuide_BuildSystem.pdf

    Regards,
    Anuj
  • Hi,
    I'm able to use created static library in vision sdk. and its giving proper output as well.

    But when I used "Vps_printf" , "Utils_memAlloc" etc functions in my source code( code using which static lib needs to be created) , I'm getting following linking issues in creating static library in ccs and library is not getting created:

    gmake: *** [source/fisheye_Image.obj] Error 1 C/C++ Problem
    gmake: Target 'all' not remade because of errors. C/C++ Problem

    I have included visionsdk folder path in Include Options.

    What needs to be done in order to resolve these linking issues?

    Regards,
    Megha
  • Hi,

    If you are getting these linking error that means you are not linking with utils_common lib.
    Please make sure you are linking this library.

    Regards,
    Anuj