ENIGMA Forums

General fluff => General ENIGMA => Topic started by: TGMG on August 14, 2010, 11:04:26 AM

Title: Android support
Post by: TGMG on August 14, 2010, 11:04:26 AM
Well after a whole day of headaches I finally managed to get enigma to compile and run on the android :D
It uses the same opengles renderer as the iphone so only need to keep 1 renderer up to date for both of them. I have no idea if it actually runs on the device, I have a feeling that it is using a ton of memory :/
No audio support as android doesn't seem to come with the library, will need to compile it myself I think. Also it needs a special ndk sdk which support the c++ libraries.

Anyway screenshot:
(http://i38.tinypic.com/5b48dt.png)

Btw any chance I can get svn commit access and become an enigma developer?

Also what is the best way of passing veriables to the enigma compiler? Atm the target is hard coded in the compiler so it would be nice to have a menu option to select target mac/iphone/ipad/android and various settings such as minimum sdk version and whether to deploy to device.
Title: Re: Android support
Post by: Josh @ Dreamland on August 14, 2010, 11:31:12 AM
Quote
Also what is the best way of passing veriables to the enigma compiler? Atm the target is hard coded in the compiler so it would be nice to have a menu option to select target mac/iphone/ipad/android and various settings such as minimum sdk version and whether to deploy to device.
I've been working on a YAML-based crawler that would harvest just such information. I was planning on doing the same to store available compilers and their respective bin paths. I needed more insight into the other platforms, though, which it seems you can now provide.

And yes, SVN privileges/etc; done. You can commit any time; we still need to discuss, though, what all strings you pulled to implement those platforms so I can add support for switching between the changed settings to the ENIGMA settings via its YAML interface.

So yeah, please do meet me on the IRC.
Title: Re: Android support
Post by: RetroX on August 14, 2010, 01:47:12 PM
Wouldn't iPad and iPhone have the same binaries? O_O
Title: Re: Android support
Post by: Omega_red on October 11, 2010, 03:56:40 PM
Too epic for words!
Title: Re: Android support
Post by: freezway on October 19, 2010, 01:04:20 AM
I'm gunna be leading a game design club for android at my school, if you could get this working by november that would be awesome. I would certainly use it, the hitch is that it would have to be able to compile from windows the operating system that makes no sense, to android (we only have windows computers at or computer lab.)
But anyways, when working on things with enigma, assuming you don't add dependencies, can you write the code like you would normally?

Edit: I have a galaxy s if you need testing
Title: Re: Android support
Post by: Josh @ Dreamland on October 19, 2010, 09:31:32 AM
Yes. In the beginning, when the earth was young and ENIGMA was just an idea entering the planning phase, Dave asked me why I would bother keeping GML. I told him it could attract some of the GM crowd, of course, but that having a wrapper to everything would mean that we could switch out the API without changing any of the high-level code. Three years later, that's a reality.

Right now, only Apple can compile for Android, because that's what TGMG was writing it on. But I imagine he can make it work for Windows. I'll not volunteer him for the job, though.
Title: Re: Android support
Post by: freezway on October 19, 2010, 11:28:26 PM
I'd do it if i could....
Title: Re: Android support
Post by: TGMG on October 22, 2010, 01:26:50 PM
Yes it is definitely possible to get android support on windows and linux, its really just a case of changing the paths to the android sdk. I will work on it when lgm has a nice way of choosing between the target platforms.

Btw you will need the android sdk and a custom ndk to get it to compile, so make sure you can install them on the lab computers.