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.

TMS320C5535: How to Build TIesr API's on n ubntu 16.04 LTS

Part Number: TMS320C5535

Hi,

I used the  instructions from "Speech Recognition Reference Design on theC5535 eZdsp™ (tidubj5a.pdf)" But I am unable to build the code on an ubuntu machine. I want to customize voice triggers for that would like to build this code first.

when I built under

/TIesr_src/TIesr_model_build using  "make LinuxDebugGnu" I get errors. Below is the output.

I guess the issue is "TIesrFA_ALSA". But where do I get that? Is there any documentation shows how to build TIesr step by step(like dependencies and everything)?

I have libasound2-dev installed.

cd TIesrFA/TIesrFA_ALSAso && make SUB=no CONF=LinuxDebugGnu build
make[1]: Entering directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
"make" -f nbproject/Makefile-LinuxDebugGnu.mk QMAKE= SUBPROJECTS=NO .build-conf
make[2]: Entering directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
"make" -f nbproject/Makefile-LinuxDebugGnu.mk ../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1
make[3]: Entering directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
make[3]: '../../Dist/LinuxDebugGnu/lib/libTIesrFA_ALSA.so.1' is up to date.
make[3]: Leaving directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
make[2]: Leaving directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
if [ LinuxDebugGnu == LinuxDebugGnu -o \
LinuxDebugGnu == LinuxReleaseGnu -o \
LinuxDebugGnu == ArmLinuxDebugGnueabi -o \
LinuxDebugGnu == ArmLinuxReleaseGnueabi ]; \
then cd ../../Dist/LinuxDebugGnu/lib; \
rm -f libTIesrFA_ALSA.so; \
ln -s libTIesrFA_ALSA.so.1 libTIesrFA_ALSA.so; \
fi
/bin/sh: 1: [: LinuxDebugGnu: unexpected operator
make[1]: Leaving directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TIesrFA_ALSAso'
cd TIesrFA/TestTIesrFA && make SUB=no CONF=LinuxDebugGnu build
make[1]: Entering directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TestTIesrFA'
make -f nbproject/Makefile-LinuxDebugGnu.mk SUBPROJECTS=NO .build-conf
make[2]: Entering directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TestTIesrFA'
make -f nbproject/Makefile-LinuxDebugGnu.mk ../../Dist/LinuxDebugGnu/bin/testtiesrfa
make[3]: Entering directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TestTIesrFA'
mkdir -p ../../Dist/LinuxDebugGnu/bin
g++ -v -v -o ../../Dist/LinuxDebugGnu/bin/testtiesrfa build/LinuxDebugGnu/GNU_current-Linux-x86/_ext/_DOTDOT/src/TestTIesrFA.o -L../../Dist/LinuxDebugGnu/lib -Wl,-rpath `pwd`/../../Dist/LinuxDebugGnu/lib -lTIesrFA_ALSA
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.10' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-v' '-o' '../../Dist/LinuxDebugGnu/bin/testtiesrfa' '-L../../Dist/LinuxDebugGnu/lib' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccmpGC2i.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o ../../Dist/LinuxDebugGnu/bin/testtiesrfa /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L../../Dist/LinuxDebugGnu/lib -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. build/LinuxDebugGnu/GNU_current-Linux-x86/_ext/_DOTDOT/src/TestTIesrFA.o -rpath /share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TestTIesrFA/../../Dist/LinuxDebugGnu/lib -lTIesrFA_ALSA -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o
/usr/bin/ld: cannot find -lTIesrFA_ALSA
collect2: error: ld returned 1 exit status
nbproject/Makefile-LinuxDebugGnu.mk:57: recipe for target '../../Dist/LinuxDebugGnu/bin/testtiesrfa' failed
make[3]: *** [../../Dist/LinuxDebugGnu/bin/testtiesrfa] Error 1
make[3]: Leaving directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TestTIesrFA'
nbproject/Makefile-LinuxDebugGnu.mk:54: recipe for target '.build-conf' failed
make[2]: *** [.build-conf] Error 2
make[2]: Leaving directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TestTIesrFA'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[1]: *** [.build-impl] Error 2
make[1]: Leaving directory '/share/Audiobook/TICode/TIesr_src/TIesr_model_build/TIesrFA/TestTIesrFA'
Makefile:126: recipe for target 'TestTIesrFA' failed
make: *** [TestTIesrFA] Error 2

  • To add on the kit documentation only shows this. I can see almost everyone who tried to build after getting the kit ran into these issues. It is a sad state of affairs that TI has not updated this documentation with what is needed.

    "5.3.3 Building the Modified TIesr Engine
    To build a modified TIesr engine, do as follows:
    1. Copy the source file (/TIesr_src/) to your Ubuntu PC
    2. Navigate to /TIesr_src/TIesr_model_build/ on the console.
    3. Execute the following command: $make LinuxDebugGnu
    This action creates a directory called Dist structured as shown in Figure 9. The model files are used in
    the following step to generate the trigger phrase .bin files.
    Figure 9. Directory Structure of Dist
    4. Open /TIesr_src/TIesr_model_build/build_files.sh for editing.
    This file contains the grammar callers to feed into testTIesrflex to generate the .bin recognition files.
    Choose keywords or phrases that are long and contain rich acoustic content.Figure 10 shows a
    description of the build_files.sh contents."
  • Ronnie,

    Thank you for pointing this out. We will work to get the documentation updated ASAP.

    Lali

  • Hi,

    Could you please tell me now what else i need to get this build successfully? I still can't get it to build. Please refer to my original post with build output.

    Thanks.

    Ronnie JK

  • Hello,

    Can someone give me a working Linux configuration any of you have succefully rebuilt the content of "TIesr_model_build" out of the box?

    Which Ubuntu version was last tested on this software? After buying a TMS320C5535 eZdsp USB Kit for evaluation, I have no success in changing the trigger phrase. 

    All I want is to actually get the TIesr_model_build to build first on an ubuntu configuration. Documentation with the kit does not work.

    Thanks

  • Ronnie,

    Please place the attached bin directory at TIesr\c5535\TIesr_model_build\Dist\LinuxDebugGnu\

    Then do a "gmake LinuxDebugGnu"

    Does the build now go through completely?

    Lali

    /cfs-file/__key/communityserver-discussions-components-files/791/6835.bin.zip