热修复错误“GLib-GIO-ERROR **:没有GSettings模式安装在系统上”? [英] Hot to fix error "GLib-GIO-ERROR**: No GSettings schemas are installed on the system"?

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

问题描述

我必须用 InstallShield2015LimitedEdition 创建一个文件(.exe)程序,用 GTK3.4.2 Windows7 x64 中的OpenCV 3.0.0 。在这个程序中,用户可以从他的计算机中选择目录。但是当我调用FileChoser(点击按钮),我得到这个错误:

  GLib-GIO-ERROR **:没有GSettings模式安装在系统上

$



我将这个页面:



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



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



如何处理GTK中的FileChooser与静态编译



,但我从来没有理解完全解决这个错误。它与此路径中的 org.gtk.Settings.FileChooser.gschema.xml 文件相关: ... \share\glib-2.0 \schemas



系统环境变量相关?



< img src =http://i.stack.imgur.com/hS58g.pngalt =输入图片说明>



添加到系统变量用户变量?它是什么 name path



例如。我将 GSETTINGS_SCHEMA_DIR 添加为变量名称 E:\Works for Gov Project\Help \源代码为GTK + \gtk + -bundle_3.4.2-20130513_win64\share\glib-2.0 \schemas 路径 系统变量用户变量
是正确的吗?

解决方案

我解决了:



首先:将 GSETTINGS_SCHEMA_DIR 添加为变量名称 E:\Works for Gov Project \Help\ GTK + \gtk + -bundle_3.4.2-20130513_win64\share\glib-2.0 \schemas 的源代码为路径 用户变量



然后,在系统变量 ---> path add E:\ Works for Gov Project \Help \ GTK + \gtk + -bundle_3.4.2的源代码-20130513_win64\share\glib-2.0 \schemas ; ; E:\ Works for Gov Project\Help\ GTK + \gtk + -bundle_3.4.2-20130513_win64\share\glib-2.0 \schemas


I have to create one-file (.exe) program with InstallShield2015LimitedEdition that write with GTK3.4.2 and OpenCV 3.0.0 in Windows7 x64. In this program user can choose directory from his computer. But when I invoke FileChoser (click on button) I got this error:

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

and the program terminates.

I viste this pages:

Glib-GIO-ERROR when opening an file chooser dialog

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

How deal with FileChooser in GTK with static compilation

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

Is related to system environment variable? And what things add to it?

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

For example. I 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 both of system variable and User variable. Is it correct?

解决方案

I solved it:

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.

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天全站免登陆