gpt4 book ai didi

c - 在c中使用pocketsphinx

转载 作者:行者123 更新时间:2023-11-30 16:58:45 24 4
gpt4 key购买 nike

我尝试在 ubuntu 上用 C 语言安装和使用 pocketsphinx,但一直收到此错误

/Desktop/Programming/C/Tests$ gcc libraries.c -o libraries

libraries.c:2:26: fatal error: pocketsphinx.h: No such file or directory
#include <pocketsphinx.h>
^
compilation terminated.

我已按照安装 sphinxbase 和 pocketsphinx 所需的步骤进行操作,发现 here但每次编译代码时我都会收到错误。有什么我错过的吗?

最佳答案

你是如何安装pocketsphinx的? “安装”是什么意思要使用库,您首先需要将 header 放在编译器可以找到的位置(对于 GCC,例如使用 -I 选项),然后需要安装该库,以便编译器可以针对它进行构建。从错误来看你没有向编译器指定库的头文件

关于c - 在c中使用pocketsphinx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38572869/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com