1

私はpocketsphinxandroidデモを実行するためにCygwinを使用してWindows7にsphinxbaseをインストールしようとしました。しかし、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 に答える