diff --git a/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj b/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
index 68489a2..4e0ff0e 100644
--- a/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
+++ b/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
@@ -23,7 +23,6 @@
-
diff --git a/demo/Semi.Avalonia.Demo.Drm/App.axaml b/demo/Semi.Avalonia.Demo.Drm/App.axaml
index 40032b1..d4ceb6d 100644
--- a/demo/Semi.Avalonia.Demo.Drm/App.axaml
+++ b/demo/Semi.Avalonia.Demo.Drm/App.axaml
@@ -2,13 +2,12 @@
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">
-
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/demo/Semi.Avalonia.Demo.Drm/使用方法.txt b/demo/Semi.Avalonia.Demo.Drm/使用方法.md
similarity index 59%
rename from demo/Semi.Avalonia.Demo.Drm/使用方法.txt
rename to demo/Semi.Avalonia.Demo.Drm/使用方法.md
index 0e9445e..efe659a 100644
--- a/demo/Semi.Avalonia.Demo.Drm/使用方法.txt
+++ b/demo/Semi.Avalonia.Demo.Drm/使用方法.md
@@ -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
\ No newline at end of file