我正在关注this在我的运行 ubuntu 11.10 的盒子上使用 android ndk 设置 JNI... 在这个程序中,我将 speex 与我现有的流音频应用程序集成。到目前为止,一切工作正常,但当我集成 speex_echo_cancelation 时,事情被破坏了...现在我收到以下错误...有什么帮助吗?
jni/./libspeex/mdf.c:78:21: error: windows.h: No such file or directory
jni/./libspeex/mdf.c: In function 'speex_echo_cancellation':
jni/./libspeex/mdf.c:1195: error: invalid operands to binary + (have 'float' and 'spx_float_t')
jni/./libspeex/mdf.c:1216: error: invalid operands to binary + (have 'float' and 'spx_float_t')
make: *** [obj/local/armeabi/objs/speex/./libspeex/mdf.o] Error 1
最佳答案
嗯,它找不到 windows.h,因为您不在 Windows 系统上。它不应该寻找 windows.h,因为您的目标不是 Windows 系统。您确定已下载正确的软件包并且所有环境变量设置正确吗?
关于android - 找不到 Windows.h,为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9738711/