-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error System.DllNotFoundException when trying to run code on Debian #81
Comments
Additional info. On Debian 11 not found dependency at version 2.4.1 (13.04.2023)
|
I compiled the library Photino.Native.so from source on my Debian 11. And this library works correctly. Thus, the library from your NuGet repository is platforfm-dependent. To work correctly on Linux disribution, other thn Ubuntu, recompilation is required. |
Thank you for the additional information here. Is the console output from trying to run your program after building it or is this an error that you got while building your project? |
We'll try to statically link these dependencies during compilation and see if we can fix this error that way. |
This is the console output from checking the library Photino.Native.so dependencies (last version from nuget) |
Thank you @pasha-e! I somehow completely missed the command at the very end of that line. Should've had another cup of coffee before I looked through the issues here 😆 I got a Debian 11 VM with LXDE going and will test it shortly |
Hi @pasha-e Can you try the following debug package? You will likely need to add a |
I am also facing this problem and have found a solution to this problem. see below detail. and and and, the Photino.Native also need more dependecy: libgtk-3-bin libwebkit2gtk-4.0-37 libnotify4 in my ubuntu18.04/debian 11/linux mint 20.1, i install those dependecy use:
|
Debian, I've also encountered this problem , photino.blazor 2.4.1 version |
I recently went to see how hard it would be to refactor a photino blazor app over to support linux and was faced with the GibC version issue, brand new Ubuntu instance on a VM, only things installed were .net 8 and Rider via the ubuntu app store thingy, was any progress made with this since last post? (I am using the latest Photino.Blazor which was built against .net 8) |
A debug version is available that is compiled against GLIBCXX_3.4.21/GLIBC_2.17 and libwebkit2gtk-4.0. During my testing I was able to run this on fresh installations of Ubuntu 22.04, Ubuntu 20.04, Debian 12, Debian 11 with Gnome desktop environment on ARM64. I tested a Debian installation with the latest Plasma (KDE) desktop and noticed it is using a QT version of the webkit browser control. We're looking into how to fix this. Until then, if you are dependent on this environment you might need to depend on apt for packaging and referencing libwebkit2gtk-4.0 as a dependency for installation. I'd appreciate any feedback for x64 based systems as I currently don't have access to it. Here's a debug package based on the latest Photino.NET 2.6.0. If it works for y'all I'll push a release to main and Nuget release. TIA |
I went to try your version but it kicks up too many problems, as Photino.Blazor wants Photino.Net >= 2.6.0 and I dont believe .net core/5+ supports assembly redirects, so I couldnt test it sorry. If you have a workaround for that problem or can bump the development version up I am happy to try again later. |
@grofit Here's a Blazor package that uses the latest Photino.NET debug package: |
Thanks for providing that, it got further but then blew up on:
I am using a bare bones install of Ubuntu 23.10 (in a VM), so not installed anything major other than Rider, GitKraken and .net 8, happy to try anything else that will help you progress. Forgive me for being a simpleton but is the crux of the problem that you are forced to link to a specific version of glibc and gtk etc, so even if you get this working out the box for my version of ubuntu it will potentially break for other peoples versions out the box? Hopefully there is some way of requesting a minimum version or somthing like we do with semver, but I never really use Linux so have no idea about if there is any way to do that, thanks again for your help so far though. |
Which desktop environment are you using? Gnome? I have tried 20.04 and 22.04 with Gnome and it worked out of the box. An installation with Plasma (KDE) did not work because it relies on a QT version of webkit instead of the GTK version. I haven't tried 23.10, could you run |
I believe it is gnome as thats what is listed in the help docs, but as I have no idea where to find that information its whatever the official ubuntu 23.10 release comes with. Anyway here is what the result of that command was:
|
@grofit @azraelrabbit @bxjg1987 The publishing guide that addresses these issues can be found here: tryphotino/photino.Native#129 (comment) Also see this discussion for some updates to the current development tryphotino/photino.Documentation#18 (comment) |
I know this has been closed, but I recently tried the latest 3.* release and same issues as above still exist and the other issues you link to are not specifically about getting it running/building on Linux. So I would ask this issue be re-opened as I still cant even run Photino apps in Ubuntu >= 23, and there is no real guidance as to how to get them running. |
I tried to run the project on сlear Debian 11 + dotnet SDK. Project from github, without edits.
Builded, but is non running
If i change in Photino.Blazor.csproj package reference
<ItemGroup> <PackageReference Include="Photino.NET" Version="2.4.0" /> </ItemGroup>
to
<ItemGroup> <PackageReference Include="Photino.NET" Version="2.3.0" /> </ItemGroup>
project is builded and launched.
With Photino.NET Version 2.3.2 not launched too.
If in Debug folder replace manually file Photino.Native.so to old version (24.09.2022 ver 2.2.3) project launched successfully.
So, I have a problem on Linux based system with Photino.Native version older 2.2.3.
On Windows builded and launched withhout problem on all versions.
What could be the reason?
The text was updated successfully, but these errors were encountered: