热修复错误“GLib-GIO-ERROR **:没有GSettings模式安装在系统上”? [英] Hot to fix error "GLib-GIO-ERROR**: No GSettings schemas are installed on the system"?
问题描述
我必须用 InstallShield2015LimitedEdition
创建一个文件(.exe)程序,用 GTK3.4.2
在
。在这个程序中,用户可以从他的计算机中选择目录。但是当我调用FileChoser(点击按钮),我得到这个错误: Windows7 x64
中的OpenCV 3.0.0
GLib-GIO-ERROR **:没有GSettings模式安装在系统上
$
我将这个页面:
GLib-GIO-ERROR **:系统上未安装GSettings模式
,但我从来没有理解完全解决这个错误。它与此路径中的 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屋!