问题试图建立PocketSphinx使用NDK的Andr​​oid [英] Problems trying to build PocketSphinx for Android using NDK

查看:197
本文介绍了问题试图建立PocketSphinx使用NDK的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立PocketSphinx使用的PocketSphinxAndroidDemo项目的Andr​​oid。我已经放弃了OM我的追求使用Cygwin和Windows构建并安装了Ubuntu的虚拟机。我正在进步,但我似乎被卡住,我似乎无法弄清楚。它必须是一些简单的我失踪。 NDK的建造提供了以下输出(裁剪):

I'm trying to build PocketSphinx for Android using the PocketSphinxAndroidDemo project. I've given up om my quest to build it using Cygwin and Windows and installed an Ubuntu VM. I'm making progress but I seem to be stuck and I can't seem to figure it out. It has to be something simple that I'm missing. The ndk-build gives the following output (clipped):

Compile thumb  : pocketsphinx_jni <= pocketsphinx_wrap.c
/home/user/development/PocketSphinxAndroidDemo/jni/pocketsphinx_wrap.c:760:26: error: pocketsphinx.h: No such file or directory
/home/user/development/PocketSphinxAndroidDemo/jni/pocketsphinx_wrap.c:761:28: error: sphinxbase/err.h: No such file or directory

的头文件(显然)不在同一文件夹中JNI文件。该LOCAL_C_INCLUDES标志已经在Android.mk文件中设置,包括所需的头文件 -

The header files are (obviously) not in the same folder as the JNI files. The LOCAL_C_INCLUDES flag has been set in Android.mk file to include the needed headers -

include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(SPHINX_PATH)/sphinxbase/include/android \
            $(SPHINX_PATH)/sphinxbase/include/sphinxbase \
            $(SPHINX_PATH)/sphinxbase/include \
            $(SPHINX_PATH)/pocketsphinx/include

我要指出,我SPHINX_PATH变量看起来像这样,这是正确的 -

I should note that my SPHINX_PATH variable looks like this, and it's correct -

SPHINX_PATH := ~/development

如果我通过复制的头文件到/ JNI /文件夹中,我得到更远,但那么编译器开始我喊头文件在其他地方失踪。当然,我失去了一些东西简单。是不是有什么地方我可以设置一个看看这些地点的头文件炸毁之前标志?

If I copy the header files over into the /jni/ folder I get farther but then the compiler starts yelling at me for header files missing in other locations. Surely I'm missing something simple. Isn't there somewhere I can set a "Look in these locations for header files before blowing up" flag?

我不是一个C / C ++或Linux的家伙,所以我在黑暗中是那种在这里。任何帮助将大大AP preciated。谢谢!

I'm not a C/C++ or a Linux guy so I'm kind of in the dark here. Any help would be greatly appreciated. Thanks!

推荐答案

解决我的问题。也许有人会觉得这个信息有用:)

Solved my problem. Maybe someone will find this information useful :)

我所做的是一个完整的重新构建所有静态库项目,然后我的应用程序,使用NDK建造-B

What I did was a complete rebuild of all the static library projects, and then my app, using "ndk-build -B"

这篇关于问题试图建立PocketSphinx使用NDK的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆