.NET 5.0 Cross Platform (linux)
Hi, have the problem - i'm try compile NET 5.0 app with noesis library but have invalid library problems
- native(.so) have problem on step load fonts
- from managed sdk(dll) have problem on Noesis_GetCurrentThreadId - System.DllNotFoundException
Can help me? in Windows 7+ no have any problems, i'm try download managed code from repository(for tests) and watch problems, at linux native libs dllimport calls is works fine
Updated: Noesis package ver 3.1.1
- native(.so) have problem on step load fonts
- from managed sdk(dll) have problem on Noesis_GetCurrentThreadId - System.DllNotFoundException
Can help me? in Windows 7+ no have any problems, i'm try download managed code from repository(for tests) and watch problems, at linux native libs dllimport calls is works fine
Updated: Noesis package ver 3.1.1
Re: .NET 5.0 Cross Platform (linux)
App code, dead on -> return new XDisplay();
From debug (native(.so))
- Dead on XDefaultScreen without exception, return IntPtr.Zero(null), may be it's wsl problem (but i configure desktop for X11 work, and tests another app), fixed - replace null arg to $DISPLAY console content, may-be need replace Display.cs
to
- Dead on without exception on file FontProvider.cs
Code: Select all
partial class App : Application
{
protected override Display CreateDisplay()
{
return new XDisplay();
}
protected override void OnLog(LogLevel level, string channel, string message)
{
if (string.IsNullOrEmpty(channel))
Logger.Log($"{Enum.GetName(level)} - {message}");
#if DEBUG
base.OnLog(level, channel, message);
#endif
}
protected override RenderContext CreateRenderContext()
{
if (RuntimeInformation.OSArchitecture == Architecture.Arm ||
RuntimeInformation.OSArchitecture == Architecture.Arm64)
{
return new RenderContextEGL();
}
else
{
return new RenderContextGLX();
}
}
static void Main(string[] args)
{
App app = new App();
app.Uri = "App.xaml";
app.Run();
}
}
- Dead on XDefaultScreen without exception, return IntPtr.Zero(null), may be it's wsl problem (but i configure desktop for X11 work, and tests another app), fixed - replace null arg to $DISPLAY console content, may-be need replace Display.cs
Code: Select all
_display = XOpenDisplay(null);
int screenNumber = XDefaultScreen(_display);
Code: Select all
_display = XOpenDisplay(<constructor arg>);
if (_display == IntPtr.Zero)
throw new Exception("cannot connected x11 server");
int screenNumber = XDefaultScreen(_display);
- Dead on without exception on file FontProvider.cs
Code: Select all
private void RegisterFontHelper(string folder, string id) {
NoesisGUI_PINVOKE.FontProvider_RegisterFontHelper(swigCPtr, folder != null ? folder : string.Empty, id != null ? id : string.Empty);
}
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: .NET 5.0 Cross Platform (linux)
I've created ticket #2147 to track this issue, could you please create an account in our bugtracker to monitor it.
We'll try to replicate the problem on our end, if not we'll ask for your help in the ticket.
We'll try to replicate the problem on our end, if not we'll ask for your help in the ticket.
Who is online
Users browsing this forum: No registered users and 20 guests