Domanda

I am following this blog to set up JNI with android ndk on my box which runs ubuntu 11.10... In this program I am integrating speex with my existing application which streams the audio. So far everything was working fine but things destroyed as I integrated speex_echo_cancelation... Now I get following error... any help ?

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
È stato utile?

Soluzione

Well, it's not finding windows.h because you're not on a Windows system. It shouldn't be looking for windows.h because you're not targeting a Windows system. Are you sure that you have downloaded the right package and that all of your environment variables set correctly?

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top