Menu

Bluilding application pocketsphinx with Qt

Help
med
2016-05-27
2016-05-27
  • med

    med - 2016-05-27

    Hello,
    When creating the application for voice reconnaisssance by pocketsphinx I met some problems that bother me.
    I captured the issues in attached picture .
    Help me please
    WARNING: Failure to find: ../projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release/sphinx_config.h
    WARNING: Failure to find: ../projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release/ps_search.h
    WARNING: Failure to find: ../projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release/ps_mllr.h
    WARNING: Failure to find: ../projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release/ps_lattice.h
    WARNING: Failure to find: ../projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release/pocketsphinx_export.h
    WARNING: Failure to find: ../projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release/cmdln_macro.h
    make: Leaving directory /home/user/App/projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release' make: Entering directory/home/user/App/projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release'
    g++ -Wl,-O1 -o projet main.o mainwindow.o moc_mainwindow.o -L/usr/lib/i386-linux-gnu -lQtGui -lQtCore -lpthread
    mainwindow.o: In function MainWindow::Decode()': mainwindow.cpp:(.text+0x14b): undefined reference tops_args'
    mainwindow.cpp:(.text+0x19b): undefined reference to cmd_ln_init' mainwindow.cpp:(.text+0x1ad): undefined reference tops_init'
    mainwindow.cpp:(.text+0x1e1): undefined reference to ps_start_utt' mainwindow.cpp:(.text+0x220): undefined reference tops_process_raw'
    mainwindow.cpp:(.text+0x234): undefined reference to ps_end_utt' mainwindow.cpp:(.text+0x247): undefined reference tops_get_hyp'
    mainwindow.cpp:(.text+0x26f): undefined reference to ps_free' mainwindow.cpp:(.text+0x277): undefined reference tocmd_ln_free_r'
    make: Leaving directory `/home/user/App/projet-build-desktop-Qt_4_8_1_dans_le_PATH__Syst_me__Release'
    collect2: ld returned 1 exit status
    make: *** [projet] Error 1
    03:14:58: Le processus "/usr/bin/make" s'est terminé avec le code 2.
    Erreur à la compilation du projet projet (cible : Desktop)
    Lors de l'exécution de l'étape "Make"

     

    Last edit: med 2016-05-27
    • Nickolay V. Shmyrev

      You need to add libpocketsphinx and libsphinxbase lib to linker properties:

      http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html

      You need to add something like

        -L/usr/local/lib -lpocketsphinx -lsphinxbase
      
       
  • med

    med - 2016-05-27

    Thanxs for reply
    But I'm starting in QtCreator , I have not understood the addition of library method, if other more clear answers
    Thank you

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.