Hello everyone
Currently I'm trying to port irrlicht-gles branch latest revision from svn into android (JNI), and struggling with the following error.
Irrlicht/COGLES2Driver.h:46:3: error: a class-key must be used when declaring a friend
Irrlicht/COGLES2Driver.h:46:3: error: friend declaration does not name a class or function
which points into friend COGLES2CacheHandler declaration on COGLES2Driver.h.
Everythings was fine when compiling on Visual Studio 2010.
But above error occures on Android JNI.
Does anyone know how to solve this ?
Thank you very much
[fixed]Error on building latest gles branch for android
Re: Error on building latest gles branch for android
It should probably be "friend class COGLES2CacheHandler;" (and same for other similar places). I'm on the wrong OS right now, have to check in the evening.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Error on building latest gles branch for android
Changed it to "friend class COGLES2CacheHandler", the following error is occured.
Irrlicht/COGLES2Driver.h:46:16: error: using typedef-name 'irr::video::COGLES2CacheHandler' after 'class'
Irrlicht/COGLES2Common.h:63:65: error: 'irr::video::COGLES2CacheHandler' has a previous declaration here
Did some digging, it seems like friend-template-typedef kind is not working on gcc ?
Irrlicht/COGLES2Driver.h:46:16: error: using typedef-name 'irr::video::COGLES2CacheHandler' after 'class'
Irrlicht/COGLES2Common.h:63:65: error: 'irr::video::COGLES2CacheHandler' has a previous declaration here
Did some digging, it seems like friend-template-typedef kind is not working on gcc ?
Re: Error on building latest gles branch for android
Argh, sorry, forgot about this last evening... I'll try to remember it today!
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Error on building latest gles branch for android
For some reason I didn't get the compile error here (maybe other gcc version), but I've checked in a fix which might work. Please try it and give me some feedback.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Error on building latest gles branch for android
Great! Your fix works.
You saved my day..
Thanks a lot cutealien!
You saved my day..
Thanks a lot cutealien!