Compile XMRig for Android - XMRig-for-Android/xmrig-for-android GitHub Wiki
Compile XMRig for Android
Prerequisites
- NodeJS v17.1.0
- React Native Development Enviroment
- Android Studio
- Android 10 SDK 29
- Android SDK Build Tools 29.0.2
- Android NDK 23.0.7599858
- Android SDK Command-line Tools 5.0
- Android SDK Platform-Tools 31.0.3
- CMake
Build XMRig, OpenSSL, hwloc & libuv
This script will compile hwloc, libuv and xmrig for each ABI. The execuable will be copied to jniLibs
folder in android project.
Clone the repo
git clone https://github.com/XMRig-for-Android/xmrig-for-android.git
cd xmrig-for-android
Goto xmrig dir
cd xmrig/lib-builder
Run the build script
make all
If the build completed successfully, run the install to copy the binaries to the android project
make install
Build XMRig for Android App
Goto project root directory and install node modules
yarn install
Run Android Emulator
npx react-native run-android