Menu

PocketSphinx With Visual Studio 2013 Linker Error

Help
Amine.B
2015-06-21
2015-06-21
  • Amine.B

    Amine.B - 2015-06-21

    Hi Guys, i was about to make a school project for voice recognition in raspberry pi, i followed step by step the tutorial on the Website, then i got a linker error while building PocketSphinx on VS2013

    fatal error LNK1181: cannot open input file 'sphinxbase.lib'

    Sphinxbase compiled successfully, but the sphinxbase.lib is still missing

    thank you kindly in advance

     
    • Nickolay V. Shmyrev

      You need to make sure you have a proper project layout as pointed in README. Sphinxbase must be in the same folder as pocketsphinx and must be named just "sphinxbase" without version.

       
  • Amine.B

    Amine.B - 2015-06-21

    Thank you for the reply, the github folder for sphinxbase didn't have any version as name, so i deleted it and replaced it with the sourgeforge version for win32, after deleting the version name and making a batch build it works .. but now i have another problem, when i execute in VS2013 it shows me this error :

    Unable to start the program : E:\Package\pocketsphinx-5prealpha-win32\bin\debug\pocketsphinx.dll

    i copy-pasted the dll from sphinxbase to pocketsphinx bin folder but nothing happened

     

    Last edit: Amine.B 2015-06-21
    • Nickolay V. Shmyrev

      Files with extension dll are libraries, you can not start them. You include them into other applications as a common shared part.

      You can start executables. Those have .exe extension. A small crash course on software development could help you with the basics.

       
  • Amine.B

    Amine.B - 2015-06-21

    i know, it is just confusing i taught it will run automatically the .exe files located in bin folder, i'm just more familiar with known C++ libraries where you just include libraries and link .lib to your project and done., so now when the pocketsphinx.sln is compiled without any errors, i believe that i can use this one as a library and link to my project ?

     
    • Nickolay V. Shmyrev

      If you are about raspberry pi, then you can not use Windows DLLs on it. You have to cross-compile pocketsphinx or compile pocketsphinx on raspberry pi itself.

      Our wiki page has information about raspberry pi, you can also find a lot of information about Raspberry Pi development on the web.

       
  • Amine.B

    Amine.B - 2015-06-21

    Yes it is about Raspberry PI, i found that i can use VisualGDB to cross compile it, i'll take a look on the wiki page.

    Thank you for the information

     

Log in to post a comment.