作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用发行版 ( https://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/ ) 中的 Sphinxbase 和 Pocketsphinx,在安装时出现以下错误:
/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,它在 Macintosh(也是 Unix)上编译得很好。
最佳答案
谢谢@TomKuschel 提供的链接。该链接提供了提示。事实证明这是错误的系统标志,因此未包含文件。包括<sys/time.h>
和<sys/resource.h>
解决了问题。
关于在函数 ‘ptmr_start’ 和 ‘ptmr_stop’ 中安装 Sphinxbase 时出现编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45224196/
我正在尝试在 Debian Jessie 上安装 sphinxbase 和 pocketsphinx,详细信息请参见 this tutorial但在安装 sphinxbase 期间运行 make ch
我正在尝试在 Android 上开发离线语音识别器。经过几次搜索,我发现 CMU Sphinx 就是用于此目的的。 我正在尝试在 Windows 上安装它,以下是引用自其网页的说明: Window
我正在使用发行版 ( https://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/ ) 中的 Sphinxbase 和
我是一名优秀的程序员,十分优秀!