Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Demo Ajhc apps on Android NDK Build Status

The demo needs Ajhc or later.

How to build

Install JDK and Ant

$ sudo apt-get install openjdk-7-jdk ant

Setup android SDK and NDK

Download android SDK and NDK on following links.

Unpack them and setting PATH for SDK/NDK.

$ cd $HOME
$ wget
$ wget
$ tar xf android-sdk_r22-linux.tgz
$ tar xf android-ndk-r9-linux-x86_64.tar.bz2
$ mv android-ndk-r9 android-ndk
$ export PATH=$HOME/android-ndk:$HOME/android-sdk-linux/sdk/tools:$HOME/android-sdk-linux/sdk/platform-tools:$PATH

Install Ajhc

$ sudo apt-get install haskell-platform gcc make m4
$ cabal install ajhc


Type "make".

$ cd demo-android-ndk
$ make
$ file */bin/*debug.apk
cube/bin/cube-debug.apk:                                 Java Jar file data (zip)
native-activity/bin/native-activity-debug.apk:           Java Jar file data (zip)

How to install

Connect your PC and Android Phone using USB cable.

$ sudo adb devices
List of devices attached 
SHTBB081500     device

The adb command find your phone. Then install the apk file.

$ sudo adb install -r cube/bin/cube-debug.apk
956 KB/s (14555 bytes in 0.014s)
        pkg: /data/local/tmp/cube-debug.apk

And touch your Android Phone and run the application.


Copyright 2013 Metasepi term.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Demo Ajhc application on Android NDK



No releases published
You can’t perform that action at this time.