2017-10-16 111 views
0

我试图让这个源代码编译:大厦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.mdBuilding节中,我试图让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#控制台应用程序生成使用狮身人面像库,但我不想把我的运气还是下车的话题。)

回答