如何解决错误"GLib-GIO-ERROR **:系统上未安装GSettings模式"? [英] How to fix error "GLib-GIO-ERROR**: No GSettings schemas are installed on the system"?
问题描述
我必须使用InstallShield2015LimitedEdition
创建一个与Windows 7 x64
中的GTK3.4.2
和OpenCV 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 ** :系统上未安装GSettings模式
但是我从不完全了解如何解决此错误.它与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 variable
或User variable
?什么是name
和path
?
Add to system variable
or User variable
? What is name
and path
?
例如.我为system variable
和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
.
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屋!