Android Compiling

Post Reply
DoyleChris
Member
Posts: 265
Joined: Sat Jul 25, 2015 19:54
In-game: DoyleChris

Android Compiling

by DoyleChris » Post

I have tried compiling the latest client version for android but ran into a small snag.

I used this link here https://dev.minetest.net/Android, but when i got down to the part to make.
git clone --depth 1 https://github.com/minetest/minetest.git
cd minetest/build/android
make
and i ran make i get this error here.
user@Server-iMac:~/minetest/build/android$ make
Please specify path of ANDROID NDK
e.g. /home/user/Android/Sdk/ndk-bundle/
/home/user/android-ndk-r16b
Please specify path of ANDROID SDK
e.g. /home/user/Android/Sdk/
/home/user/android-sdk-linux
export NDEBUG=; \
export BUILD_TYPE=debug; \
make apk
make[1]: Entering directory '/home/christopher/minetest/build/android'
irrlicht sources missing, downloading...
/bin/sh: 5: svn: not found
Makefile:502: recipe for target 'irrlicht_download' failed
make[1]: *** [irrlicht_download] Error 1
make[1]: Leaving directory '/home/christopher/minetest/build/android'
Makefile:149: recipe for target 'debug' failed
make: *** [debug] Error 2

patrick55
Member
Posts: 29
Joined: Sat Jul 30, 2016 03:16

Re: Android Compiling

by patrick55 » Post

/bin/sh: 5: svn: not found
You need to install svn :)
If you finish the compiling, try to build an arm64 apk to check if the network bug exist :>

DoyleChris
Member
Posts: 265
Joined: Sat Jul 25, 2015 19:54
In-game: DoyleChris

Re: Android Compiling

by DoyleChris » Post

How do i install svn.

DoyleChris
Member
Posts: 265
Joined: Sat Jul 25, 2015 19:54
In-game: DoyleChris

Re: Android Compiling

by DoyleChris » Post

well i got it to run but now i get this.
> Configure project :
Checking the license for package Android SDK Build-Tools 28.0.3 in /home/christopher/android-sdk-linux/licenses
Warning: License for package Android SDK Build-Tools 28.0.3 not accepted.
Checking the license for package Android SDK Platform 28 in /home/christopher/android-sdk-linux/licenses
Warning: License for package Android SDK Platform 28 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'Minetest'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
platforms;android-28 Android SDK Platform 28
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

Using Android SDK: /home/user/android-sdk-linux

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Makefile:687: recipe for target 'apk' failed
make[1]: *** [apk] Error 1
make[1]: Leaving directory '/home/user/minetest/build/android/minetest/build/android'
Makefile:149: recipe for target 'debug' failed
make: *** [debug] Error 2

patrick55
Member
Posts: 29
Joined: Sat Jul 30, 2016 03:16

Re: Android Compiling

by patrick55 » Post

Try to read the error message please.
You need sdkmanager to download some build tools or accept some licences.
If you're using a linux with graphics, try to use Android Studio to fix those bugs. (where the sdkmanager has a gui interface).

Good luck!

DoyleChris
Member
Posts: 265
Joined: Sat Jul 25, 2015 19:54
In-game: DoyleChris

Re: Android Compiling

by DoyleChris » Post

I did read the error message patrick55, i wont be asking if i didnt already install the SDK Manager.
But i am still getting the error.
If you can inform me how to work the licenses , instead of criticizing me if i read the error.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests