2016-06-20 42 views
1

我必須創建一個文件(.exe)程序InstallShield2015LimitedEditionGTK3.4.2OpenCV 3.0.0Windows7 x64寫入。在這個程序中,用戶可以從他的電腦中選擇目錄。但是,當我調用FileChoser(點擊按鈕)我得到這個錯誤:熱修復錯誤「GLib-GIO-ERROR **:系統上未安裝GSettings模式」?

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

enter image description here

和程序終止。

我viste這個網頁:

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有關嗎?什麼東西添加到它?

enter image description here

加入system variableUser variable?這是什麼namepath

例如。對於system variableUser variable兩者,我加GSETTINGS_SCHEMA_DIRvariable nameE:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemaspath。 這是正確的嗎?

回答

1

我解決了它:

第一:爲variable nameE:\Works for Gov Project\Help\Source codes for GTK+\gtk+-bundle_3.4.2-20130513_win64\share\glib-2.0\schemas添加GSETTINGS_SCHEMA_DIR作爲pathUser 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

相關問題