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.

TDA2PXEVM: [TDA2Px][VSDK03-07-01-00]How to make .lib file from algorithms

Part Number: TDA2PXEVM

Hi,

I want to make .lib file from my original algorithm.

How can I do it?

In my understanding, procedure is like followings:

1. make "algorithms" dir under /vision_sdk

2. put my algorithms under "algorithms" dir

3. make "makefile" and put it under "algorithms" dir

4. do "make -s -j algorithmslib" on /vision_sdk/build

My questions are:

* Is this procedure correct?

* Could you show me some easy(most easy) example? I offer this because I do not understand what files should be put in procedure no. 2 and I need a sample makefile to modify for my algorithms.

Thanks in advance.

Koji

  • Hi,

    The tool-chain available in the directory

    ti_components\cg_tools\$(OS)\

     You can do what-ever you want & make sure your algorithm files should compile & the above steps look good to me

    The below example for DSP 

    --------------------------------------

    If you want to create a library called function.lib that contains the files sine.obj, cos.obj, and flt.obj, enter:
    ar-arp32 -a function sine.obj cos.obj flt.obj
    The archiver responds as follows:
    ==> new archive 'function.lib' ==> building new archive 'function.lib'

    sine.obj cos.obj flt.obj  are object files & these are generated during compilation of sine.c, cos.c, flt.c

  • Hi,

    Thank for your reply.

    As a first step, I tried making simple .lib file for A15 using following myprintf.c file.

    ===============================
    #include "myprintf.h"
    void myprintf(int x){
     printf("****my_printf_test****  %d \n", x);
    }
    ===============================
    I was able to get .lib file(myprintf.lib) by commands below.
    ../bin/armcl --include_path ../include/ myprintf.c
    ../bin/armar -a myprintf myprintf.obj
    In order to use it in sgxFrmcpy, I added MAKEFILE.MK under "/vision_sdk/apps/" following sentence, but it cannot be included in build target.
    APP_LIBS_a15_0 += $(vision_sdk_PATH)/links_fw/src/hlos/links_a15/sgxFrmcpy/lib/myprintf.lib
    Which makefile should I modify? And what sentence should I add to it?
    Thanks.
    Koji