質問するログイン新規登録

質問編集履歴

2

LD_LIBRARY_PATH について追記

2018/06/23 15:06

投稿

amay077
amay077

スコア1075

title CHANGED
File without changes
body CHANGED
@@ -74,6 +74,33 @@
74
74
 
75
75
  から ``libSkiaSharp.so`` をダウンロードし、 ``bin/Debug/netcoreapp2.0`` に配置してみましたが、現象は変わりませんでした。
76
76
 
77
+ ### 追記 6.24
78
+
79
+ @yamachu さん、 @espresso3389 さんに回答いただいて、次のことを試しました。
80
+
81
+ 1. ``export LD_LIBRARY_PATH=/work/lib/`` を設定
82
+ 2. 上記ディレクトリに ``libSkiaSharp.so``, ``liblibSkiaSharp.so`` を配置
83
+ 3. ``dotnet run`` を実行
84
+
85
+ するとやはり同じエラーだったので、
86
+
87
+ ``LD_DEBUG=libs dotnet run`` を実行してみました。
88
+
89
+ その出力には、
90
+
91
+ ```
92
+ 1946: find library=libSkiaSharp.so [0]; searching
93
+ 1946: search path=/work/lib (LD_LIBRARY_PATH)
94
+ 1946: trying file=/work/lib/libSkiaSharp.so
95
+ 1946:
96
+ 1946: find library=liblibSkiaSharp.so [0]; searching
97
+ 1946: search path=/work/lib (LD_LIBRARY_PATH)
98
+ 1946: trying file=/work/lib/liblibSkiaSharp.so
99
+ ```
100
+ という内容があり、配置したファイルを探索してはいるようですが、症状は変わらずという状態です。
101
+ ``libSkiaSharp.so`` が依存している何かが足りないのかな?とも考えています。
102
+
103
+
77
104
  ### 補足情報
78
105
 
79
106
  * 試した Ubuntu 環境: Docker: [microsoft/dotnet](https://hub.docker.com/r/microsoft/dotnet/) の ``microsoft/dotnet:2.1-sdk`` イメージ

1

エラーメッセージを見やすいように改行

2018/06/23 15:06

投稿

amay077
amay077

スコア1075

title CHANGED
File without changes
body CHANGED
@@ -7,7 +7,11 @@
7
7
  ### 発生している問題・エラーメッセージ
8
8
 
9
9
  ```
10
- 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
10
+ Unhandled Exception: System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
11
+ ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp'
12
+ or one of its dependencies. In order to help diagnose loading problems,
13
+ consider setting the LD_DEBUG environment variable: liblibSkiaSharp:
14
+ cannot open shared object file: No such file or directory
11
15
  at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
12
16
  at SkiaSharp.SKImageInfo..cctor()
13
17
  --- End of inner exception stack trace ---