I'm new to irrlicht and I have started with irrlicht android port, I have tried compiling irrlicht android using ndk-build in terminal. It showed the following errors at first:
In static member function 'static void irr::os::Printer::log(const c8*, irr::ELOG_LEVEL)':
error: format not a string literal and no format arguments [-Werror=format-security]
In static member function 'static void irr::os::Printer::log(wchar_t const*, irr::ELOG_LEVEL)':
error: format not a string literal and no format arguments [-Werror=format-security]
In static member function 'static void irr::os::Printer::log(const c8*, const c8*, irr::ELOG_LEVEL)':
error: format not a string literal and no format arguments [-Werror=format-security]
In static member function 'static void irr::os::Printer::log(const c8*, const path&, irr::ELOG_LEVEL)':
error: format not a string literal and no format arguments [-Werror=format-security]
make: *** [obj/local/armeabi/objs/irrlicht/os.o] Error 1
and then I googled that and made changes in os.cpp file as follows:
Changed the code,
__android_log_print(ANDROID_LOG_INFO, "log", message);
to
__android_log_print(ANDROID_LOG_INFO, "log","%s", message);
This change solved that issue, and then I got another error:
In file included from jni/importgl.cpp:55:0:
jni/importgl.h:37:22: fatal error: GLES/egl.h: No such file or directory
Again I changed GLES/egl.h to EGL/egl.h and solved that issue, got:
fatal error: irrlicht.h: No such file or directory
I even solved this , atlast I'm here with this error:
error: 'EglDisplay' was not declared in this scope
error: 'EglSurface' was not declared in this scope
error: 'EglWindow' was not declared in this scope
error: 'EglContext' was not declared in this scope
Some one please help me solve this issue, any link or any changes to be made.. Any help will be appreciated.