Closed hadess closed 10 years ago
I have the output:
(gnome-books:4314): GLib-GIO-ERROR **: Settings schema 'org.gnome.books' is not installed
Trace/breakpoint trap
Also, no running...
The schema file has been added (https://github.com/martamilakovic/gnome-books/commit/c5bd983d4a86f65508b7e426c041784d4df7300d). You should be able to compile it now. Thanks for the report.
The schema won't be installed, as you forgot to add "data" to the SUBDIRS variable in the top-level Makefile.am.
This isn't the only bug in the build system to make it installable:
diff --git a/Makefile.am b/Makefile.am
index 0f38490..545b46d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = -I m4 -I libgd ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
-SUBDIRS=libgd src
+SUBDIRS=libgd src data
MAINTAINERCLEANFILES = \
$(srcdir)/AUTHORS \
diff --git a/configure.ac b/configure.ac
index b006820..800326d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,8 @@ GOBJECT_INTROSPECTION_REQUIRE([0.9.6])
AM_INIT_AUTOMAKE([1.10 no-define foreign dist-xz no-dist-gzip subdir-objects])
AM_MAINTAINER_MODE([enable])
+IT_PROG_INTLTOOL([0.40.0])
+
AC_PROG_CC
AC_LANG_C
AM_PROG_CC_C_O
@@ -59,11 +61,14 @@ AC_SUBST(DEPEND_LIBS)
top_builddir=`pwd`
AC_SUBST(top_builddir)
+GLIB_GSETTINGS
+
AC_CONFIG_FILES([
Makefile
data/Makefile
libgd/Makefile
src/Makefile
+ po/Makefile.in
])
AC_OUTPUT
Thanks for help. I have fixed the stuff you pointed out. If there are any other issues please write me.
I had to manually create the directory po/
, as the autogen.sh
was returning:
intltoolize: cannot copy '/usr/share/intltool/Makefile.in.in' to 'po/Makefile.in.in'
But I'm still not able to run the program, it returns some erros and then stays frozen:
Am I doing something wrong?
@camporez I was getting the same error, too. The key log output seems to be
Failed to load shared library 'libgbprivate-1.0.so' referenced by the typelib: libgbprivate-1.0.so: cannot open shared object file: No such file or directory
I grepped for libgbprivate-1.0.so
; it looks like the export
path in the README is outdated, as the libs have moved from src/lib/.libs
to src/.libs
. This worked for me:
./autogen
make
sudo make install
export LD_LIBRARY_PATH=`pwd`/src/.libs:$LD_LIBRARY_PATH
export GI_TYPELIB_PATH=`pwd`/src
@dgoerger Thank you! It's working now :D
(gnome-books:26916): GLib-GObject-WARNING **: The property GSettings:schema is deprecated and shouldn't be used anymore. It will be removed in a future version.
There's no schema file anywhere inside the source code.
(Also, what are the plans regarding merging this back into gnome-documents?)