質問編集履歴

2

LD_LIBRARY_PATH について追記

2018/06/23 15:06

投稿

amay077
amay077

スコア1075

test CHANGED
File without changes
test CHANGED
@@ -150,6 +150,60 @@
150
150
 
151
151
 
152
152
 
153
+ ### 追記 6.24
154
+
155
+
156
+
157
+ @yamachu さん、 @espresso3389 さんに回答いただいて、次のことを試しました。
158
+
159
+
160
+
161
+ 1. ``export LD_LIBRARY_PATH=/work/lib/`` を設定
162
+
163
+ 2. 上記ディレクトリに ``libSkiaSharp.so``, ``liblibSkiaSharp.so`` を配置
164
+
165
+ 3. ``dotnet run`` を実行
166
+
167
+
168
+
169
+ するとやはり同じエラーだったので、
170
+
171
+
172
+
173
+ ``LD_DEBUG=libs dotnet run`` を実行してみました。
174
+
175
+
176
+
177
+ その出力には、
178
+
179
+
180
+
181
+ ```
182
+
183
+ 1946: find library=libSkiaSharp.so [0]; searching
184
+
185
+ 1946: search path=/work/lib (LD_LIBRARY_PATH)
186
+
187
+ 1946: trying file=/work/lib/libSkiaSharp.so
188
+
189
+ 1946:
190
+
191
+ 1946: find library=liblibSkiaSharp.so [0]; searching
192
+
193
+ 1946: search path=/work/lib (LD_LIBRARY_PATH)
194
+
195
+ 1946: trying file=/work/lib/liblibSkiaSharp.so
196
+
197
+ ```
198
+
199
+ という内容があり、配置したファイルを探索してはいるようですが、症状は変わらずという状態です。
200
+
201
+ ``libSkiaSharp.so`` が依存している何かが足りないのかな?とも考えています。
202
+
203
+
204
+
205
+
206
+
153
207
  ### 補足情報
154
208
 
155
209
 

1

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

2018/06/23 15:06

投稿

amay077
amay077

スコア1075

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,15 @@
16
16
 
17
17
  ```
18
18
 
19
- 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
19
+ Unhandled Exception: System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
20
+
21
+ ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp'
22
+
23
+ or one of its dependencies. In order to help diagnose loading problems,
24
+
25
+ consider setting the LD_DEBUG environment variable: liblibSkiaSharp:
26
+
27
+ cannot open shared object file: No such file or directory
20
28
 
21
29
  at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
22
30