Giter Site home page Giter Site logo

Comments (14)

sam-wheat avatar sam-wheat commented on August 23, 2024 1

BTW I am using Photiono.Blazor with dotnet 8 and I have not run into any issues.

from photino.blazor.

sourceit avatar sourceit commented on August 23, 2024

Same issue applies to Photino.HelloPhotino.NET

from photino.blazor.

ottodobretsberger avatar ottodobretsberger commented on August 23, 2024

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.

sam-wheat avatar sam-wheat commented on August 23, 2024

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

Capture

from photino.blazor.

sam-wheat avatar sam-wheat commented on August 23, 2024

Is anyone here?

from photino.blazor.

MikeYeager avatar MikeYeager commented on August 23, 2024

@sam-wheat So far, we are not able to reproduce your issue.

from photino.blazor.

manfromarce avatar manfromarce commented on August 23, 2024

I get the same error in both Ubuntu and Debian on WSL (Windows 11).

from photino.blazor.

leaderanalytics avatar leaderanalytics commented on August 23, 2024

@MikeYeager because you didn't try or because it works? lol

from photino.blazor.

sam-wheat avatar sam-wheat commented on August 23, 2024

@MikeYeager 2.6.0 is working thus far! Thank you!

from photino.blazor.

philippjbauer avatar philippjbauer commented on August 23, 2024

Possibly related to: #81

from photino.blazor.

SommerEngineering avatar SommerEngineering commented on August 23, 2024

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 avatar MikeYeager commented on August 23, 2024

@MikeYeager because you didn't try or because it works? lol

Because it works. :-)

from photino.blazor.

MikeYeager avatar MikeYeager commented on August 23, 2024

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.

philippjbauer avatar philippjbauer commented on August 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.