Android Development

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
booster
Posts: 15
Joined: Thu Nov 19, 2015 8:53 pm

Android Development

Post by booster »

Hi,

What / where is the official Android release of Irrlicht?

I used svn on this:

Code: Select all

 
svn checkout http://svn.code.sf.net/p/irrlicht/code/branches/ogl-es/
 
But there were references to DirectX in numerous places when trying to build the Irrlicht engine, not sure if that's just some kind of oversight?

I read one post which mentioned that the openGL ES branch would be joining the main trunk soon, any idea when?

Amongst other locations I found this version:
https://github.com/kexplo/irrlicht_ogl-es
It compiled without issue, however the static library was simply named "Android", a quick rename to "Android.a" and an alteration to the mk file sorted that, and the demo compiled without issue too.

All in all, this is the easiest Android chain I've worked with so far... Thanks to all, great job!
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Android Development

Post by Nadro »

Do you use the latest revision of the ogl-es branch? AFAIK it works on Android without problems.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
booster
Posts: 15
Joined: Thu Nov 19, 2015 8:53 pm

Re: Android Development

Post by booster »

I believe it to be...

The first error was:

Code: Select all

 
$ ndk-build
[armeabi] Compile++ thumb: Irrlicht <= CIrrDeviceAndroid.cpp
jni/../../Android/CIrrDeviceAndroid.cpp: In member function 'void irr::CIrrDeviceAndroid::createDriver()':
jni/../../Android/CIrrDeviceAndroid.cpp:523:7: error: 'EDT_DIRECT3D8' is not a member of 'irr::video'
  case video::EDT_DIRECT3D8:
       ^
make: *** [obj/local/armeabi/objs/Irrlicht/Android/CIrrDeviceAndroid.o] Error 1
 
Which was solved by a quick commenting out, but then it ran into more DirectX references...?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Android Development

Post by CuteAlien »

Ah yes, d3d8 got removed in trunk and so that has to be changed now with latest merge.
Nadro - do you want to do that, or should I change that quickly? (just asking so we don't change the same code now tonight or tomorrow ^^)
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
booster
Posts: 15
Joined: Thu Nov 19, 2015 8:53 pm

Re: Android Development

Post by booster »

Legends ;)
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Android Development

Post by Nadro »

Thanks for info, it's my fault at merge :)

@CuteAlien
I'll commit fix for that tomorrow (instead of that fix upcoming commit will fix OGLES1 issues).
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Android Development

Post by Nadro »

I fixed this bug in the last commit.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply