-
-
Notifications
You must be signed in to change notification settings - Fork 219
Compiling on Android
Majesty edited this page Feb 3, 2023
·
1 revision
To compile on Android, you will need to download and install:
- Git
- Android Studio (compiler)
- vcpkg (package manager)
- Android Library (dependency)
Make sure to follow full installation of vcpkg
, per Official Quickstart execute the following in Powershell:
git clone https://github.com/Microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
git clone --recursive https://github.com/mehah/otclient.git
vcpkg install
Extract the android libraries inside android/app/libs
folder.
Create a data.zip
file containing the init.lua
, modules
, data
and add it to android/app/src/main/assets
.
-
ANDROID_NDK_HOME
pointing to the Android NDK root folder (Ex.:C:\Users\Administrator\AppData\Local\Android\Sdk\ndk\25.1.8937393
). -
VCPKG_ROOT
pointing to the vcpkg folder.
Open Android Studio, click to open project and select the otclient/android
folder.
Wait Android Studio synchronize the project and download dependencies.
Create an new emulator to run the project or plugin your own android device.
Click on Play Button or just Shift+F10 to run the project.