GLib的-GIO-ERROR **:没有GSettings模式是安装在系统上 [英] GLib-GIO-ERROR**: No GSettings schemas are installed on the system

查看:1997
本文介绍了GLib的-GIO-ERROR **:没有GSettings模式是安装在系统上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不幸的是,我使用的是Windows(Windows7的64)。
随着MinGW的编译器code ::块和GTK + 3.6.4。
我从巧舌如簧手动编译所有的模式。

Unfortunately, I am using Windows (Windows7 x64). With MinGW compiler in Code::Blocks and GTK+3.6.4. I compiled manually all the schemas from glib.

当我使用的文件选择对话框/颜色拾取 - 没关系,
我收到以下错误:
GLib的-GIO-ERROR **:没有GSettings模式是在系统上安装和程序终止

When I use File Chooser dialogue / colorpicker - it doesn't matter, I am getting the following error: GLib-GIO-ERROR**: No GSettings schemas are installed on the system and the program terminates.

什么我需要做的来解决这个问题?

What do I have to do to fix this?

推荐答案

GSettings着眼于由 $ XDG_DATA_DIR 环境变量指向的目录编译模式。您可以使用一个启动程序脚本为你设置环境,或者你可以依靠preFIX,并在股票/巧舌如簧-2.0 /模式安装gschemas.compiled文件相同preFIX目录下为您的应用程序二进制文件,例如:如果你有以下布局:

GSettings looks at the compiled schemas in the directories pointed by the $XDG_DATA_DIR environment variable. You can either use a launcher script that sets up the environment for you, or you can rely on the prefix, and install the gschemas.compiled files in the share/glib-2.0/schemas directory under the same prefix as your app binary is, e.g. if you have the following layout:

YourApp/
  bin/
    YourApp.exe
  lib/
    libgtk3.dll
    libgobject.dll
    …
  share/
    …
    glib-2.0/
      schemas/

请确保 gschemas.compiled 文件是在 YourApp /股/巧舌如簧-2.0 /模式,和该 org.gtk.Settings.FileChooser.gschema.xml 是有作为。

Make sure that the gschemas.compiled file is under YourApp/share/glib-2.0/schemas, and that the org.gtk.Settings.FileChooser.gschema.xml is there as well.

这篇关于GLib的-GIO-ERROR **:没有GSettings模式是安装在系统上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆