Waf 2.0.17 glib2编译并安装gsettings模式 hamster的内容。
但是,如果不先安装就无法运行该应用程序:
python3 src/hamster-cli.py
(hamster-cli.py:4690): GLib-GIO-ERROR **: 17:27:08.176:
Settings schema 'org.gnome.Hamster' is not installed
First steps with GSettings中描述的解决方法不起作用。
./waf configure build
...
[127/127]编译data / org.gnome.hamster.gschema.xml
GSETTINGS_SCHEMA_DIR=build/data python3 src/hamster-cli.py
(hamster-cli.py:4850):GLib-GIO-ERROR **:17:31:56.381:未安装设置架构'org.gnome.Hamster' 跟踪/断点陷阱(核心已转储)
GSETTINGS_SCHEMA_DIR=build/data gsettings describe org.gnome.hamster last-report-folder
没有这样的模式“ org.gnome.hamster”
实际上,只有serves as a target的空build/data/org.gnome.hamster.gschema.xml.valid
文件:
hcode = 'rm -f ${GLIB_VALIDATE_SCHEMA_OUTPUT} \
&& ${GLIB_COMPILE_SCHEMAS} --dry-run ${GLIB_COMPILE_SCHEMAS_OPTIONS} \
&& touch ${GLIB_VALIDATE_SCHEMA_OUTPUT}'
跟随this answer:
glib-compile-schemas --targetdir=build/data data
如何使用build/data
在./waf configure build
中获得编译模式?