编译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
有人知道如何解决这场冲突吗?
最佳答案
在此线程的注释中找到解决方案:
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_
关于android - 在为Android编译Irrlicht时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9956298/