~~~~~~~~~~~~~~~~~~~~~~~~~
gcc: error: -DMODELDIR="/usr/local/share/pocketsphinx/model": No such file or directory
gcc: error: -I/usr/local/include: No such file or directory
~~~~~~~~~~~~~~~~~~~~~~~~~~
I have checked both of those directories exist and the files the program wants are in the correct directory.
Last edit: Kaleb Goering 2015-06-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please provide the full command line and the full compiler output. Please try to follow the tutorial precisely, if you do everything properly it should work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed both sphinxbase and pocketsphinx just fine. I checked both
and
~~~~~~~~~~~~~~~~
pkg-config --cflags --libs pocketsphinx sphinxbase
~~~~~~~~~~~~~~~
They both return the expected value but when I try to compile with
is returned. I have tried defining MODELDIR in the C file but get same error. If I use \ instead of / I get more errors.
Last edit: Kaleb Goering 2015-06-18
You need to use exact command line as provided in tutorial with \" as a part of MODELDIR definition.
In order to understand what do those symbols mean and how do they work you can review documentation on shell:
http://www.gnu.org/software/bash/manual/bashref.html#Quoting
When I do that I get
~~~~~~~~~~~~~~~~~~~~~~~~~
gcc: error: -DMODELDIR="/usr/local/share/pocketsphinx/model": No such file or directory
gcc: error: -I/usr/local/include: No such file or directory
~~~~~~~~~~~~~~~~~~~~~~~~~~
I have checked both of those directories exist and the files the program wants are in the correct directory.
Last edit: Kaleb Goering 2015-06-18
Please provide the full command line and the full compiler output. Please try to follow the tutorial precisely, if you do everything properly it should work.