1

我尝试使用 Cygwin 在我的 Windows 7 上安装 sphinxbase 以运行 pocketsphinx android 演示。但是执行make后出现以下错误:

gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.11-i686-2.6/sphinxbase.o -L../src/libsphinxbase/.libs -L/usr/lib/python2.6/config -lsphinxbase -liconv -lpython2.6 -o build/lib.cygwin-1.7.11-i686-2.6/sphinxbase.dll
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
Makefile:471: recipe for target `pymod-build-stamp' failed
make[1]: *** [pymod-build-stamp] Error 1
make[1]: Leaving directory `/cygdrive/c/psph/sphinxbase/python'
Makefile:330: recipe for target `all-recursive' failed
make: *** [all-recursive] Error 1.

我访问了链接http://www.cs.columbia.edu/~ecooper/CS4706/ps-cygwin.html并按照步骤操作,但结果相同。在上述情况下,我使用了 pocketsphinx-0.7 和 sphinxbase-0.7。

4

1 回答 1

2

错误:

ld: cannot find -liconv

意味着,您没有安装 iconv。在包管理器中查找具有名称libiconv-dev或类似名称的包。

于 2012-03-26T08:27:01.970 回答