Comments (14)
BTW I am using Photiono.Blazor with dotnet 8 and I have not run into any issues.
from photino.blazor.
Same issue applies to Photino.HelloPhotino.NET
from photino.blazor.
In theory, if the files and folders are copied onto the SteamDeck correctly (including the .so libraries, which you indicated you did), it should work. We do not however have an option to verify this process ourselves at the moment, since neither of us owns or has access to a Steam Deck at the moment.
One thought is: Photino relies on GTK, which isn't included by default on SteamOS as far as I understand. Maybe that is missing? Either way, it's going to be hard for us to troubleshoot this particular scenario.
from photino.blazor.
Same issue on Windows 10 / Ubunto running on WSL.
Project is the Photino.Blazor sample.
Publish profile:
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>\\wsl.localhost\Ubuntu\tmp\BlazorPhoton</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>false</PublishSingleFile>
<PublishTrimmed>false</PublishTrimmed>
</PropertyGroup>
</Project>
Steps to reproduce:
- Windows Visual Studio 2022 - Publish using above profile. In my case the output folder in the publish profile is the WSL filesystem.
- Open terminal on WSL
- cd /tmp/BlazorPhoton
- chmod 777 ./Photino.Blazor.Sample
- ./Photino.Blazor.Sample
Error msg:
Photino.NET: "Photino".SetTitle(Photino.Blazor App)
Photino.NET: "Photino.Blazor App".SetUseOsDefaultLocation(False)
Photino.NET: "Photino.Blazor App".SetWidth(1000)
Photino.NET: "Photino.Blazor App".SetHeight(900)
Photino.NET: "Photino.Blazor App".SetLeft(0)
Photino.NET: "Photino.Blazor App".SetTop(100)
Photino.NET: "Photino.Blazor App".SetIconFile(favicon.ico)
Photino.NET: "Photino.Blazor App".SetTitle(Photino Blazor Sample)
Photino.NET: "Photino Blazor Sample".Load(app://localhost/)
Photino.NET: "Photino Blazor Sample"***
Unable to load shared library 'Photino.Native' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libPhotino.Native: cannot open shared object file: No such file or directory
at PhotinoNET.PhotinoWindow.Photino_ctor(PhotinoNativeParameters& parameters)
at PhotinoNET.PhotinoWindow.b__274_0()
at PhotinoNET.PhotinoWindow.Invoke(Action workItem)
at PhotinoNET.PhotinoWindow.WaitForClose()
Error #0
Photino.NET: "Photino Blazor Sample".OpenAlertWindow(Fatal exception, System.ApplicationException: Native code exception. Error # 0 See inner exception for details.
---> System.DllNotFoundException: Unable to load shared library 'Photino.Native' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libPhotino.Native: cannot open shared object file: No such file or directory
at PhotinoNET.PhotinoWindow.Photino_ctor(PhotinoNativeParameters& parameters)
at PhotinoNET.PhotinoWindow.b__274_0()
at PhotinoNET.PhotinoWindow.Invoke(Action workItem)
at PhotinoNET.PhotinoWindow.WaitForClose()
--- End of inner exception stack trace ---
at PhotinoNET.PhotinoWindow.WaitForClose()
at Photino.Blazor.PhotinoBlazorApp.Run() in C:\Projects\photino.Blazor\Photino.Blazor\PhotinoBlazorApp.cs:line 50
at Photino.Blazor.Sample.Program.Main(String[] args) in C:\Projects\photino.Blazor\Samples\Photino.Blazor.Sample\Program.cs:line 33)
Unhandled exception. System.ApplicationException: Native code exception. Error # 0 See inner exception for details.
---> System.DllNotFoundException: Unable to load shared library 'Photino.Native' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libPhotino.Native: cannot open shared object file: No such file or directory
at PhotinoNET.PhotinoWindow.Photino_ctor(PhotinoNativeParameters& parameters)
at PhotinoNET.PhotinoWindow.b__274_0()
at PhotinoNET.PhotinoWindow.Invoke(Action workItem)
at PhotinoNET.PhotinoWindow.WaitForClose()
--- End of inner exception stack trace ---
at PhotinoNET.PhotinoWindow.WaitForClose()
at Photino.Blazor.PhotinoBlazorApp.Run() in C:\Projects\photino.Blazor\Photino.Blazor\PhotinoBlazorApp.cs:line 50
at Photino.Blazor.Sample.Program.Main(String[] args) in C:\Projects\photino.Blazor\Samples\Photino.Blazor.Sample\Program.cs:line 33
Aborted
from photino.blazor.
Is anyone here?
from photino.blazor.
@sam-wheat So far, we are not able to reproduce your issue.
from photino.blazor.
I get the same error in both Ubuntu and Debian on WSL (Windows 11).
from photino.blazor.
@MikeYeager because you didn't try or because it works? lol
from photino.blazor.
@MikeYeager 2.6.0 is working thus far! Thank you!
from photino.blazor.
Possibly related to: #81
from photino.blazor.
I am also very interested in running a Photino.Blazor
project on the Steam Deck 😄. However, I'm still in the planning phase and don't currently have a Steam Deck to test 🙁. Would it be possible to run SteamOS in a VM? Yes, I found instructions here: https://www.youtube.com/watch?v=NJ2jvTgp4AA
from photino.blazor.
@MikeYeager because you didn't try or because it works? lol
Because it works. :-)
from photino.blazor.
FYI We will soon release builds with a few fixes that support .NET6-8 and we have published and tested some of our samples using single file deploy with tree shaking (trimming). We have not yet tested on Blazor and will be doing that next.
from photino.blazor.
@sourceit @SommerEngineering @sam-wheat
You'll want to look at the Flatpack option to publish to SteamOS:
The guide for publishing on all platforms is available as a sample in the Photino.Samples repository as a separate project. It includes a publish script and packaging templates that can be adapted for your specific situation.
Currently only available in the debug branch (as of 03/19/2024), lets find the rough edges together! :)
https://github.com/tryphotino/photino.Samples/tree/debug/Photino.PublishPhotino
You'll want to look at the Flatpack option to publish to SteamOS
from photino.blazor.
Related Issues (20)
- version HOT 1
- "Building" questions HOT 2
- css/bootstrap sizing is messed up HOT 4
- Fullscreen issues HOT 2
- HighDPI issues HOT 7
- NativeAOT compiled Blazor App can't load interface HOT 2
- New version (2.7.0) not resolving paths to localhost as it did in previous versions (2.6.0) HOT 4
- How to set up Photino for .NET 8 Blazor Web App? HOT 4
- NativeAOT sample doesn't load Blazor app - stuck on "Loading..." HOT 6
- ArgumentException ("The path must be absolute") on appBuilder.Build() while debugging in WSL HOT 1
- Intercept `<a href>` navigation HOT 1
- centos 7 not work after Photino.NET 2.3.0 HOT 2
- Override IFileProvider for static file assets
- Photino.Blazor.Sample NSUnknownKeyException - Mac OS Ventura 13.2 Intel HOT 3
- Can icon provide byte entry pass?
- BlazorSample canot work on ububtu22.04 HOT 2
- Not working with .Net 8 on Ubuntu 22.04? HOT 6
- All Sample Apps Stuck on "Loading..." on MacOS HOT 10
- Linux on-screen keyboard HOT 1
- Cannot make Blazor app run on linux HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photino.blazor.