Android compilation steps

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
User avatar
Brocan
Orc
Posts: 441
Joined: Tue Aug 01, 2006 1:43 am
Location: Spain!!
x 8

Android compilation steps

Post by Brocan »

Hi everyone!

I'm trying to compile ogre for android myself, but i'm stuck everytime. I've achived the compilation, but now i get tons of runtime errors, so I think that my binaries are crap...

Someone has or could explain step by step how you can compile Ogre for Android? What is the current state of ogre in android? is fully functional?

Ogre is really really great and i've used it for years, but it's really hopeless that android hasn't a build guide anywhere... :? and i don't know why, because android has a huge collection of users. iOS has its own official support by masterfalcon, i know that Android hasn't official support, but it seems that a lot of people are using ogre in android, so its not impossible.

Thanks in advance!!! :D
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4308
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 137

Re: Android compilation steps

Post by spacegaier »

Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
User avatar
Brocan
Orc
Posts: 441
Joined: Tue Aug 01, 2006 1:43 am
Location: Spain!!
x 8

Re: Android compilation steps

Post by Brocan »

spacegaier wrote:Never tried it myself: https://bitbucket.org/ZCube/ogre-android
Thanks spacegaier!

In fact i'm using this version to compile it. The problem is that the whole docs i've found about how to use it is the readme in the repository. And i've get tons of erros that i've solved myself, but... the app crashes everywhere :lol:
dudeabot
Gnome
Posts: 334
Joined: Thu Jun 28, 2007 2:12 pm
Location: Brazil
x 5

Re: Android compilation steps

Post by dudeabot »

it sure is possible, one could tell just looking at ogrekit, it has already an example available at their forums.

the question is, why there isnt such thing (a hello world application) on vanilla ogre? i would say getting ogrekit to run on android is more complex then the original ogre, so to me that doesnt make sense. Too bad im having the same problem: "official instructions" dont run, when you "fix" it doenst work
User avatar
Brocan
Orc
Posts: 441
Joined: Tue Aug 01, 2006 1:43 am
Location: Spain!!
x 8

Re: Android compilation steps

Post by Brocan »

dudeabot wrote:it sure is possible, one could tell just looking at ogrekit, it has already an example available at their forums.

the question is, why there isnt such thing (a hello world application) on vanilla ogre? i would say getting ogrekit to run on android is more complex then the original ogre, so to me that doesnt make sense. Too bad im having the same problem: "official instructions" dont run, when you "fix" it doenst work
THIS is the problem.

I've searched around the ogre trunk code, and it seems that has code for android everywhere. But there isnt any single guide of how compile this code! (the unique is absolutely outdated).

It seems that a lot of people are using ogre in android... it would be great if they could share their knowledge...
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Android compilation steps

Post by masterfalcon »

Well, honestly, the android code that is there is quite outdated. We don't have a maintainer for the port either. And we could pull that fork in but there's no one to test it completely right now. Unless you want to give me some android hardware ;)
User avatar
liberator
Greenskin
Posts: 117
Joined: Mon Jan 24, 2005 2:27 pm
Location: Sillicon Valley, California

Re: Android compilation steps

Post by liberator »

@Masterfalcon: You can test apps in the emulator decently but if you want real hardware I'd recommend buying a phone like the HD2 from ebay for 25$ and just put Android on it. I'd recommend 2.3 since that's were the market share is right now.

I had Ogre compiling originally in my GUCE archive but haven't looked into it lately as I'm far too busy with work and haven't updated it to work with my latest GUCEF code, otherwise you could use my code.

You can easily generate the Android makefiles for it using my ProjectGenerator if make files are a problem.
http://www.ogre3d.org/forums/viewtopic. ... tGenerator