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.

Integrating G726 into DSP application.

Hi all,

I'm trying to integrate the G726 codec into a DSP application, but I'm not getting it to work right.

I've followed this wiki and did the following (I'm running Ubuntu 12.04 BTW):

1- Extracted the encoder and decoder folders from the bin file

2- Put the *.l64P files in a subdir (./libs)

3- Added header files for dsp algorithms compliance (xdas.h, etc.) to my source code

4- Added -i"./libs/" and -l"g726dec_tii.l64P" to my linker command

When trying to compile my code I get:

undefined                        first referenced
symbol                             in file
---------                              ----------------
_G726DEC_TII_init       Release/proj.obj

error: unresolved symbols remain

What am I missing?
Thank you! 

  • Hugo:

       First, is that symbol in the library?

       % strings g726dec_tii.l64P | grep G726DEC_TII_init

        If it is, then it seems the linker path is still not pointing to it.

        Does the test app that comes with the package build OK.  Does it also call a TII_init function?

    Thanks,

    - Gil

  • Hi Gil, thanks for the answer!

    I haven't tried compiling the sample application that comes with the codec first because it's built to run as CE application and it's entirely tuned to XDAIS/XDM compatibility.

    Some docs says it is necessary to call the module master init function (that would be the G726DEC_TII_init) so it was really confusing for me when the linker complained about the missing symbol. After some wasted time reviewing make files I looked in the lib and it is really not there. I wonder why it is declared in the header file if it is not implemented.

    I've found the consumer's guide to integrate codec (which is very good btw) and that is saving my life right now.

    Thanks for the support.

    Hugo