前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Xamarin 使用 GTK 提示找不到 libglib-2.0-0.dll 找不到

Xamarin 使用 GTK 提示找不到 libglib-2.0-0.dll 找不到

作者头像
林德熙
发布2020-04-08 15:50:14
2.2K0
发布2020-04-08 15:50:14
举报
文章被收录于专栏:林德熙的博客林德熙的博客

在使用 Xamarin 开发 Linux 应用的时候,刚开始如果没有弄好 libglib-2.0-0.dll 的依赖库,那么将会在运行的时候,在 Gtk.Application.Init() 这句代码提示找不到这个库

解决方法是先到官网 下载 GTK# 安装包或 mono x86 的应用

安装到默认路径,也就是在 C:\Program Files (x86)\GtkSharp\2.12\bin 路径,默认安装的时候会加入到环境变量

接下来到 C:\Program Files (x86)\GtkSharp\2.12\bin 复制 libglib-2.0-0.dll 文件到 xamarin 的输出文件夹,如 D:\lindexi\t\Xamarin\Cla\bin\x86\Debug\net47 文件夹里面,此时尝试运行,应该就不会存在这个提示

注意现在 GTK# 仅支持 x86 应用

DllNotFoundException: Unable to load DLL ‘libgtk-win32-2.0-0.dll · Issue #937 · mono/xwt

Unable to load DLL ‘libgtk-win32-2.0-0.dll’ — Xamarin Community Forums

Gnome - Tomboy - Unable to load DLL ‘libgtk-win 32-2.0-0.dll’

Index of /sources/gtk-sharp212

Xamarin.Forms/Xamarin.Forms.Platform.GTK at master · xamarin/Xamarin.Forms

jsuarezruiz/xamarin-forms-gtk-weather-sample: Xamarin.Forms GTK Backend Weather Sample

windows - Xamarin Studio, GTK 2.0 C# application, runtime error, can’t load libglib-2.0-0.dll - Stack Overflow

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档