.NET6 on UT
-
@dizzy in order to run a .NET app on UT the whole .NET runtime would need to be packaged in the .click (clicks are the package format for UTouch apps). This probably being a game, the gaming engine would need to be included as well.
There are no tutorials or instructions on how to do this as it has as yet never been attempted.
-
@arubislander You can deploy both Avalonia and Uno apps self contained and as a single executable file, and it runs on Linux desktop. No installation needed. I have tried it on Ubuntu and Manjaro Gnome. Could that work on UT? Not optimal but a good start if so.
-
@dizzy said in .NET6 on UT:
@arubislander You can deploy both Avalonia and Uno apps self contained and as a single executable file, and it runs on Linux desktop. No installation needed. I have tried it on Ubuntu and Manjaro Gnome. Could that work on UT? Not optimal but a good start if so.
@dizzy It would depend on what those self-contained packages expect to be installed on the base system.
Desktops and laptops have many more packages installed than there are on Ubuntu Touch. Also the non-mainline devices use the Mir protocol for the display manager. The PinePhone uses the Wayland protocol. These need to be supported by the afore mentioned packages. -
@arubislander Interesting, so Pinephone UT uses Wayland. To be honest, I wasn't even thinking of Mir...
I guess I just have to tryout a "Hellow world" application. Thanks! -
@dizzy it all depends on what native-side toolkit those .NET toolkits use. If it's GTK or SDL (something that uses Wayland to spawn window surfaces) then to some extent it could work, at least on Halium >= 9.0 and mainline devices.
-
@dizzy said in .NET6 on UT:
Is it possible to develop applications with .NET6 for UT? I was thinking of Avalonia.UI or Uno Platform.
Never heard of those two before so learned something new today! Thnx!
About .NET in combination with Linux in general :
You could try https://www.mono-project.com/ and see what happens when you add it to your phone...Huge chance you will ending up flashing the phone again but it also might be worth it ?!
Good luck!
-
I tried a little bit today with no success. Haven't had time to investigate it further but I did find this:
https://stackoverflow.com/questions/66108147/is-there-any-way-to-run-an-avalonia-app-in-an-arm64-environment -
This post is deleted! -
-
@dizzy does it have to be executed as root? What happens if you try it without sudo?
In case it does need root, then you need to provide the complete path to the executable.
It could also be that nothing is allowed to be executed in the Downloads folder.
-
@arubislander On Linux desktop it doesn't has to be as root but I got a "Permission denied" on UT.
This is the executable. It's a single file, self contained application. EDIT: Ah. You meen like this of cause: sudo ./home/phablet/Documents/Avalonia.UT. Have tried that too.
I have also tried it in Downloads and Documents.
EDIT: Added info.
This error was because I compiled it for alpine-arm64.
When compiled for linux-arm64 console app runs and Avalonia app at least tryes to. -
By the way, is it possible to run appimages on UT? Install flatpacks or snaps?
-
@dizzy none of the above is readily possible. AppImages could theoretically be made to work, but none had dedicated themselves to the effort.
-
@arubislander Yep, I'm starting to think it will only run on Plasma Mobile. I will try it again when my Pixel 3a arrives but then I don't have more time for it at the moment. Maybe in the future.
-
Thanks all!
By the way, I also found this article:
https://www.codingnagger.com/2021/02/14/linux-app-for-pinephone-with-pain-and-net-core/ -
@arubislander Thats actually an interristing thought. I wonder what it would take.
-
I have done some progress. .NET 6 ConsoleApp running on UT. This is on Pinephone. Sorry about the text
Error when launching Avalonia App:
-
@dizzy not .Net but c# or c++ inside Godot can do the job, IDK, Think about it.
-
@thousandtopics Actually, dotnet is working in UT. Just have not got it running with Avalonia as a UI framework yet and maybe I never will. I have got it running on Phosh though, even if the scaling was all off. It opened as a movable window. Im talking about created and built with no modifications and thats what Im interesting in. Uno Platform gave the same result.
I dont know what Godot is. -
@dizzy said in .NET6 on UT:
I dont know what Godot is.
You'll have to wait for it
Sorry for the joke ; couldn't resist.
Here is about the Gogot engine: https://godotengine.org/