Android NDK-BUILD Errors Summary

1. fatal error: <GLES/gl.h>: No such file or directory.

File “GLES/gl.h”located under the android ndk platform directory, but you will notice that there are several versions exists. What you need to do is to find a place to specify which android level you will use. The solution as following:

ndk_no_file_found 

 

2. When you specify the third-part libraries or include path in your Android.mk file, the directory path will relative to the jni directory.

 

3. Need ‘typename’ before std::list<Type*>, because std::list<Type*> is a depedent scope.
typename

 

4. extra qualification ‘TMatrix33’ on member ‘inverse’[-fpermissive]

extra_qualification

 

5. Add “external “C””
extern_c 

 

The above are some build errors I met when I was porting a demo from PC to Android.

posted @ 2012-12-11 21:40  opencoder  阅读(486)  评论(0编辑  收藏  举报