Build instructions for the Android version of lwjgl3:
clonelwjgl3 andcheckouttheandroidbranch.SET/exporttheANDROID_SDK_HOMEenvironment variable. Its value should be the root of the Android SDK. The Android NDK must also be installed under the root, in the defaultndk-bundlesubdirectory.- Run
ant compile-templates. This will take 1-2 minutes. - Run
ant aar. This will produce anlwjgl.aarfile in thebin/android/folder. - Copy
lwjgl.aarto theandroid-testrepository, in thelwjglfolder.
Build instructions for the Android demos:
- Open the root in Android Studio.
- Wait for gradle synchronization and indexing to complete.
- Build the project.
- Connect a platform 24 compatible device, either via USB or Wi-Fi.
- Launch either the
gearsorhellovulkanrun configurations. (shortcut:Alt+Shift+F10)
Installation of Vulkan validation layers:
- Create a JNI library folder for the target architecture. For example:
hellovulkan/src/main/jniLibs/arm64-v8a/orhellovulkan/src/main/jniLibs/armeabi-v7a/
- Copy the shared libraries from the corresponding folder in the Android NDK. For example:
<sdkroot>/ndk-bundle/sources/third_party/vulkan/src/build-android/jniLibs/arm64-v8a/or<sdkroot>/ndk-bundle/sources/third_party/vulkan/src/build-android/jniLibs/armeabi-v7a/
- Set the
VALIDATEvariable totrueinHelloVulkan.java:53
