devilutionX
devilutionX copied to clipboard
Added basic support for Ubuntu Touch
Hello everyone, I hope you enjoy adding a new platform. List of (80+) devices that will support building and installation here: https://devices.ubuntu-touch.io/
Is there a way to avoid having the mk folder in the root?
Is there a way to avoid having the mk folder in the root?
Ok, I change path mk folder and force push lease.
Most other platform files are located in the Packaging folder.
I still have one of the original Ubuntu Phones, but not sure if it works any more.
Most other platform files are located in the Packaging folder.
I still have one of the original Ubuntu Phones, but not sure if it works any more.
@AJenbo I also have devices, porting should not be complicated given that ubuntu-touch the same nix slightly changed to android.
@AJenbo Do you already have a similar list of required packages?
"dependencies_target": [
"libsdl2-dev",
"libsdl2-image-dev",
"libsdl2-ttf-dev"
],
"install_lib": [
"/usr/lib/${ARCH_TRIPLET}/libSDL2.so*",
"/usr/lib/${ARCH_TRIPLET}/libSDL2-2.0.so*",
"/usr/lib/${ARCH_TRIPLET}/libSDL2_image.so*",
"/usr/lib/${ARCH_TRIPLET}/libSDL2_image-2.0.so*",
"/usr/lib/${ARCH_TRIPLET}/libSDL2_ttf.so*",
"/usr/lib/${ARCH_TRIPLET}/libSDL2_ttf-2.0.so*"
],
I don't know, it's the Bq Aquaris E4.5 and came with Ubuntu Touch on it. I haven't used it since Canonical dropped support.
@AJenbo Canonical has long abandoned the project, now it is a large ubports community. You can update the image through GUI installer. Your model does not have active support, but most functions are working.
https://devices.ubuntu-touch.io/device/krillin/
Ubuntu Touch GUI installer
Linux: https://snapcraft.io/ubports-installer
Ubuntu (deb): https://devices.ubuntu-touch.io/installer/deb
AppImage: https://devices.ubuntu-touch.io/installer/appimage
Windows: https://devices.ubuntu-touch.io/installer/exe
Mac OS: https://devices.ubuntu-touch.io/installer/dmg
Gread job. Can't wait for it.
Also would be nice to have some touch controls to it. At least for spells and potions. :)
@nitanmarcel where you able to test it? Normally DevilutionX should enable the touch controls when you interact with a touch screen.
@nitanmarcel where you able to test it? Normally DevilutionX should enable the touch controls when you interact with a touch screen.
If I can figure out how to install it yes. running clickable build
complains about no CMakeList.txt being available. Also I tried moving the clickable files to the main folder and it missing a lot of deps.
Again as in previous issue I'm a noob when it comes to these things.
Probably some things needs to be updated in the PR.
@nitanmarcel, I have damaged vm with ubuntu touch sdk, ut-clickable and qt creator with components, so I will try to restore the system as soon as possible.
@nitanmarcel where you able to test it? Normally DevilutionX should enable the touch controls when you interact with a touch screen.
ubuntu touch libraries have touch processing capabilities, needed render controls as in android.
@nitanmarcel, I have damaged vm with ubuntu touch sdk, ut-clickable and qt creator with components, so I will try to restore the system as soon as possible.
Awesome. Quote me when ready. Can't wait to try this :)
I keep thinking aboutthis PR and it came in my mind something that need to be changed for Ubuntu Touch.
The packaged folder will only be accessible with sudo due to the OS security. There should be a way to point the game files to a path which can be accessed by the packaged app. That would be /home/phablet/.local/share/appname.domainname
appname and domain name is defined in the manifest.json.in file
On the desktop it uses ~/.local/share/diasurgical/devilution/
, I'm assuming this would work on the phone as well since it's basically the same path as you are suggesting
On the desktop it uses
~/.local/share/diasurgical/devilution/
, I'm assuming this would work on the phone as well since it's basically the same path as you are suggesting
If what I commented for manifest.json.in
file isn't mandatory the path should work. But looking at the openttd port I'm concerned about it
https://gitlab.com/abmyii/openttd-ubports/-/blob/master/click/manifest.json#L2
I decided to give it a try myself and I hit 2 issues.
- As of now Ubuntu Touch runs on ubuntu xenial and the following packages are not available there:
libgmock-dev
andlibfmt-dev
- I'm getting
Could NOT find GTest (missing: GTEST_LIBRARY GTEST_MAIN_LIBRARY)
even iflibgtest-dev
is installed in the clickable docker container
@nitanmarcel you can skip building tests by setting BUILD_TESTING=OFF
(cmake .. -DBUILD_TESTING=OFF
)
@nitanmarcel you can skip building tests by setting
BUILD_TESTING=OFF
(cmake .. -DBUILD_TESTING=OFF
)
Thanks. Also do you know about this error?
CMake Error at CMake/Dependencies.cmake:6 (dependency_options):
Unknown CMake command "dependency_options".
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
It's defined here https://github.com/diasurgical/devilutionX/blob/master/CMake/functions/dependency_options.cmake, maybe you need to clear cache?
@nitanmarcel, I completely restored vm ubuntu image, I see you've moved on 👍 I was confused that ubtouch has 16.04 with old packages. How did you solve problem with old Cmake version in clickable?
@nitanmarcel, oh sorry, I forgot that I already asked this question in clickable repo. Here: https://gitlab.com/clickable/clickable/-/issues/346