簡體   English   中英

如何解決錯誤“ GLib-GIO-ERROR **:系統上未安裝GSettings模式”?

[英]How to fix error “GLib-GIO-ERROR**: No GSettings schemas are installed on the system”?

我必須使用InstallShield2015LimitedEdition創建一個可與GTK3.4.2Windows 7 x64 OpenCV 3.0.0一起使用的單文件(.exe)程序。 在此程序中,用戶可以從計算機中選擇目錄。 但是,當我調用FileChooser(單擊可執行文件)時,出現此錯誤:

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

在此處輸入圖片說明

程序終止。

我訪問了以下頁面:

打開文件選擇器對話框時出現Glib-GIO-ERROR

GLib-GIO-ERROR **:系統上未安裝GSettings模式

如何通過靜態編譯處理GTK中的FileChooser

但是我從來不完全了解如何解決此錯誤。 它與org.gtk.Settings.FileChooser.gschema.xml文件的路徑有關: ...\\share\\glib-2.0\\schemas

system environment variable嗎? 我應該添加些什么?

在此處輸入圖片說明

添加到system variable還是User variable namepath什么?

例如。 我添加了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作為system variableUser variable 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作為User variable path

然后,在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 ; 首先,例如;E:\\Works for Gov Project\\Help\\Source codes for GTK+\\gtk+-bundle_3.4.2-20130513_win64\\share\\glib-2.0\\schemas

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM