SuperTuxKart porting
-
This post is deleted! -
Alpha testing
I have successfully built an Arm64 click package of SuperTuxKart. I am unable to test it due to my only arm64 device thinking it is armhf.
From talking with the people over at STK it may work out of the box without any other changes since this version uses sdl2 to interface with the touchscreen and sensors.
If you would like to test it out you can download it here.
https://github.com/Intrinsically-Sublime/stk-code/releases/tag/V1.2.0-alphaDownload it directly on the phone to the downloads directory.
Then from the command line.
cd ./Downloads sudo pkcon install-local ./supertuxkart_1.2.0-ubports_arm64.click --allow-untrusted
I honestly do not know if it will do anything at all.
-
@antidroid congrats for your successful build ;-). Don't have an arm64 too, so can't test, maybe announce it on Telegram ?
-
@lduboeuf I tested it on my Xperia X and it won't open
The error isWARNING **: Unable to exec `supertuxkart` in `/opt/click.ubuntu.com/.click/users/phablet/supertuxkart`: No such file or directory
Looks like you're executing on the wrong directory. The binary is at
/opt/click.ubuntu.com/supertuxkart/current/bin/
in the current installation. -
@kugiigi I tried to manually execute the binary and gets the error below
error while loading shared libraries: libvorbisfile.so.3: cannot open shared object file: No such file or directory
-
@antidroid
Here are my logs.
http://paste.ubuntu.com/p/79GpQcg54G/ -
@kugiigi Thank you. I will look into this. I should probably build it with the debug flag enabled so we get a little more information.
Just so I understand. The click installed but fails to run or it fails to install?EDIT: Reread your message and understand now
-
@aarontheissueguy Thanks
-
@kugiigi said in SuperTuxKart porting:
I tried to manually execute the binary and gets the error below
Where did you find the binary installed? Was it where it was supposed to be?
/opt/click.ubuntu.com/.click/users/phablet/supertuxkart
-
@antidroid Well it seems that click files are located in multiple directories, most likely just symlinks. First is at
/opt/click.ubuntu.com/supertuxkart/current/bin
but it also exists at/opt/click.ubuntu.com/.click/users/phablet/supertuxkart/bin
. The latter seems to be the path used in the desktop files of click apps. I honestly have no idea where your app is wrong. I compared it to other working apps and it seems correct. -
@AntiDroid You need to package the required libraries in the click. This is how I do it for Neverball: https://gitlab.com/abmyii/neverball-touch/-/blob/master/clickable.json#L43-58
The method I use to identify them is just trial-and-error. I assume it runs on your device because you have the libraries already installed, whereas most devices don't have those libraries preinstalled.
@kugiigi What you could try is to use the libraries packaged with Neverball when running the game manually, since it should have most (if not all) of the required libraries. To do that, run:
export LD_LIBRARY_PATH=/opt/click.ubuntu.com/neverball.abmyii/current/lib/aarch64-linux-gnu:/opt/click.ubuntu.com/*.abmyii/current/lib/*
And then run SuperTuxKart manually as you did before.
-
@abmyii I tried that but now it's looking for
libopenal.so.1
-
@kugiigi If you are up for it, you can just manually download all the required libs until it works - there shouldn't be too many more TBH. The process is a bit finicky, but doable. I can explain how to, if you are interested.
Unfortunately I don't have an arm64 device, else I would have tried it myself.
-
@abmyii Thank you very much you have saved me having to figure out how to add the libs. I had looked through UBports development guide for dependencies but wasn't sure exactly how to go about it. I now see with your information it is this section.
@kugiigi It is easy for me to add the libs but difficult to figure out which ones it needs without a working device.
No pressure on anyone to test this, it can wait until I have a working device. People can fork my repo and build it themselves too. I have included build instructions in the ubuntu_touch folder README. I have just updated the repo with the current clickable.json incuding the known needed libs so far.
-
@antidroid I had to install libvorbisfile3 and libopenal1.
Now this appears:
[error ] FileManager: Could not find file 'supertuxkart.git'in any standard location (esp. ../data).
[error ] FileManager: Last location checked '/./share/supertuxkart/data/'.
[fatal ] FileManager: Set $SUPERTUXKART_DATADIR to point to the data directory. -
@trischi Thank you, I will look into it.