This repository was created because there was information mismatches when looking to the D-Lang official wiki to Build D For Android
The main differences is that I show how to get the official LDC build for your environment, how to set your variables on Linux and I discovered one problem that was missing a /lib after the lib-dirs in ldc2.conf
This is a very simple tutorial on how to do it as it has an infinitude of tutorials on how to get NDK for android Get Android Studio at https://developer.android.com/studio Finish installing it Go into the top right of your Android Studio IDE (taskbar) and search for SDK Manager
Install the target SDK, currently the newest one is Android 10(Q), it is on “SDK Platforms” Selection Beside “SDK Platforms”, it has “SDK Tools”, click on it and select NDK, Android SDK Tools, Android SDK Platform-Tools, Android SDK Build-Tools then click on OK On the Top of the window, it has where SDK is located, you can always check it again for reference After that, just remember where your ndk is installed
For installing LDC on Linux, I do not recommend getting it from the repository, instead, go to Dlang official installation website: D-Lang Official Install Website Then, get the D-Lang official installation script (install.sh) -> Direct link D-Lang Install Script After that, open the Bash and:
#programming-languages #c #education #ds #programming #c++