我試圖讓這個源代碼編譯:大廈PocketSphinx爲PiHueSphinx爲Windows
https://github.com/garuma/PiHueSphinx
我已經退出主分支爲上述回購及PocketSphinx回購提到:
https://github.com/cmusphinx/pocketsphinx
我未能獲得使用Visual Studio 2015在Windows 7上構建的pocketsphinx代碼,其中包含68個構建錯誤,從以下錯誤開始:
cannot open source file "sphinxbase/err.h" pocketsphinx c:\git\pocketsphinx\src\libpocketsphinx\vector.c 76
所以我決定下載的sphinxbase
從最新版本和pocketsphinx
:
https://cmusphinx.github.io/wiki/download/
後,繼在PiHueSphinx README.md
的Building
節中,我試圖讓PiHueSphinx方案,以建立(再次,Win7 VS15)。我恢復的NuGet包,更新的NuGet包,重建PiHueSphinx項目,然後固定在HueController.cs的31行的代碼:
替換:var client = new LocalHueClient (ip);
有了:var client = new LocalHueClient (ip.IpAddress);
我現在明白了以下構建錯誤:
The command "gcc -Wall -ggdb -shared -I/usr/local/include -I/usr/local/include/sphinxbase -I/usr/local/include/pocketsphinx -L/usr/local/lib -lpocketsphinx -lsphinxad -lsphinxbase -o bin\Debug\libsphinx_hue_detection.so sphinx_hue_detection.c" exited with code 9009. PiHueSphinx C:\git\PiHueSphinx\PiHueSphinx\PiHueSphinx.csproj 97
我不知道如何解決此問題。我認爲我應該提供PiHueSphinx.csproj
文件中的Sphinx庫的引用(如自述文件中所述),但只需替換路徑爲/usr/local/
的路徑,即下載並提取的sphinxbase和pocketsphinx文件夾的路徑會生成相同的消息,但修改路徑。
我該如何獲得此解決方案來構建?
(也許是一個更好的問題是:我怎樣才能得到一個C#控制檯應用程序生成使用獅身人面像庫,但我不想把我的運氣還是下車的話題。)