cloud - 无法在 Google Cloud App Engine 上加载共享库 libSkiaSharp
问题描述
我有一个在 Google Cloud App Engine 上运行的 .Net Core 3.1 Web 应用程序。当我尝试使用 Skia 2.80.2 时,出现以下错误:
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
我添加了 nuget 包 SkiaSharp.NativeAssets.Linux 并尝试将 runtimes\linux-x64\native\libSkiaSharp.so 作为内容添加到项目中。
在 app.yaml 中设置 LD_DEBUG 对日志没有影响:
env_variables:
LD_DEBUG: 'all'
解决方案
推荐阅读
- windows - Git、OpenSSH、windows 7“致命:远程端意外挂断”
- android - 地图不显示当前位置
- delphi - 在 Spring4D 中是否可以注册通用接口?
- docker - 如何在生产中运行 docker-compose
- arrays - 有没有办法使用嵌套循环在 C 中插入数组?
- spring - Spring MVC 模块、子系统和组件
- vba - 尝试使用 vba 查找从其他工作簿中获取值
- reactjs - 你如何根据 React 中的点击来改变状态?
- python - 通过正则表达式从转换为 str 的列表中获取特定值
- angularjs - 按 AngularJs 中的特定字段跟踪