feat: update references.

This commit is contained in:
rabbitism 2023-07-09 23:03:11 +08:00
parent 112d1e3dd4
commit 201610b9ab
3 changed files with 22 additions and 19 deletions

View File

@ -23,7 +23,6 @@
<PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" />
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
<PackageReference Include="Avalonia.LinuxFramebuffer" Version="11.0.0" />
</ItemGroup>
<ItemGroup>

View File

@ -2,7 +2,6 @@
x:Class="Semi.Avalonia.Demo.Drm.App"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Semi.Avalonia.Demo.Desktop"
RequestedThemeVariant="Light">
<Application.Styles>

View File

@ -1,4 +1,7 @@
DRM启动步骤(Ubuntu18.04Server版本 虚拟机测试OK)
# DRM启动步骤
(Ubuntu18.04Server版本 虚拟机测试OK)
Avalonia官方参考文档https://docs.avaloniaui.net/docs/next/guides/platforms/rpi/running-on-raspbian-lite-via-drm
1.Linux端运行命令
@ -21,26 +24,28 @@ Avalonia官方参考文档https://docs.avaloniaui.net/docs/next/guides/platfo
7.运行 ./Semi.Avalonia.Demo.Drm --drm
报错处理:
## 报错处理:
1. 报错内容
>Unhandled exception. Avalonia.Markup.Xaml.XamlLoadException: No precompiled XAML found for avares://Semi.Avalonia/Themes/Light/Light.axaml (baseUri: avares://Semi.Avalonia/Themes/Index.axaml), make sure to specify x:Class and include your XAML file as AvaloniaResource
1.报错内容
Unhandled exception. Avalonia.Markup.Xaml.XamlLoadException: No precompiled XAML found for avares
://Semi.Avalonia/Themes/Light/Light.axaml (baseUri: avares://Semi.Avalonia/Themes/Index.axaml), m
ake sure to specify x:Class and include your XAML file as AvaloniaResource
解决方法:
如果使用Semi发布文件不要裁剪如果裁剪会报错
2.报错内容
Unhandled exception. System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
--->System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies.In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory
2. 报错内容
>Unhandled exception. System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.**
**--->System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies.In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No such file or directory
at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
at SkiaSharp.SKImageInfo..cctor()
解决方法:
Linux命令行安装一下 apt-get install -y libfontconfig1
参考网址https://github.com/mono/SkiaSharp/issues/509
3.报错内容
Permission denied
3. 报错内容
>Permission denied
解决方法:
sudo chmod +x ./Semi.Avalonia.Demo.Drm