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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ;)
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
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
I had the same problem and I solved it with CMake, I used
PkgConfig
package andpkg_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