how to create hello word demo code? how to compile it ? And how to run it?
Just carefully follow the tutorial and try to understand what's going on
compile error: pocketsphinx.h is not found.
It doesn't sound like you've installed pocketsphinx correctly. Did you install
it /usr/local prefix? Then did you update PKG_CONFIG_PATH to include
/usr/local/lib/pkgconfig?
Try to
run pkg-config --cflags --libs pocketsphinx sphinxbase
from console, what will it output
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I thought that I have installed everything correctly because the
pocketsphinx_continuous command works fine ...but it seems that there is
something wrong :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$ run pkg-config --cflags --libs pocketsphinx sphinxbase
bash: run: command not found...
what does that mean?
It means when I replied you I accidentally put run into command line and the
command failed because there is no such binary "run". It told you about that
but you were not smart enough to read the message. Actually the command was
I thought that I have installed everything correctly because the
pocketsphinx_continuous command works fine ...but it seems that there is
something wrong :(
Obviously you didn't export proper PKG_CONFIG_PATH. I told you that in
previous reply.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here compiler tells you that there is no such a file. Indeed, you might call
it differently and the file hello_ps.c may be missing.
gcc: pkg-config --cflags --libs pocketsphinx sphinxbase: No such file or
directory
This must be a part of the first command, a whole command must be a single
line. Please read manual on shell commands to understand what is going on. It
must be a single line big command:
dear sir,
I create a C source file called hello_ps.c as pocketsphinx wiki says.
and compile use:
gcc -o hello_ps hello_ps.c -DMODELDIR=\"`pkg-config --variable=modeldir
pocketsphinx
\"pkg-config --cflags --libs pocketsphinx sphinxbase` -l/vin/package/include
compile error: pocketsphinx.h is not found.
how to create hello word demo code? how to compile it ? And how to run it?
Just carefully follow the tutorial and try to understand what's going on
It doesn't sound like you've installed pocketsphinx correctly. Did you install
it /usr/local prefix? Then did you update PKG_CONFIG_PATH to include
/usr/local/lib/pkgconfig?
Try to
from console, what will it output
this is my output :(
$ run pkg-config --cflags --libs pocketsphinx sphinxbase
bash: run: command not found...
(pk-command-not-found:7360): PackageKit-DEBUG: role now search-file
(pk-command-not-found:7360): PackageKit-DEBUG: state array add 0xa0346f0 (0x1)
(pk-command-not-found:7360): PackageKit-DEBUG: notify::connected
(pk-command-not-found:7360): PackageKit-DEBUG: state array remove 0xa0346f0
(pk-command-not-found:7360): PackageKit-DEBUG: tid = /121_ceaedbde_data
(pk-command-not-found:7360): PackageKit-DEBUG: transaction_id now
/121_ceaedbde_data
(pk-command-not-found:7360): PackageKit-DEBUG: sent locale request, started
DBus call: 0xa045048 (0x1)
(pk-command-not-found:7360): PackageKit-DEBUG: state array add 0xa045048
(pk-command-not-found:7360): PackageKit-DEBUG: set hints, ended DBus call:
0xa045048 (0x1)
(pk-command-not-found:7360): PackageKit-DEBUG: new method 'search-file',
started DBus call: 0xa045048 (0x2)
(pk-command-not-found:7360): PackageKit-DEBUG: changed so checking properties,
started DBus call: 0xa045048 (0x1)
(pk-command-not-found:7360): PackageKit-DEBUG: interface changed, started DBus
call: 0xa045048 (0x1)
(pk-command-not-found:7360): PackageKit-DEBUG: emit transaction-list-changed
(when idle)
(pk-command-not-found:7360): PackageKit-DEBUG: emit transaction-list-changed
(pk-command-not-found:7360): PackageKit-DEBUG: got reply to request, ended
DBus call: 0xa045048 (0x2)
(pk-command-not-found:7360): PackageKit-DEBUG: got properties, ended DBus
call: 0xa045048 (0x1)
(pk-command-not-found:7360): PackageKit-DEBUG: percentage now -1
(pk-command-not-found:7360): PackageKit-DEBUG: caller-active now 1
(pk-command-not-found:7360): PackageKit-DEBUG: uid now 501
(pk-command-not-found:7360): PackageKit-DEBUG: status now wait
(pk-command-not-found:7360): PackageKit-DEBUG: subpercentage now -1
(pk-command-not-found:7360): PackageKit-DEBUG: allow-cancel now 1
(pk-command-not-found:7360): PackageKit-DEBUG: got property results, ended
DBus call: 0xa045048 ((nil))
(pk-command-not-found:7360): PackageKit-DEBUG: changed so checking properties,
started DBus call: 0xa045048 (0x2)
(pk-command-not-found:7360): PackageKit-DEBUG: interface changed, started DBus
call: 0xa045048 (0x2)
(pk-command-not-found:7360): PackageKit-DEBUG: already processing request 0x2,
so ignoring
(pk-command-not-found:7360): PackageKit-DEBUG: got properties, ended DBus
call: 0xa045048 (0x2)
(pk-command-not-found:7360): PackageKit-DEBUG: status now setup
(pk-command-not-found:7360): PackageKit-DEBUG: allow-cancel now 0
(pk-command-not-found:7360): PackageKit-DEBUG: got property results, ended
DBus call: 0xa045048 ((nil))
(pk-command-not-found:7360): PackageKit-DEBUG: changed so checking properties,
started DBus call: 0xa045048 (0x3)
(pk-command-not-found:7360): PackageKit-DEBUG: interface changed, started DBus
call: 0xa045048 (0x3)
(pk-command-not-found:7360): PackageKit-DEBUG: already processing request 0x3,
so ignoring
(pk-command-not-found:7360): PackageKit-DEBUG: got properties, ended DBus
call: 0xa045048 (0x3)
(pk-command-not-found:7360): PackageKit-DEBUG: status now query
(pk-command-not-found:7360): PackageKit-DEBUG: allow-cancel now 1
(pk-command-not-found:7360): PackageKit-DEBUG: got property results, ended
DBus call: 0xa045048 ((nil))
(pk-command-not-found:7360): PackageKit-WARNING **: Cancelling request
(pk-command-not-found:7360): PackageKit-DEBUG: cancelling /121_ceaedbde_data
(0x3)
(pk-command-not-found:7360): PackageKit-DEBUG: changed so checking properties,
started DBus call: 0xa045048 (0x4)
(pk-command-not-found:7360): PackageKit-DEBUG: interface changed, started DBus
call: 0xa045048 (0x4)
(pk-command-not-found:7360): PackageKit-DEBUG: properties changed, so getting
new list
(pk-command-not-found:7360): PackageKit-DEBUG: already processing request 0x4,
so ignoring
(pk-command-not-found:7360): PackageKit-DEBUG: cancelled /121_ceaedbde_data,
ended DBus call: 0x3
(pk-command-not-found:7360): PackageKit-DEBUG: got properties, ended DBus
call: 0xa045048 (0x4)
(pk-command-not-found:7360): PackageKit-DEBUG: status now cancel
(pk-command-not-found:7360): PackageKit-DEBUG: allow-cancel now 0
(pk-command-not-found:7360): PackageKit-DEBUG: got property results, ended
DBus call: 0xa045048 ((nil))
(pk-command-not-found:7360): PackageKit-DEBUG: notify::mime-types
(pk-command-not-found:7360): PackageKit-DEBUG: notify::distro-id
(pk-command-not-found:7360): PackageKit-DEBUG: notify::locked
(pk-command-not-found:7360): PackageKit-DEBUG: notify::version-micro
(pk-command-not-found:7360): PackageKit-DEBUG: notify::version-major
(pk-command-not-found:7360): PackageKit-DEBUG: notify::version-minor
(pk-command-not-found:7360): PackageKit-DEBUG: notify::backend-description
(pk-command-not-found:7360): PackageKit-DEBUG: notify::network-state
(pk-command-not-found:7360): PackageKit-DEBUG: notify::roles
(pk-command-not-found:7360): PackageKit-DEBUG: notify::backend-name
(pk-command-not-found:7360): PackageKit-DEBUG: notify::backend-author
(pk-command-not-found:7360): PackageKit-DEBUG: notify::groups
(pk-command-not-found:7360): PackageKit-DEBUG: notify::filters
(pk-command-not-found:7360): PackageKit-DEBUG: changed so checking properties,
started DBus call: 0xa045048 (0x5)
(pk-command-not-found:7360): PackageKit-DEBUG: interface changed, started DBus
call: 0xa045048 (0x5)
(pk-command-not-found:7360): PackageKit-DEBUG: got properties, ended DBus
call: 0xa045048 (0x5)
(pk-command-not-found:7360): PackageKit-DEBUG: status now finished
(pk-command-not-found:7360): PackageKit-DEBUG: got property results, ended
DBus call: 0xa045048 ((nil))
(pk-command-not-found:7360): PackageKit-DEBUG: properties changed, so getting
new list
(pk-command-not-found:7360): PackageKit-DEBUG: exit_text=cancelled
(pk-command-not-found:7360): PackageKit-DEBUG: state array remove 0xa045048
(pk-command-not-found:7360): PackageKit-DEBUG: The search was cancelled as it
was taking too long
$
what does that mean??
would you please help me
I thought that I have installed everything correctly because the
pocketsphinx_continuous command works fine ...but it seems that there is
something wrong :(
$ run pkg-config --cflags --libs pocketsphinx sphinxbase
bash: run: command not found...
what does that mean?
It means when I replied you I accidentally put run into command line and the
command failed because there is no such binary "run". It told you about that
but you were not smart enough to read the message. Actually the command was
Obviously you didn't export proper PKG_CONFIG_PATH. I told you that in
previous reply.
I have got the same error. Would you please help us.
When I try to compile using:
gcc -o hello_ps hello_ps.c \
-DMODELDIR=\"
pkg-config --variable=modeldir pocketsphinx\"pkg-config --cflags --libs pocketsphinx sphinxbaseI get the following output:
gcc: hello_ps.c: No such file or directory
gcc: pkg-config --cflags --libs pocketsphinx sphinxbase: No such file or
directory
gcc: no input files
Although output of:
pkg-config –cflags –libs pocketsphinx sphinxbase
is correct absolutely
and I am facing the same problem as mentioned in this discussion-
<pocketsphinx.h> not found.. </pocketsphinx.h>
Thanking you
Hello
Here compiler tells you that there is no such a file. Indeed, you might call
it differently and the file hello_ps.c may be missing.
This must be a part of the first command, a whole command must be a single
line. Please read manual on shell commands to understand what is going on. It
must be a single line big command:
Or it can be multiline command but each line should end with backslash: