Question

While compiling the android port of Irrlicht 3d engine:
https://gitorious.org/irrlichtandroid
I get the following errors:

    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

Does anyone know how to resolve this conflict ?

Was it helpful?

Solution

Solution found on a comment of this thread:
http://renzhi.ca/2011/05/19/programming-3d-games-on-android-with-irrlicht-and-bullet-part-1/

In IrrCompileConfig.h:
comment out one of the following lines:

#define _IRR_COMPILE_WITH_OGLES2_

or

#define _IRR_COMPILE_WITH_OGLES1_
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top