# Android port (on hold)

**URL:** <https://discourse.cataclysmdda.org/t/android-port-on-hold/1726>\
**Category:** The Lab\
**Created:** [June 11, 2013, 3:50pm UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726 "2013-06-11T15:50:24Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![stone94](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@stone94](https://discourse.cataclysmdda.org/u/stone94)\
**Post date:** [July 16, 2013, 1:05am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/61 "2013-07-16T01:05:26Z")

</div>

Any way to make it bigger its really tiny compared to my screen also if your having trouble opening place the cata-dda folder in the core storage folder usually called sdcard or internal storage

---

<div class="post-metadata">

**Author:** ![Noksjava](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@Noksjava](https://discourse.cataclysmdda.org/u/Noksjava)\
**Post date:** [July 20, 2013, 9:49pm UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/62 "2013-07-20T21:49:56Z")

</div>

That’s pretty sad.

* * *

![](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/73636a7c727686c5d3a366cf652bb3288e852213.jpg)

![](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/a7b91e53e1a8f6ec9efcab9058d2d4ead3a7afd5.jpg)

![](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/3d95f95266ad008e3547d500d9ab4a70efd6ed1a.jpg)

---

<div class="post-metadata">

**Author:** ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Post date:** [July 22, 2013, 3:57pm UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/63 "2013-07-22T15:57:45Z")

</div>

Stickying this as a reference, even though it’s on hold.

---

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [August 1, 2013, 8:32am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/64 "2013-08-01T08:32:04Z")

</div>

I’ve played Nethack and Angband on Android and I’m eagerly waiting for this to get back underway…

---

<div class="post-metadata">

**Author:** ![qq5134072](https://avatars.discourse-cdn.com/v4/letter/q/278dde/32.png) [@qq5134072](https://discourse.cataclysmdda.org/u/qq5134072)\
**Post date:** [August 26, 2013, 2:32am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/65 "2013-08-26T02:32:33Z")

</div>

my phone cannot run it because of the CPU：ARMV6。。。。。can you solve it？

---

<div class="post-metadata">

**Author:** ![UberZacht](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/uberzacht/32/111_2.png) [@UberZacht](https://discourse.cataclysmdda.org/u/UberZacht)\
**Post date:** [August 26, 2013, 2:56am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/66 "2013-08-26T02:56:33Z")

</div>

Well damn, I just had to be a conformist and get an iPhone. Although in all honesty, I don’t believe that I could feel right with playing on a phone or tablet. There’s too many buttons. I’m still jelly android people. You could almost say I’m jelly bean…

---

<div class="post-metadata">

**Author:** ![xLemor](https://avatars.discourse-cdn.com/v4/letter/x/ea5d25/32.png) [@xLemor](https://discourse.cataclysmdda.org/u/xLemor)\
**Post date:** [August 26, 2013, 4:45am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/67 "2013-08-26T04:45:34Z")

</div>

or you could just use a bluetooth keyboard for android devices, they arent that expensive and would work like keyboard you would use on a pc or laptop.

---

<div class="post-metadata">

**Author:** ![ShadowZero](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@ShadowZero](https://discourse.cataclysmdda.org/u/ShadowZero)\
**Post date:** [September 12, 2013, 12:14am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/68 "2013-09-12T00:14:14Z")

</div>

Now, I know this thread seems quite dead, but may someone educate me on how to compile cataclysm with the android NDK?  
I mean directly from the source, with as little modifications as possible, this build works terribly on my 1280x768 Nexus 4, the font scales simply terribly.

If I receive instructions, I may attempt to make simple useability modifications that don’t kill the experience for those who have even higher resolution screens, or those who have 1280x720 screens.

I’ve only ever used the NDK to compile an already prepared source code.  
I have compiled a copy of cataclysm DDA in the past on a Nokia n900’s terminal using G++, the correct libs and a few tricks, all on-device, those builds (being ARM), would likely run using the android terminal, but as I don’t currently have my N900, and I’d prefer a launcher icon and such so I can at least launch the game, please enlighten me.

---

<div class="post-metadata">

**Author:** ![AtomicDryad](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/atomicdryad/32/85_2.png) [@AtomicDryad](https://discourse.cataclysmdda.org/u/AtomicDryad)\
**Post date:** [September 14, 2013, 8:14pm UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/69 "2013-09-14T20:14:53Z")

</div>

> [@ShadowZero](#):
>
> Now, I know this thread seems quite dead, but may someone educate me on how to compile cataclysm with the android NDK?

I’m not sure about the port in this thread, but TBH dealing with the NDK (and android’s broken libc) seems nightmarish. I’ve built the stock ncurses source with zero modifications using buildroot and static linking, and played in connectbot. (I have a full 5 row keyboard). Unfortunately the game is so blatntly wasteful of memory it becomes unplayable when I explore past a certian point, and any suggestion of reducing memory use is automatically rejected so i’ve given up.

However, a game on the nexus 4 would last longer before becoming unusable. The lack of a keyboard makes connectbot less than ideal, however an app using terminal function, bundled dejavu-sans-mono, and overlay buttons for keypresses would work great. TBH adding the latter to connectbot seems ideal, I already added an alternate font option and can post to github if you’re interested.

Connectbot has a shortcut provider btw.

---

<div class="post-metadata">

**Author:** ![ShadowZero](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@ShadowZero](https://discourse.cataclysmdda.org/u/ShadowZero)\
**Post date:** [September 15, 2013, 9:07am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/70 "2013-09-15T09:07:52Z")

</div>

That sounds great, is this an actual port, or does it require connection to a remote server to play, like an SSH server?

An SDL port would be ideal, see:  
[http://libsdl-android.sourceforge.net/](http://libsdl-android.sourceforge.net/)

This is a quite amazing SDL port, I’d be happy to send you, or anyone willing to port it $20 or so over Paypal (more if I wasn’t poor), to port over and update for at least every major/stable cataclysm version to be released.

All it would require is basic overlay buttons for common actions, and preferably a customize-able GUI for choosing what theses are, where on screen they are, and the sizes of the buttons.

I’d be perfectly happy with a curses port, so long as it has the possibility of being playable on a touch screen, but an SDL port would allow fancy things like tiles, and my 1280x768 screen feels unloved. ;\_;

---

<div class="post-metadata">

**Author:** ![AtomicDryad](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/atomicdryad/32/85_2.png) [@AtomicDryad](https://discourse.cataclysmdda.org/u/AtomicDryad)\
**Post date:** [September 15, 2013, 6:39pm UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/71 "2013-09-15T18:39:12Z")

</div>

It’s curses; sdl is a bit trickier, as the other port has shown. Unfortunately there’s no touchscreen; it’s a terminal app.

---

<div class="post-metadata">

**Author:** ![ShadowZero](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@ShadowZero](https://discourse.cataclysmdda.org/u/ShadowZero)\
**Post date:** [September 15, 2013, 11:57pm UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/72 "2013-09-15T23:57:58Z")

</div>

So long as it works, everything’s fine, I’m sure I can find a decent keyboard.

Please provide an apk and/Or compilation instructions if required, I’d definitely appreciate it.

Edit: I swear this post didn’t look so terrible on my phone. =\

---

<div class="post-metadata">

**Author:** ![Malcolm](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@Malcolm](https://discourse.cataclysmdda.org/u/Malcolm)\
**Post date:** [September 17, 2013, 7:41am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/73 "2013-09-17T07:41:46Z")

</div>

Hello I have an android phone with a hardware qwerty keyboard. Is it possible to compile the game under the android without on-screen controls? Or maybe the game can be run through a terminal emulator?

Thanks in advance. Sorry for the google translation.

* * *

Здравствуйте. У меня есть телефон на android с hardware qwerty клавиатурой. Можно ли скомпилировать игру под андроид без наэкранного управления? Или может быть игру можно запустить через эмулятор терминала?

Заранее спасибо. Извините за google перевод.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [September 17, 2013, 2:26pm UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/74 "2013-09-17T14:26:28Z")

</div>

I use a Droid II Global with a slide out keyboard. On that the game crashes if you slide the keyboard in or out, but if the keyboard is out the OSK is not displayed.  
The build here is old, I will look at merging this into the main code at some point so we at least can build an Android version, even if the interface isn’t that usable, and maybe we can chip away at the bugs.

Я использую Droid II Глобальное с выдвигающейся клавиатурой. На этом игра вылетает, если вы сдвиньте клавиатуру или, но если клавиатура находится вне ОСК не отображается.  
Здесь строить стар, я буду смотреть на это слияние в основной код в какой-то момент так что мы по крайней мере можем построить версию Android, даже если интерфейс не то, что можно использовать, и возможно мы можем избавляться от ошибок.

---

<div class="post-metadata">

**Author:** ![Malcolm](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@Malcolm](https://discourse.cataclysmdda.org/u/Malcolm)\
**Post date:** [September 18, 2013, 5:38am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/75 "2013-09-18T05:38:56Z")

</div>

> [@Kevin Granade](#):
>
> I use a Droid II Global with a slide out keyboard. On that the game crashes if you slide the keyboard in or out, but if the keyboard is out the OSK is not displayed.

I use Sony Ericsson XPERIA pro is also with a slide out keyboard. And I also see this problem.

> The build here is old

I noticed that. 😉

> I will look at merging this into the main code at some point so we at least can build an Android version, even if the interface isn't that usable, and maybe we can chip away at the bugs.

If I understand correctly, this is great! I’ll look forward to a version for android.

Thanks for the answer!

* * *

У меня телефон Sony Ericsson XPERIA pro, тоже с клавиатурой на боковом слайдере. И у меня такая же проблема.

Я земетил 😉

Если я правильно понял, то это прекрасно! С нетерпением буду ждать версии под android.

Спасибо за ответ!

---

<div class="post-metadata">

**Author:** ![AtomicDryad](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/atomicdryad/32/85_2.png) [@AtomicDryad](https://discourse.cataclysmdda.org/u/AtomicDryad)\
**Post date:** [September 23, 2013, 7:14am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/76 "2013-09-23T07:14:12Z")

</div>

Sorry, I should set my notification settings \>.\>

For current non SDL terminal build, using buildroot:

`cd /opt
wget -O- http://buildroot.uclibc.org/downloads/buildroot-2013.08.1.tar.gz |tar xvfz -
ln -s buildroot-2013.08.1 buildroot
cd buildroot
make menuconfig`  
ensure the following are set:  
[tt]Target Architecture (arm)  
Target Architecture Variant (generic\_arm)  
Target ABI (EABI)  
Build options -\> prefer static libraries  
Toolchain -\> Enable WCHAR support  
Toolchain -\> Enable C++ support  
Package -\> Development tools -\> gettext  
Package -\> Development tools -\> libintl  
Package -\> Libraries -\> Text and terminal -\> ncurses[/tt]

```auto
make ncurses
cd /path/to/latest/cata-git

LDFLAGS='-L/opt/buildroot/output/staging/usr/lib -lncurses -lintl -static' make CROSS=/opt/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-
```

This should produce a run-on-virtually-any-arm-based-device-cataclysm™, but you’ll want a copy of  
/opt/buildroot/output/staging/usr/share/terminfo/  
(only s/screen, x/xterm, v/vt100 and the most common stuff).  
Putting stripped terminfo in cata’s data/ directoryworks. Simply run with

```auto
TERM=screen TERMINFO=./data/terminfo ./cataclysm
```

---

<div class="post-metadata">

**Author:** ![johnnoz](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/johnnoz/32/1013_2.png) [@johnnoz](https://discourse.cataclysmdda.org/u/johnnoz)\
**Post date:** [October 4, 2013, 4:15am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/77 "2013-10-04T04:15:16Z")

</div>

[quote=“AtomicDryad, post:76, topic:1726”]Sorry, I should set my notification settings \>.\>

For current non SDL terminal build, using buildroot:  
…  
…[/quote]  
Is there any chance you could look over those instructions again AtomicDryad?  
The version of buildroot you point to doesn’t really sync up to the instructions; a couple of options (libintl, generic\_arm) have been depreciated.  
I’ll be trying again with an older version at some point, but it’d be nice to know specifically what you ended up doing.

---

<div class="post-metadata">

**Author:** ![Op4](https://avatars.discourse-cdn.com/v4/letter/o/67e7ee/32.png) [@Op4](https://discourse.cataclysmdda.org/u/Op4)\
**Post date:** [October 4, 2013, 4:33am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/78 "2013-10-04T04:33:23Z")

</div>

I knew my samsung stratosphere’s slideout keyboard had a purpose!

---

<div class="post-metadata">

**Author:** ![psyduck](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@psyduck](https://discourse.cataclysmdda.org/u/psyduck)\
**Post date:** [November 21, 2013, 5:02pm UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/79 "2013-11-21T17:02:01Z")

</div>

anybody can share native binary? i have motorola milestone with keyboard and i prefer to play in terminal emulator

---

<div class="post-metadata">

**Author:** ![Klavain](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/klavain/32/1061_2.png) [@Klavain](https://discourse.cataclysmdda.org/u/Klavain)\
**Post date:** [December 22, 2013, 4:52am UTC](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726/80 "2013-12-22T04:52:07Z")

</div>

Mmmmph! Come back from the dead! I had a break in awhile ago and my PC went bye-bye. All I have available is my Galaxy S2 for my gaming fix, and probably gonna be that way for a loong time…

[Previous page](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726.md?page=3)

[Next page](https://discourse.cataclysmdda.org/t/android-port-on-hold/1726.md?page=5)
