1

ここからirrlicht androidをダウンロードしました:

https://gitorious.org/irrlichtandroid/irrlichtandroid/source/f12c3b9743d64dc5cd61931f40e42e8ca64b40ef :

ndk-build を使用して irllicht android をコンパイルしようとしましたが、次のエラーが発生しました。

 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

誰もこの問題を解決する方法を知っていますか?? どんな助けでも大歓迎です。

4

2 に答える 2

0

os.cpp (/jni ディレクトリ内) で、コードを次のように変更します。

 __android_log_print(ANDROID_LOG_INFO, "log", message);

に:

 __android_log_print(ANDROID_LOG_INFO, "log","%s", message);

この問題を解決しましたが、それでもエラーが発生します:

In file included from jni/importgl.cpp:55:0:
jni/importgl.h:37:22: fatal error: GLES/egl.h: No such file or directory

それに取り組んでいます。

于 2013-11-22T06:48:44.283 に答える