Building Android Apps on Windows is working fine:)
Andre Pany via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Thu Dec 22 09:00:35 PST 2016
Hi,
using the documentation from here
https://wiki.dlang.org/Build_LDC_for_Android
I build the OpenGL Android APP on Windows using WSL (Bash on
Ubuntu on Windows).
On a fresh WSL you have to execute these commands:
---------- Install some tools -------------------------
sudo apt-get install build-essential
sudo apt-get install git
sudo apt-get install cmake
sudo apt-get install unzip
sudo apt-get install libconfig-dev
---------- Install dmd -------------------------
cd ~
curl -O -L
http://downloads.dlang.org/releases/2.x/2.072.1/dmd_2.072.1-0_amd64.deb
sudo dpkg -i dmd_2.072.1-0_amd64.deb
---------- Install Android ndk -------------------------
sudo mkdir -p /opt/android-sdk/ndk-bundle
curl -O -L
https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip
sudo unzip android-ndk-r13b-linux-x86_64.zip 'android-ndk-r13b/*'
-d /opt/android-sdk/ndk-bundle
export NDK=/opt/android-sdk/ndk-bundle/android-ndk-r13b
And then follow the instructions from the WIKI.
As the windows sub system doesn't allow USB, the 2 last commands
were executed in windows directly. I installed on Windows the
Android Studio and execute these 2 commands in DOS console:
android update project -p . -s --target 1
ant debug
The OpenGL App is running fine on my LG mobile.
Kind regards
André
More information about the digitalmars-d-ldc
mailing list