Building Android Apps on Windows is working fine:)

Andre Pany via digitalmars-d-ldc digitalmars-d-ldc at
Thu Dec 22 09:00:35 PST 2016


using the documentation from here
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
sudo dpkg -i dmd_2.072.1-0_amd64.deb

---------- Install Android ndk -------------------------
sudo mkdir -p /opt/android-sdk/ndk-bundle
curl -O -L
sudo unzip '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

More information about the digitalmars-d-ldc mailing list