2012-03-25 8 views
1

Cygwinを使用してWindows 7にsphinxbaseをインストールして、pocketsphinx androidデモを実行しようとしました。 しかし、私は作る実行した後、次のエラーを得た:cygwinでsphinxbaseをコンパイルするときのエラー

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を使用しました。

+0

全体的なエラーですか?私は、あなたがペーストしたログの前に、何か他のものがあるはずだと思います。 –

+0

完全なログは次のとおりです。 – rahulserver

答えて

2

エラー:

ld: cannot find -liconv 

手段、あなたはiconvのがインストールされていないこと。あなたのパッケージマネージャーでlibiconv-devまたは類似の名前のパッケージを探します。

+0

添付の説明に短い説明があります。ここで質問する前に、指示書とエラーログを読んだことがありますか? –

+0

つまり、libiconvをCygwinパッケージとしてインストールし、setup.pyの行を 'libraries = ['pocketsphinx'、 'sphinxbase'、 'iconv']'に変更しましたか? –

+0

インストール中にエラーが発生した場合、そのパッケージはなぜインストールされていると思いますか? –

関連する問題