OpenTibiaBR
GithubDiscordSponsor
  • Home
    • 📖Welcome!
    • 💵Donate
  • OpenTibiaBR
    • 🖥️Projects
      • 🐦Canary
        • About
        • Getting Started
          • Compiling
            • Linux
              • [Linux] Compiling Canary Sources
            • Windows
              • Visual Studio
                • [Windows][VC2022][CMake] Compiling Canary Sources
                • [Windows][VC2022][Solution] Compiling Canary Sources
              • WSL
                • [WSL] Compiling Canary Sources
          • Installing
            • aaPanel
              • [Linux] Canary + aaPanel + MyAAC
            • Docker
              • [Docker] Canary + MariaDB + MyAAC
            • Linux
              • Nginx + MariaDB + MyAAC
            • Windows
              • Uniform Server
                • [Windows][Basic] Canary + Uniform Server + MyAAC
              • XAMPP
                • [Windows][Advanced] Canary + XAMPP + MyAAC
        • Tutorials
          • Basic
            • Auto Backup Server Database
            • Auto Restart and Linux Logs
            • Custom Bestiary / Prey with Canary Monster Editor
            • Event Schedule Canary / OTServBR-Global
            • How to make a custom server with Canary
            • How to reset players in your database
            • How to secure a Linux server
            • SSL Certificates
            • Webhook Discord
            • [Outdated] Custom Bestiary / Prey
            • [Linux] Backup + Upload - Google Drive
            • [Linux] How to install Linux headers
            • VPS Linux
            • [Windows] SSL/HTTPS Certificate with XAMPP
          • Mapping
            • [Windows] Remere's Map Editor - Opening Canary / OTServBR-Global Map
            • [Windows] Remere's Map Editor - Converting map server id to client id
          • Programming & Scripting
            • How to add a new vocation
            • Revscriptsys
            • Guide Lua Objects
            • How to get raceId for monsters
          • Websites
            • [Canary][OTServBR-Global][GesiorAAC][MyAAC] Set up Initial Character
          • Miscellaneous
            • Useful Tutorials
            • Video Tutorials
      • 🗺️Remere's Map Editor
        • About
        • Getting Started
          • Linux
            • [Linux] Compiling Remere's Map Editor Sources
          • Windows
            • WSL
              • [WSL] Compiling Remere's Map Editor Sources
            • Visual Studio
              • [Windows][VC2022][CMake] Compiling Remere's Map Editor Sources
              • [Windows][VC2022][Solution] Compiling Remere's Map Editor Sources
      • 🎮OTClient Redemption
        • About
        • Getting Started
          • Android
            • [Android] Compiling OTClient Redemption Sources
          • Linux
            • [Linux] Compiling OTClient Redemption Sources
          • Windows
            • WSL
              • [WSL] Compiling OTClient Redemption Sources
            • Visual Studio
              • [Windows][VC2022][CMake] Compiling OTClient Redemption Sources
              • [Windows][VC2022][Solution] Compiling OTClient Redemption Sources
          • Web
            • [Web] OTClient Redemption
        • Tutorials
          • Basic
            • Client Updater
      • 🎮OTClientV8
        • About
        • Getting Started
          • Android
            • [Android] Compiling OTClientV8 Sources
          • Linux
            • [Linux] Compiling OTClientV8 Sources
          • Windows
            • WSL
              • [WSL] Compiling OTClientV8 Sources
            • Visual Studio
              • [Windows][VC2022][CMake] Compiling OTClientV8 Sources
              • [Windows][VC2022][Solution] Compiling OTClientV8 Sources
        • Features
          • Health and Mana bar backgrounds
          • HTTP support
          • OTML Improvement
          • Simple cam recorder and player
          • Updater, encryption and compression
          • WebSockets
      • ⚙️Client Editor
        • About
        • Getting Started
      • ⚙️Login Server
        • About
        • Getting Started
      • 🚀Canary Launcher
        • About
        • Getting Started
          • Windows
            • [Windows][VC2022][Solution] Compiling Canary Launcher Sources
      • 🚀Slender Launcher
        • About
        • Getting Started
          • Windows
            • [Windows][Go] Compiling Slender Launcher Sources
      • 🌐CanaryAAC
        • About
        • Informations
          • Features
          • Functions
          • API
          • Routes
          • Middleware
      • 🌐MyAAC
        • About
      • 🌐SlenderAAC
        • About
    • 🔗Downloads
      • 🎮Clients
        • Client 11
        • Client 14
          • Tutorials
            • Client with HexEditorXVI32
            • Client with Notepad++
            • Client with config.ini
            • [Windows] How to change client background
        • Minimap
      • 📑Codes
        • C++
        • Events
        • Functions
        • Libs
        • Modules
        • Others
      • 🖼️Images
        • PSDs
        • Others
      • 🗺️Maps
        • Custom
        • Global
      • 📑Revscripts
        • Actions
        • CreatureEvents
        • GlobalEvents
        • MoveEvents
        • NPCs
        • Spells
        • Systems
        • TalkActions
      • ⚔️Sprites
      • ⚙️Tools
        • Editors
        • Map Generators
      • 🌐Web Packages
        • Linux
        • Windows
      • 🌐Website Applications
        • Websites
          • CanaryAAC
            • CanaryAAC Bot
          • Gesior2012
          • GesiorAAC Global
          • MyAAC
          • MyAAC Global
          • SlenderAAC
          • ZnoteAAC
        • Applications
        • Layouts
        • APIs and SDKs
Powered by GitBook
On this page
  • 1. Download/install the required software:
  • 2. VCPKG:
  • 3. Download the source code:
  • 4. Copy the Android Libraries:
  • 5. Copy data.zip to Android assets:
  • 6. Create Environment Variables:
  • 7. Build:
  1. OpenTibiaBR
  2. Projects
  3. OTClient Redemption
  4. Getting Started
  5. Android

[Android] Compiling OTClient Redemption Sources

Last updated 1 year ago

1. Download/install the required software:

To compile on Android, you will need to download and install:

  • (compiler)

  • (package manager)

  • (dependency)

2. VCPKG:

If you don't have vcpkg installed

Use Powershell in directory C:

  • cd C:\

• To complete vcpkg installation, run the commands below in Powershell:

  • git clone https://github.com/microsoft/vcpkg

  • cd vcpkg

  • .\bootstrap-vcpkg.bat

  • .\vcpkg integrate install

If you already have vcpkg installed

Use Powershell in directory C:

  • cd C:\vcpkg

• To update vcpkg installation, run the commands below in Powershell:

  • git pull

  • .\vcpkg upgrade

  • .\bootstrap-vcpkg.bat

  • .\vcpkg upgrade --no-dry-run

3. Download the source code:

git clone --recursive https://github.com/mehah/otclient.git

4. Copy the Android Libraries:

Extract the android libraries inside android/app/libs folder.

5. Copy data.zip to Android assets:

Create a data.zip file containing the init.lua, modules, data and add it to android/app/src/main/assets.

6. Create Environment Variables:

  • 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.

7. Build:

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.

🖥️
🎮
Git
Android Studio
vcpkg
Android Library