Found the solution for the issue, In project/default.propeties , I have changed:
target=android-4
to
target=android-18
And in include/IrrCompileConfig.h I have commented out:
//#define _IRR_COMPILE_WITH_OGLES1_
since I need only OpenGL ES 2. This solved the issue , irrlichtandroid
compiled successfully using ndk-build
, libirrlicht.so
file generated in my project libs
folder.