2012-03-12 85 views
1

我尝试在我自己的android应用程序中添加并编译ffmpeg库。当我添加的原生支持,并在JNI添加的ffmpeg库,Eclipse中显示了许多错误,是这样的:Android NDK问题

uint8_t *bufferConverted=NULL; 
static GLuint textureConverted=0; 

错误:

Type 'uint8_t' could not be resolved 
Symbol 'NULL' could not be resolved 
Type 'GLuint' could not be resolved 

我怎样才能解决这个问题?

回答

5

我解决这个问题!!)) 在项目属性 - > C/C++常规 - >路径和符号 - >包括 并添加如下因素的路径:在我的情况,我需要

C:\android-ndk\platforms\android-5\arch-arm\usr\include 
+0

使用/ arch-x86_64/usr/include。我使用mac os 64bits,NULL虽然没有解决 – htafoya 2014-10-13 00:33:44