Help wanted: Compiling ST for Android

Help wanted: Compiling ST for Android

Postby fdroidiordf » 07 Aug 2019, 16:44

Hello,

currently I try to compile SuperTux for Android (https://github.com/pelya/supertux) to be able to make changes and because I want to include the app into the F-Droid repository which only host applications which they can compile themselves.
I tried to follow the https://github.com/pelya/supertux/blob/ ... INSTALL.md manual, but it is only about how to compile for Linux and Windows and not about how to compile for Android.
I tried to follow the manual for Linux using the latest Manjaro-Linux (Arch based) hoping to get an apk-file, too, but there was an compiling error (see https://forum.f-droid.org/t/supertux-for-android/6496/9).

It would be great if anyone could help me,

fdroidiordf

(This is the second time I post this question. The first time my account wasn't activated and it needed to be approved. Now it is approved, but the old thread doesn't show up. If it will be in future, please apologize the duplication)
fdroidiordf
 
Posts: 7
Joined: 02 Aug 2019, 17:26

Re: Help wanted: Compiling ST for Android

Postby fdroidiordf » 24 Oct 2019, 16:49

Now I found the compiling instructions ( https://github.com/pelya/commandergeniu ... readme.txt):

To compile Android version:
1. Use Debian or Ubuntu or MacOsX. Windows is not supported, but you can try to use Bash shell on Windows 10.
2. Install Android SDK: https://developer.android.com/studio/in ... #downloads
3. Install Android NDK: https://developer.android.com/ndk/downloads/index.html
4. Install Java and Ant: sudo apt-get install ant openjdk-8-jdk build-essential
5. Download SDL Git repo: git clone https://github.com/pelya/commandergenius
6. git submodule update --init --recursive project/jni/application/supertux/supertux
7. ./build.sh supertux

You may also use source archive at https://sourceforge.net/projects/libsdl ... /SuperTux/
fdroidiordf
 
Posts: 7
Joined: 02 Aug 2019, 17:26

Re: Help wanted: Compiling ST for Android

Postby forum » 16 Jan 2021, 15:53

Hello! Has your compilation for Android worked? What does it take to include the Android platform in future ST releases?
Best regards, 7wells
forum
 
Posts: 176
Joined: 04 May 2020, 12:29

Re: Help wanted: Compiling ST for Android

Postby forum » 17 Jan 2021, 15:26

fdroidiordf {l Wrote}:Now I found the compiling instructions ( https://github.com/pelya/commandergeniu ... readme.txt):

To compile Android version:
...
6. git submodule update --init --recursive project/jni/application/supertux/supertux
...

Hmm, this fails:
{l Code}: {l Select All Code}
fatal: Not a git repository (or any of the parent directories): .git

Can somebody please help me? Thank you!

EDIT: Blimey - of course, I first have to cd into the cloned directory "commandergenious". :blush:
Best regards, 7wells
forum
 
Posts: 176
Joined: 04 May 2020, 12:29

Re: Help wanted: Compiling ST for Android

Postby forum » 17 Jan 2021, 19:43

Is somebody reading here? I have encountered another problem when doing ./build.sh supertux from directory "commandergenius":

{l Code}: {l Select All Code}
Klone nach '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/android-shmem' ...
git@github.com: Permission denied (publickey).
fatal: Konnte nicht vom Remote-Repository lesen.

Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
und das Repository existiert.
fatal: Klonen von 'git@github.com:pelya/android-shmem.git' in Submodul-Pfad '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/android-shmem' fehlgeschlagen
Fehler beim Klonen von 'android-shmem'. Weiterer Versuch geplant
Klone nach '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/fakechroot' ...
git@github.com: Permission denied (publickey).
fatal: Konnte nicht vom Remote-Repository lesen.

Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
und das Repository existiert.
fatal: Klonen von 'git@github.com:pelya/fakechroot.git' in Submodul-Pfad '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/fakechroot' fehlgeschlagen
Fehler beim Klonen von 'fakechroot'. Weiterer Versuch geplant
Klone nach '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/proot-src' ...
git@github.com: Permission denied (publickey).
fatal: Konnte nicht vom Remote-Repository lesen.

Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
und das Repository existiert.
fatal: Klonen von 'git@github.com:cedric-vincent/PRoot.git' in Submodul-Pfad '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/proot-src' fehlgeschlagen
Fehler beim Klonen von 'proot-src'. Weiterer Versuch geplant
Klone nach '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/proot-src-by-termux' ...
Klone nach '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/fakechroot' ...
git@github.com: Permission denied (publickey).
fatal: Konnte nicht vom Remote-Repository lesen.

Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
und das Repository existiert.
fatal: Klonen von 'git@github.com:pelya/fakechroot.git' in Submodul-Pfad '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/fakechroot' fehlgeschlagen
Zweiter Versuch 'fakechroot' zu klonen fehlgeschlagen, breche ab.
Klone nach '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/android-shmem' ...
git@github.com: Permission denied (publickey).
fatal: Konnte nicht vom Remote-Repository lesen.

Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
und das Repository existiert.
fatal: Klonen von 'git@github.com:pelya/android-shmem.git' in Submodul-Pfad '/home/user/commandergenius/project/jni/application/xserver-debian/debian-image/android-shmem' fehlgeschlagen
Zweiter Versuch 'android-shmem' zu klonen fehlgeschlagen, breche ab.
...
...
ERROR: You need to provide a <ndk-root>!
make: *** [Makefile.prebuilt:83: boost/lib/armeabi-v7a/libboost_atomic.a] Fehler 1
make: Verzeichnis „/home/user/commandergenius/project/jni“ wird verlassen
Done
./build.sh: 104: ./build.sh: ndk-build: not found

1. What shall I do about the denied permission to GitHub?
2. How and where do I provide a <ndk-root>?
3. Do I have to start and work with Android Studio at any stage? The SDK is installed and NDK and CMake selected in Android Studio, but I have not understood if I need to do anything else from there.

Thanks for your help!
Best regards, 7wells
forum
 
Posts: 176
Joined: 04 May 2020, 12:29

Who is online

Users browsing this forum: No registered users and 1 guest

cron