Menu

sphinx_config.h not found in ad.h and prim-type.h

Help
2015-08-21
2018-04-05
  • Montagu Adrien

    Montagu Adrien - 2015-08-21

    Hi !

    I create my own library with pocket sphinx included inside.
    I use CMake for multi plateforme utilisation and I get this error while I try to compil it (in windows and Linux)

    sphinx_config.h not found in prim-type.h
    and
    sphinx_config.h not found in ad.h

    For fix it I just need to go to sphinxbase/include/sphinxbase/prim_type.h and ad.h for change the #include pocketsphinx.h to #include sphinxbase/pocketsphinx.h.

    But for installing the library it's a step more. So I am doing something wrong ? The installation on my computer doesn't work at 100% or it's an error in the code ?

     

    Last edit: Montagu Adrien 2015-08-21
    • Nickolay V. Shmyrev

      You need to run configure to create sphinx_config.h.

      We do not use CMake, we are using automake to build pocketsphinx.

      See also

      http://stackoverflow.com/questions/5971921/building-a-library-using-autotools-from-cmake

       
    • hpsaturn

      hpsaturn - 2018-04-05

      I had the same problem and I solved it with CMake, I used PkgConfig package and pkg_check_modules directive, for more details you can see my answer on StackOverflow, if you like it, one vote please ;)

      https://stackoverflow.com/a/49663245/471690

       

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.