我必须使用InstallShield2015LimitedEdition
创建一个单文件(.exe)程序,该程序与GTK3.4.2
中的OpenCV 3.0.0
和Windows 7 x64
一起使用。在该程序中,用户可以从他们的计算机中选择目录。但是当我调用FileChooser(单击可执行文件)时,我收到此错误:
GLib-GIO-ERROR**: No GSettings schemas are installed on the system
并且程序终止。
我访问了这些页面:
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
但我从未明白如何解决这个错误。它与此路径中的org.gtk.Settings.FileChooser.gschema.xml
文件有关:...\share\glib-2.0\schemas
。
它与system environment variable
有关吗?我应该添加什么东西?
添加到system variable
或User variable
?什么是name
和path
?
例如。我为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
和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
为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