Open ws333 opened 4 years ago
Is gobject-introspection installed? You need to have all the build dep listed here installed to compile
https://github.com/linuxmint/nemo-extensions/blob/master/nemo-preview/debian/control#L5
Thank you for the suggestion, I installed gobject-introspection and a list of other dependencies it asked for. Now I get through the autogen.sh script, but when running make I get this error:
libnemo-preview/nemo-preview-utils.c:84:3: warning: ‘clutter_cairo_texture_get_type’ is deprecated: Use 'clutter_canvas_get_type' instead [-Wdeprecated-declarations]
clutter_cairo_texture_set_auto_resize (CLUTTER_CAIRO_TEXTURE (retval), TRUE);
^~~~~~~~~
In file included from /usr/include/clutter-1.0/clutter/clutter-deprecated.h:21,
from /usr/include/clutter-1.0/clutter/clutter.h:111,
from libnemo-preview/nemo-preview-utils.h:31,
from libnemo-preview/nemo-preview-utils.c:28:
/usr/include/clutter-1.0/clutter/deprecated/clutter-cairo-texture.h:98:7: note: declared here
GType clutter_cairo_texture_get_type (void) G_GNUC_CONST;
^~~~~~~~~~
CC libnemo_preview_1_0_la-nemo-preview-enum-types.lo
CCLD libnemo-preview-1.0.la
CCLD nemo-preview-start
GEN nemo-preview
chmod +x nemo-preview
GISCAN NemoPreview-1.0.gir
Couldn't find include 'XreaderDocument-1.5.gir' (search path: '['/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gnome/gir-1.0', '/home/whitestone/.local/share/flatpak/exports/share/gir-1.0', '/var/lib/flatpak/exports/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/var/lib/snapd/desktop/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
make[2]: [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: NemoPreview-1.0.gir] Error 1
make[2]: Leaving directory '/home/whitestone/MyDev/debian-admin/nemo-extensions/nemo-preview/src'
make[1]: [Makefile:574: all] Error 2
make[1]: Leaving directory '/home/whitestone/MyDev/debian-admin/nemo-extensions/nemo-preview/src'
make: *** [Makefile:457: all-recursive] Error 1
You stall have a missing dep, you need to install gir1.2-xreader
Thank you, it`s working now! I would newer have sorted this out on my own, but learned a lot in the process.
xreader isn't available on debian, that's the problem
I was able to build and install the xreader and nemo-preview packages on Debian Bullseye with:
sudo mk-build-deps -ir
dpkg-buildpackage
in the xreader
and nemo-preview
directories. Build system worked perfectly; no errors, just a few compiler warnings.
Smoketesting both seems fine with pdf and jpeg files. I didn't see any discussion of why Debian isn't carrying these by default when quickly searching.
Hi, I ran auto ./autogen.sh to compile nemo-preview on debian buster, is this supposed to work? It stopped with an error message. Here is the log:
/usr/bin/gnome-autogen.sh Warning PKG_NAME is deprecated, you may remove it from autogen.sh checking for automake >= 1.9... testing automake... found 1.16.1 checking for autoreconf >= 2.53... testing autoreconf... found 2.69 checking for intltool >= 0.40.0... testing intltoolize... found 0.51.0 checking for pkg-config >= 0.22... testing pkg-config... found 0.29 Checking for required M4 macros... Warning: I am going to run
configure' with no arguments. If you wish to pass any to it, please specify them on the
./autogen.sh' command line.Processing ./configure.ac Running intltoolize... Running autoreconf... autoreconf: Entering directory
.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force --warnings=no-portability -I m4 ${ACLOCAL_FLAGS} autoreconf: configure.ac: tracing autoreconf: configure.ac: creating directory config autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'. libtoolize: copying file 'config/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability autoreconf: running: /usr/bin/autoheader --force --warnings=no-portability autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-portability configure.ac:29: installing 'config/compile' configure.ac:12: installing 'config/config.guess' configure.ac:12: installing 'config/config.sub' configure.ac:15: installing 'config/install-sh' configure.ac:15: installing 'config/missing' src/Makefile-nemo-preview.am:27: warning: source file 'libnemo-preview/nemo-preview-cover-art.c' is in a subdirectory, src/Makefile-nemo-preview.am:27: but option 'subdir-objects' is disabled src/Makefile.am:36: 'src/Makefile-nemo-preview.am' included from here automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. src/Makefile-nemo-preview.am:27: warning: source file 'libnemo-preview/nemo-preview-pdf-loader.c' is in a subdirectory, src/Makefile-nemo-preview.am:27: but option 'subdir-objects' is disabled src/Makefile.am:36: 'src/Makefile-nemo-preview.am' included from here src/Makefile-nemo-preview.am:27: warning: source file 'libnemo-preview/nemo-preview-sound-player.c' is in a subdirectory, src/Makefile-nemo-preview.am:27: but option 'subdir-objects' is disabled src/Makefile.am:36: 'src/Makefile-nemo-preview.am' included from here src/Makefile-nemo-preview.am:27: warning: source file 'libnemo-preview/nemo-preview-file-loader.c' is in a subdirectory, src/Makefile-nemo-preview.am:27: but option 'subdir-objects' is disabled src/Makefile.am:36: 'src/Makefile-nemo-preview.am' included from here src/Makefile-nemo-preview.am:27: warning: source file 'libnemo-preview/nemo-preview-font-loader.c' is in a subdirectory, src/Makefile-nemo-preview.am:27: but option 'subdir-objects' is disabled src/Makefile.am:36: 'src/Makefile-nemo-preview.am' included from here src/Makefile-nemo-preview.am:27: warning: source file 'libnemo-preview/nemo-preview-font-widget.c' is in a subdirectory, src/Makefile-nemo-preview.am:27: but option 'subdir-objects' is disabled src/Makefile.am:36: 'src/Makefile-nemo-preview.am' included from here src/Makefile-nemo-preview.am:27: warning: source file 'libnemo-preview/nemo-preview-text-loader.c' is in a subdirectory, src/Makefile-nemo-preview.am:27: but option 'subdir-objects' is disabled src/Makefile.am:36: 'src/Makefile-nemo-preview.am' included from here src/Makefile-nemo-preview.am:27: warning: source file 'libnemo-preview/nemo-preview-utils.c' is in a subdirectory, src/Makefile-nemo-preview.am:27: but option 'subdir-objects' is disabled src/Makefile.am:36: 'src/Makefile-nemo-preview.am' included from here src/Makefile.am: installing 'config/depcomp' autoreconf: Leaving directory
.' Running ./configure --enable-maintainer-mode ... checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether UID '1000' is supported by ustar format... yes checking whether GID '1000' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether to enable maintainer-specific portions of Makefiles... yes checking whether NLS is requested... yes checking for intltool >= 0.40.0... 0.51.0 found checking for intltool-update... /usr/bin/intltool-update checking for intltool-merge... /usr/bin/intltool-merge checking for intltool-extract... /usr/bin/intltool-extract checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for perl >= 5.8.1... 5.28.1 checking for XML::Parser... ok checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.22... yes ./configure: line 3877: syntax error near unexpected token0.9.2' ./configure: line 3877:
GOBJECT_INTROSPECTION_REQUIRE(0.9.2)'