Page 1 of 3
Porting to Android
Posted: Mon Mar 21, 2011 8:11 am
by phimuskapsi
I have started the process of porting zDoom to Android using android-cmake in conjunction with the r5b NDK.
Getting an error on arithchk:
Code: Select all
[ 34%] Built target dumb
Scanning dependencies of target arithchk
[ 34%] Building C object gdtoa/CMakeFiles/arithchk.dir/arithchk.o
Linking C executable arithchk
[ 34%] Built target arithchk
[ 34%] Generating arith.h
./arithchk: 1: Syntax error: word unexpected (expecting ")")
make[2]: *** [gdtoa/arith.h] Error 2
make[1]: *** [gdtoa/CMakeFiles/qnan.dir/all] Error 2
make: *** [all] Error
Any ideas??
PS - Can a mod delete my extraneous posts below?
Re: Porting to Android
Posted: Mon Mar 21, 2011 9:25 am
by phimuskapsi
Maybe something to do with Fuse not being install on my ubuntu install....hmmmm.
Nope. Installed FUSE and Fuse Dev and no luck...I'm gonna keep trying till I figure it out!
Re: Porting to Android
Posted: Mon Mar 21, 2011 9:42 am
by phimuskapsi
Hmm this may be a problem with fuse not being supported in Android...
Re: Porting to Android
Posted: Mon Mar 21, 2011 10:59 am
by phimuskapsi
Figured this out! When setting up android-cmake the default platform is 5, needs to be 8 or higher. More updates to come!
Re: Porting to Android
Posted: Mon Mar 21, 2011 12:20 pm
by Apothem
Easy with the multi-posting, there is an edit button for a reason.
Anyway, nice to see a zdoom port to Android. Keep it up!

Re: Porting to Android
Posted: Mon Mar 21, 2011 12:32 pm
by phimuskapsi
Apothem wrote:Easy with the multi-posting, there is an edit button for a reason.
Anyway, nice to see a zdoom port to Android. Keep it up!

lol. Yeah, I abologize, looked for a delete button. Don't think about editing. My bad. Ran into a couple more issues, but getting closer!
Re: Porting to Android
Posted: Mon Mar 21, 2011 7:09 pm
by Apothem
Will there be full ACS support? Which version are you porting?
Re: Porting to Android
Posted: Tue Mar 22, 2011 7:05 am
by phimuskapsi
As of right now, just the normal zDoom source. I am running into issues though, like the fact that it's making an executable. I don't think that will work with what I'm doing. I came to find out that the build I 'completed' was only using just partially the android toolchain. So I need to go back through and figure it all out. Keep your eyes here.

Re: Porting to Android
Posted: Tue Mar 22, 2011 7:13 pm
by randi
phimuskapsi wrote:PS - Can a mod delete my extraneous posts below?
You realize this edit has essentially ruined this thread, since all the replies are to something that is no longer present?
Re: Porting to Android
Posted: Tue Mar 22, 2011 7:49 pm
by phimuskapsi
If you want delete it entirely and i'll start over.
Re: Porting to Android
Posted: Tue Mar 22, 2011 8:59 pm
by MasterOFDeath
I would ask for Motorola Droid support since the author of the original Doom for Android is an expletive, but I wouldn't be surprised if ZDoom is too much processing power for it anyways. Still if you want to test this on an overclocked Droid feel free to PM me. Hopefully this goes well either way, I don't play Doom much these days but Android needs a good Doom port. Dammit.
Re: Porting to Android
Posted: Tue Mar 22, 2011 9:25 pm
by Project Shadowcat
MasterOFDeath wrote:I would ask for Motorola Droid support since the author of the original Doom for Android is an expletive, but I wouldn't be surprised if ZDoom is too much processing power for it anyways. Still if you want to test this on an overclocked Droid feel free to PM me. Hopefully this goes well either way, I don't play Doom much these days but Android needs a good Doom port. Dammit.
Quite badly does Android need the port, but I wouldn't see how it would be (too) harsh on the processor. 500MHz surely is enough?
Re: Porting to Android
Posted: Tue Mar 22, 2011 9:46 pm
by MasterOFDeath
Project Dark Fox wrote:MasterOFDeath wrote:I would ask for Motorola Droid support since the author of the original Doom for Android is an expletive, but I wouldn't be surprised if ZDoom is too much processing power for it anyways. Still if you want to test this on an overclocked Droid feel free to PM me. Hopefully this goes well either way, I don't play Doom much these days but Android needs a good Doom port. Dammit.
Quite badly does Android need the port, but I wouldn't see how it would be (too) harsh on the processor. 500MHz surely is enough?
500 MHz alone would be plenty for ZDoom. Don't forget limited memory and the overhead from everything else. Memory concerns me in particular, the Droid doesn't have much and even overclocking it as high as 800 MHz (I'd do 1 GHz but it's probably a good thing the kernel I use doesn't allow that) doesn't fix all the slowdown.
Re: Porting to Android
Posted: Tue Mar 22, 2011 9:47 pm
by phimuskapsi
The "Doom for Android" port is prBoom. I know because I fixed the broken ass version out and made working multitouch but I hated the engine. So I suspended cleaning up the menus and such and moved to this.
Note the project is also ripped right out of Pro Games for Android book. Someone took the source (online) and published it. Yay gnu! lol.
I'm working on this for the X for now. I think it'll take an arm-cortex-8 at the min.
EDIT: The compiled zDoom executable is roughly 25mb...so it should be able to live in modern phones (2.1+ so Galaxy S, Droid X etc). Now getting the java code working is gonna be a pain. I'm gonna have to figure it all out myself. This hasn't been done yet.
Re: Porting to Android
Posted: Tue Mar 22, 2011 9:58 pm
by MasterOFDeath
I think Xaser has a Droid X, you might ask him for help testing too.