Page 1 of 1

[fixed]Linux compilation error on 1.9 source code

Posted: Mon Dec 21, 2015 11:44 am
by umen
Im using Linux centos 6.7 64bit gcc version 4.4.7
executing make im getting :

Code: Select all

In file included from COpenGLCacheHandler.cpp:9:
COpenGLDriver.h:36: error: a class-key must be used when declaring a friend
COpenGLDriver.h:36: error: friend declaration does not name a class or function
COpenGLDriver.h:37: error: a class-key must be used when declaring a friend
COpenGLDriver.h:37: error: friend declaration does not name a class or function
make: *** [COpenGLCacheHandler.o] Error 1
 
This is not happening in version 1.8.3

Re: Linux compilation error on 1.9 source code

Posted: Mon Dec 21, 2015 1:09 pm
by CuteAlien
Hm, that's strange. Doesn't it include the headers which declare those classes just before COpenGLDriver.h? I'll check in the evening when I'm on Linux. Guess it won't hurt to add some forward declarations, just wondering why this happens...

Re: Linux compilation error on 1.9 source code

Posted: Mon Dec 21, 2015 7:08 pm
by CuteAlien
Ok, wasn't about forward declaration but about missing "class" keyword after friend keyword. But it seems both friends were unnecessary, so I took away all of COpenGLDriver's friends (poor COpenGLDriver...). I hope that doesn't break another compiler.

Re: [fixed]Linux compilation error on 1.9 source code

Posted: Mon Dec 21, 2015 8:12 pm
by umen
Ok , great thanks .
i did performance test with Orho3d engine and Irrlicht examples are way faster i mean much faster ....
can you explain this ? they both using modern OpenGL .
Orho3d is based on SDL2.

also not related , how is the iOS version coming along ?

Re: [fixed]Linux compilation error on 1.9 source code

Posted: Mon Dec 21, 2015 8:42 pm
by CuteAlien
Did you compare with the same scene/models? But don't know that other engine (I guess you mean Urho3d, but also don't know that one).
Nadro is working currently on iOS. We're still discussing some parts, but it seems to be currently on top of his todo list.