编译Irrlicht 3d引擎的android端口时:
https://gitorious.org/irrlichtandroid
我收到以下错误:
I:/Developments/irrlichtandroid/project/obj/local/armeabi/objs/irrlicht/COGLES2Driver.o:I:\Developments\irrlichtandroid\project\jni/./../include/IReferenceCounted.h:54: multiple definition of `GL_BGRA'
I:/Developments/irrlichtandroid/project/obj/local/armeabi/objs/irrlicht/COGLESDriver.o:I:\Developments\irrlichtandroid\project\jni/./../include/IReferenceCounted.h:54: first defined here
有谁知道如何解决这个冲突?
答案 0 :(得分:3)
在此主题的评论中找到解决方案:
http://renzhi.ca/2011/05/19/programming-3d-games-on-android-with-irrlicht-and-bullet-part-1/
在IrrCompileConfig.h中:
注释掉下列其中一行:
#define _IRR_COMPILE_WITH_OGLES2_
或
#define _IRR_COMPILE_WITH_OGLES1_