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.

How to link a library in a codec? Confused about xdc, xs, xdcpaths.mak, etc

In a normal `Makefile` or when compiling I just add `-I<path>`.

I don't understand how to do that with all of this `.xdc`, `.xs`, `.x<whatever>` stuff.

How do I link / include headers and libraries? with xdc?

And is it called `xdc`? What is the proper name of this build tool?

 

This question was already asked a few months ago, but it was never given a proper answer:
http://e2e.ti.com/support/embedded/f/356/p/37714/131641.aspx

I have existing code in an existing project and I want to link in a library.
I don't want to start a new IUNIVERSAL codec. 

Futhermore, the suggested reading doesn't even mention includes:
http://processors.wiki.ti.com/index.php/Getting_started_with_IUNIVERSAL

  •  

    Let's say our example is /opt/dvsdk/dvsdk_3_01_00_10/codec_engine_2_25_02_11/examples/ti/sdo/ce/examples/codecs/viddec_copy/package.bld

    And I wanted to use `dsplib` in that codec I would modify `copts`. For Example:

    Pkg.addLibrary("lib/gmti_track", targ).addObjects(SRCS, {copts: "-I/opt/C64x+DSPLIB/dsplib_v210/"});

    More documentation on dvsdk and friends:

    http://fastr.github.com/articles/omap-dvsdk-on-openembedded.html