Menu

sphinxbase.h cannot be found

Help
AD
2016-05-25
2016-05-27
  • AD

    AD - 2016-05-25

    Hey I can't seem to get the linker to work on visual studios. I've replaced the dll file in the bin folder of pocketsphinx. Ive linked all the right stuff in the config files and still it fails to find the dll. Can someone help guide me through this process.

     
    • Nickolay V. Shmyrev

      There is no need to create dozen threads on the same topic. To get help on this issue you need to provide more details on your project (share it as a zip file) and on the error you see (provide exact message of the error).

       
  • AD

    AD - 2016-05-26

    I built sphinxbase using visual studios. I then built pocketsphinx using visual studios. But i go to but the dll file from sphinxbase in the bin folder of pocketsphinx. This is where I get confused because im used to bringing the entire folder of an lib/dll into the directory of the other project. So when im putting the dll file of sphinx base into pocketsphinx do I put it literally in bin? or do i go to release/win32/ and put it in there? because it seems to already be there. The next thing i get confused about is when I go to link the files properly i still get a cannot find sphinxbase.h. ill show you a screen shot of my project properties here.

    http://s33.postimg.org/wop9te5pr/image.png

    thats what I have in my property settings for pocketsphinx.

    heres where I placed the dll in the pocketsphinx folder.
    http://s33.postimg.org/t7olcjlgv/image.png

    and in the picture below I dumped all of sphinx base inside of pocketsphinx as a just incase
    http://s33.postimg.org/kdoync0of/image.png

    and as far as the two command prompt arguments in the pic below
    http://s33.postimg.org/ia6qab0xb/image.png
    what are running these accomplishing? i dont understand their point?

     

    Last edit: AD 2016-05-26
    • Nickolay V. Shmyrev

      You neither need to edit nor copy anything neither in sphinxbase nor in pocketsphinx, this is not advised by build manuals. You need to place pocketsphinx and sphinxbase in a single folder and build them, they will build automatically. Do not place pocketsphinx inside sphinxbase, do not place sphinxbase inside pocketsphinx.

      You need to provide a description of the actions you did and the problem you have in clear and grammartically correct English together with logs, screenshots and other information.

       
      • AD

        AD - 2016-05-26

        Ok i've created one folder names sphinx with both sphinxbase and pocketsphinx inside like so.
        http://s33.postimg.org/ikxodz8fj/image.png

        my intention is to incorporate sphinx into another project.
        http://s33.postimg.org/q0330gb5b/image.png

        here are my project property settings
        http://s33.postimg.org/miv3l5kdr/image.png

        heres what happens when i try and build it.
        http://s33.postimg.org/8ig6qjcdr/image.png

         
        • Nickolay V. Shmyrev

          You need to add sphinx/sphinxbase/include/win32 folder to the Include Dirs in your project settings. This is the folder that contains sphinx-config.h.

           
          • AD

            AD - 2016-05-26

            Ok i've followed as instructed, and everything seems to be fine except I now get this message when I try and run it.
            http://s33.postimg.org/51rn2465r/image.png

            heres where its located whis raises my confusion:
            http://s33.postimg.org/vof4o2kvj/image.png

             
            • Nickolay V. Shmyrev

              You need to copy pocketsphinx.dll and sphinxbase.dll to the folder where you executable is located, usually bin folder. DLL files must be in the same folder as exe, otherwise they could not be found.

               
              • AD

                AD - 2016-05-27

                thanks!

                 

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.