如何解决错误"GLib-GIO-ERROR **:系统上未安装GSettings模式"? [英] How to fix error "GLib-GIO-ERROR**: No GSettings schemas are installed on the system"?

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

问题描述

我必须使用InstallShield2015LimitedEdition创建一个与Windows 7 x64中的GTK3.4.2OpenCV 3.0.0一起使用的单文件(.exe)程序.在此程序中,用户可以从他们的计算机中选择目录.但是,当我调用FileChooser(单击可执行文件)时,出现此错误:

I have to create a one-file (.exe) program with InstallShield2015LimitedEdition that works with GTK3.4.2 and OpenCV 3.0.0 in Windows 7 x64. In this program the user can choose a directory from their computer. But when I invoke FileChooser (click on executable) I get this error:

GLib-GIO-ERROR**: No GSettings schemas are installed on the system

该程序终止.

我访问了以下页面:

打开文件选择器对话框时出现Glib-GIO-ERROR

GLib-GIO-ERROR ** :系统上未安装GSettings模式

如何在GTK中处理FileChooser静态编译

但是我从不完全了解如何解决此错误.它与org.gtk.Settings.FileChooser.gschema.xml文件在以下路径中相关:...\share\glib-2.0\schemas.

But I never understood exactly how to fix this error. It is related to org.gtk.Settings.FileChooser.gschema.xml file in this path: ...\share\glib-2.0\schemas.

system environment variable有关吗?我应该添加些什么?

Is it related to system environment variable? What things should I add to it?

添加到system variableUser variable?什么是namepath?

Add to system variable or User variable? What is name and path?

例如.我为system variableUser variable都添加了GSETTINGS_SCHEMA_DIR作为variable nameE:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas作为path.

For example. I added GSETTINGS_SCHEMA_DIR as variable name and E:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas as path for both of system variable and User variable.

这正确吗?

推荐答案

我解决了该问题:

首先:将GSETTINGS_SCHEMA_DIR作为variable name添加,将E:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas作为path作为User variable添加.

First: add GSETTINGS_SCHEMA_DIR as variable name and E:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas as path for User variable.

然后在system variable ---> path中先添加E:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas;,例如;E:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas

Then, in system variable ---> path add E:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas with ; in first it, e.g. ;E:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas

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

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