0
ながら、私はリリース(https://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/)からSphinxbaseとPocketsphinxを使用して、私は次のエラーを取得していますインストール中にしています:コンパイルエラー「ptmr_start」目的球にSphinxbaseをインストールすると「ptmr_stop」
/sphinxbase/src/libsphinxbase/util/profile.c: In function ‘ptmr_start’:
/sphinxbase/src/libsphinxbase/util/profile.c:185:19: error: storage size of ‘start’ isn’t known
struct rusage start; /* CPU time */
^
/sphinxbase/src/libsphinxbase/util/profile.c:188:15: error: ‘RUSAGE_SELF’ undeclared (first use in this function)
getrusage(RUSAGE_SELF, &start);
^
/sphinxbase/src/libsphinxbase/util/profile.c:188:15: note: each undeclared identifier is reported only once for each function it appears in
/sphinxbase/src/libsphinxbase/util/profile.c: In function ‘ptmr_stop’:
/sphinxbase/src/libsphinxbase/util/profile.c:224:19: error: storage size of ‘stop’ isn’t known
struct rusage stop; /* CPU time */
^
/sphinxbase/src/libsphinxbase/util/profile.c:227:15: error: ‘RUSAGE_SELF’ undeclared (first use in this function)
getrusage(RUSAGE_SELF, &stop);
^
私はUbuntuで午前、それはUnixでもあるMacintoshでうまくコンパイルされます。
https://stackoverflow.com/questions/34517362/ubuntu-rusage-error –
@TomKuschelリンクありがとうございました。そこにはいくつかのヒントがあります。それは悪いシステムの旗だった。ありがとうございました。 –
あなたは大歓迎です!私は音声認識には一度も関心がありませんでしたが、#include ''とおそらくsys/time.hも良いようです。 +1;私は個人的には、AURの中でarch linuxを好んでいます。すでにaur/sphinxbase 5prealpha-9(77)(3,02)--- のスフィンクス音声認識用の共通ライブラリがあります。 –