Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-07-12 15:16:33

birch
Member
Registered: 2014-07-12
Posts: 63

Thunar WebP thumbnails

WebP image thumbnails don't show up in Thunar. They appear as RIFF audio. When I click on them I can see them as images in my image viewer. But I'd like to see the thumbnails as well. I've read elsewhere that I may have to play around with mimetypes, or contact the Thunar developers. I'm hoping there's an easier solution.

Offline

#2 2014-07-12 16:24:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

Unfortunately, it doesn't look like tumbler (the Xfce thumbnailing service) supports webp. You'll probably need to create an enhancement request (https://bugzilla.xfce.org/buglist.cgi?c … lution=---) or contact the developers on the xfce4-dev mailing list.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2014-07-29 22:53:58

birch
Member
Registered: 2014-07-12
Posts: 63

Re: Thunar WebP thumbnails

Okay, thanks!

Offline

#4 2016-04-06 23:24:49

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

Took a while, but patch created.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2016-07-10 21:09:34

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

Hi birch was my former account.

How are patches installed? Is there a tutorial? I tried this command, but no luck:

patch -i attachment.cgi.txt

Did it not work because I need to install gdk and libwebp first?

Also is there an easy way to install gdk-pixbuf2 2.2.2? I have libwebp 4.0.4 already installed.

I download gdk here: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.22/

But when doing:

./configure
make
sudo make install

I get errors during the make and sudo make install parts:

/usr/include/libpng16/pngconf.h:309:70: note: in definition of macro 'PNG_FUNCTION'
#  define PNG_FUNCTION(type, name, args, attributes) attributes type name args
                                                                      ^
/usr/include/libpng16/pngconf.h:333:4: note: in expansion of macro 'PNG_EXPORTA'
    PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
    ^
/usr/include/libpng16/png.h:2250:1: note: in expansion of macro 'PNG_EXPORT'
PNG_EXPORT(159, void, png_set_iCCP, (png_const_structrp png_ptr,
^
make[4]: *** [io-png.lo] Error 1
make[4]: Leaving directory `/home/jurp/Downloads/gdk-pixbuf-2.22.0/gdk-pixbuf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jurp/Downloads/gdk-pixbuf-2.22.0/gdk-pixbuf'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jurp/Downloads/gdk-pixbuf-2.22.0/gdk-pixbuf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jurp/Downloads/gdk-pixbuf-2.22.0'
make: *** [all] Error 2

Offline

#6 2016-07-10 21:24:08

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

I just noticed that you created the patch. Thanks! It would be awesome if you could create a patch for Bellard's BPG: http://bellard.org/bpg/. That format is even more impressive than webp.

Offline

#7 2016-07-11 00:27:26

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

yurbev wrote:

Hi birch was my former account.

How are patches installed? Is there a tutorial? I tried this command, but no luck:

patch -i attachment.cgi.txt

You need to download the tumbler source:

git clone git://git.xfce.org/xfce/tumbler

...patch it (right-click the patch in the bug report and click save) from the root of the tumbler source tree via:

patch -p 1 < tumbler_webp-thumbnailer.patch

...and then build tumbler via:

./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 --libdir=/usr/lib/xfce4 --localstatedir=/var --disable-gstreamer-thumbnailer --disable-static --disable-debug 

...Note: some of these parameters may be different depending on the distro that you are using - especially "libexecdir". And finally:

make
sudo make install

Did it not work because I need to install gdk and libwebp first?

Also is there an easy way to install gdk-pixbuf2 2.2.2? I have libwebp 4.0.4 already installed.

I download gdk here: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.22/

But when doing:

./configure
make
sudo make install

I get errors during the make and sudo make install parts:

/usr/include/libpng16/pngconf.h:309:70: note: in definition of macro 'PNG_FUNCTION'
#  define PNG_FUNCTION(type, name, args, attributes) attributes type name args
                                                                      ^
/usr/include/libpng16/pngconf.h:333:4: note: in expansion of macro 'PNG_EXPORTA'
    PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
    ^
/usr/include/libpng16/png.h:2250:1: note: in expansion of macro 'PNG_EXPORT'
PNG_EXPORT(159, void, png_set_iCCP, (png_const_structrp png_ptr,
^
make[4]: *** [io-png.lo] Error 1
make[4]: Leaving directory `/home/jurp/Downloads/gdk-pixbuf-2.22.0/gdk-pixbuf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jurp/Downloads/gdk-pixbuf-2.22.0/gdk-pixbuf'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jurp/Downloads/gdk-pixbuf-2.22.0/gdk-pixbuf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jurp/Downloads/gdk-pixbuf-2.22.0'
make: *** [all] Error 2

You need to have certain dependencies installed. In Arch, they are gdk-pixbuf2, ffmpegthumbnailer, freetype2, gstreamer0.10, libgsf, libopenraw, poppler-glib, libwebp. If you are using another distro, look for the same packages but "-dev" appended to them.

There is no need for you to have to build gdk-pixbuf - it should already be in your repositories. Again, look for the "-dev" version of the package if gdk-pixbuf is already installed.

A good idea would be to look at the build script that your distro already uses and modify it.

Plus, if this is the first time building in Xfce, you'll also need xfce4-dev-tools.

Which distro are you using?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#8 2016-07-11 00:29:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

yurbev wrote:

I just noticed that you created the patch. Thanks! It would be awesome if you could create a patch for Bellard's BPG: http://bellard.org/bpg/. That format is even more impressive than webp.

Someone already seems to have created one. Perhaps you could ask them to submit it as a patch against tumbler via bugzilla to get it added to the source tree?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2016-07-11 01:32:05

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

Tx, I'm using Linux Mint 17. I have the following dependencies installed:

libgsf-1-dev
libffmpegthumbnailer-dev
libpoppler-glib-dev
libwebp-dev
libopenraw-dev
libgsf-1-dev
libgstreamer0.10-dev
libgdk-pixbuf2.0-dev
libfreetype6-dev

I had to install a few of them from software manager. I already had gdk-pixbuf installed. On my first try i had to install gtk-doc.

I tried again and got this error:

./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 --localstatedir=/var --disable-gstreamer-thumbnailer --disable-static --disable-debug
/usr/local/bin/xdt-autogen
Building using the Xfce development environment
Preparing package directory /home/jurp/tumbler...
Creating /home/jurp/tumbler/aclocal.m4...
Running glib-gettextize --force --copy...
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Patching file 'po/Makefile.in.in'
Running gtkdocize --copy...
Running aclocal   -I /usr/local/share/xfce4/dev-tools/m4macros -I /usr/local/share//xfce4/dev-tools/m4macros -I /usr/share//xfce4/dev-tools/m4macros -I /usr/share/xfce4/dev-tools/m4macros -I /home/jurp/tumbler/m4macros -I /home/jurp/tumbler/m4...
Running automake --force-missing --add-missing --copy --gnu...
configure.ac:72: installing './compile'
configure.ac:37: installing './config.guess'
configure.ac:37: installing './config.sub'
configure.ac:42: installing './install-sh'
configure.ac:104: error: required file './ltmain.sh' not found
configure.ac:42: installing './missing'
Makefile.am: installing './INSTALL'
configure.ac:45: error: required file 'config.h.in' not found
plugins/cover-thumbnailer/Makefile.am: installing './depcomp'
tumblerd/Makefile.am:93: warning: '%'-style pattern rules are a GNU make extension

Last edited by yurbev (2016-07-11 01:43:57)

Offline

#10 2016-07-11 01:41:43

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

ToZ wrote:
yurbev wrote:

I just noticed that you created the patch. Thanks! It would be awesome if you could create a patch for Bellard's BPG: http://bellard.org/bpg/. That format is even more impressive than webp.

Someone already seems to have created one. Perhaps you could ask them to submit it as a patch against tumbler via bugzilla to get it added to the source tree?

I just checked and "asimba" Alexei Simbarsky doesn't seem to have contact profile, though his email is here: https://github.com/asimba/pybpgviewer/b … mbnailer.c

At the top is his email address and that of two other contributors. So I would email them and ask?

Offline

#11 2016-07-11 02:43:46

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

I tried again and got this error:

Make sure you have build-essential installed. You might want to give this a read. I haven't had much luck compiling things on Ubuntu using the deb way, so you might get better assistance asking on one of the ubuntu-based forums.

At the top is his email address and that of two other contributors. So I would email them and ask?

The other two email addresses are those of Xfce developers. The file was probably just copied from an existing file. Use the 3rd email specified - which I think is his/hers.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#12 2016-07-11 03:16:24

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

Just finished testing this on Xubuntu 16.04, and here is what worked for me:

First remove the existing tumbler install:

sudo apt-get remove tumbler-common tumbler

Make sure you have the essentials installed:

sudo apt-get install build-essential git gtk-doc-tools xfce4-dev-tools webp libgsf-1-dev libffmpegthumbnailer-dev libpoppler-glib-dev libwebp-dev libopenraw-dev libgsf-1-dev libgstreamer0.10-dev libgdk-pixbuf2.0-dev libfreetype6-dev

Get the current git source:

git clone git://git.xfce.org/xfce/tumbler

Download the patch and put it in the tumbler root:

wget https://bugzilla.xfce.org/attachment.cgi?id=6641 -O tumbler/webp.patch

Apply the patch:

cd tumbler
patch -p1 < webp.patch

Autogen:

./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 --libdir=/usr/lib/xfce4 --localstatedir=/var --disable-gstreamer-thumbnailer --disable-static --disable-debug 

Make and install:

make && sudo make install

Log out and back in again and test.

Again, this isn't the "official" ubuntu way of compiling packages, but this method works for me.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#13 2016-07-11 09:28:56

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

Build-essential is installed. I got the same errors this time around.

I'll ask for a solution on Ubuntu forums and email the guy about BPG. Thanks for your help!

Offline

#14 2016-07-11 11:36:23

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

configure.ac:104: error: required file './ltmain.sh' not found

Make sure libtool is installed.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#15 2016-07-11 13:04:20

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

libtool is installed. I searched for the error message: `configure.ac:45: error: required file 'config.h.in' not found`

And found this: https://github.com/stevedh/readingdb/issues/1

The suggestion is to run `autoreconf --install`

So ran that in the Tumblr folder and got this output:

autoreconf --install
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `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'
tumblerd/Makefile.am:93: warning: '%'-style pattern rules are a GNU make extension

Then I ran the autogen.sh command again in Tumblr folder and got further in the process before getting an error about a dbus path:

./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 --libdir=/usr/lib/xfce4 --localstatedir=/var --disable-gstreamer-thumbnailer --disable-static --disable-debug 
/usr/local/bin/xdt-autogen
Building using the Xfce development environment
Preparing package directory /home/jurp/tumbler...
Running glib-gettextize --force --copy...
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Patching file 'po/Makefile.in.in'
Running gtkdocize --copy...
Running aclocal   -I /usr/local/share/xfce4/dev-tools/m4macros -I /usr/local/share//xfce4/dev-tools/m4macros -I /usr/share//xfce4/dev-tools/m4macros -I /usr/share/xfce4/dev-tools/m4macros -I /home/jurp/tumbler/m4macros -I /home/jurp/tumbler/m4...
Running automake --force-missing --add-missing --copy --gnu...
tumblerd/Makefile.am:93: warning: '%'-style pattern rules are a GNU make extension
Running autoconf...

Running /home/jurp/tumbler/configure --enable-maintainer-mode --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 --libdir=/usr/lib/xfce4 --localstatedir=/var --disable-gstreamer-thumbnailer --disable-static --disable-debug...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... 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 make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking if building for some Win32 platform... no
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.50.2 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.18.2
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking linux/sched.h usability... yes
checking linux/sched.h presence... yes
checking for linux/sched.h... yes
checking for memory.h... (cached) yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking syscall.h usability... yes
checking syscall.h presence... yes
checking for syscall.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for sched_getparam... yes
checking for sched_setscheduler... yes
checking for getpwnam... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed...  ar ast bg bn ca cs da de el en_AU en_GB es eu fi fr gl he hr hu id is it ja kk ko lt lv ms nb nl nn oc pa pl pt pt_BR ro ru si sk sr sv te th tr ug uk zh_CN zh_HK zh_TW
checking for bind_textdomain_codeset... (cached) yes
checking for locales directory... ${datarootdir}/locale
checking for additional xgettext flags... --keyword=Q_ --from-code=UTF-8
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking for dbus-binding-tool... no
configure: error: could not find dbus-binding-tool in $PATH. You can run
  ./configure DBUS_BINDING_TOOL=/path/to/dbus-binding-tool to define
  a custom location for it.

Offline

#16 2016-07-11 16:49:36

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

configure: error: could not find dbus-binding-tool in $PATH. You can run
  ./configure DBUS_BINDING_TOOL=/path/to/dbus-binding-tool to define
  a custom location for it.

Looks like in Mint, you also need to install libdbus-glib-1-dev.

I installed Mint 17.3 Rosa into a VM and gave this a go. There is good news and bad news.

Good news - here are the steps to compile tumbler:
First remove the existing tumbler install:

sudo apt-get remove tumbler-common tumbler

Make sure you have the essentials installed (now includes an additional 4 packages):

sudo apt-get install build-essential git gtk-doc-tools xfce4-dev-tools webp libgsf-1-dev libffmpegthumbnailer-dev libpoppler-glib-dev libwebp-dev libopenraw-dev libgsf-1-dev libgstreamer0.10-dev libgdk-pixbuf2.0-dev libfreetype6-dev libopenrawgnome-dev libjpeg-dev libcurl4-gnutls-dev libdbus-glib-1-dev

Get the current git source:

git clone git://git.xfce.org/xfce/tumbler

Download the patch and put it in the tumbler root:

wget https://bugzilla.xfce.org/attachment.cgi?id=6641 -O tumbler/webp.patch

Apply the patch:

cd tumbler
patch -p1 < webp.patch

Autogen (for 64-bit installs):

./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 --libdir=/usr/lib/x86_64-linux-gnu --localstatedir=/var --disable-gstreamer-thumbnailer --disable-static --disable-debug 

Make and install:

make && sudo make install

Bad News
This thumbnailer needs libwebp version 0.4.3 to work, but Mint Rosa (based on Ubuntu Trusty) only has 0.4.0. So, it doesn't work. You'd need to somehow update the version of libwebp to 0.4.3 to take advantage of the thumbnailer. I had a look for a PPA but couldn't find one.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#17 2016-07-12 00:18:45

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: Thunar WebP thumbnails

ToZ wrote:

Bad News
This thumbnailer needs libwebp version 0.4.3 to work, but Mint Rosa (based on Ubuntu Trusty) only has 0.4.0. So, it doesn't work. You'd need to somehow update the version of libwebp to 0.4.3 to take advantage of the thumbnailer. I had a look for a PPA but couldn't find one.

If he isn't in a great hurry, Mint 18 Xfce will be out soon. It and the KDE flavor usually seem to run about a month behind the MATE and Cinnamon flavors of Mint releases (Clem does the two that seem to be used by the majority of Mint users first), and the first two were approved for stable release a week or so ago. Mint 18 is based on Ubuntu 16.04, I think.

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#18 2016-07-12 19:24:46

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

I ended up installing Xubuntu 16.04 and followed your Xubuntu 16.04 directions. It worked on the second attempt. The first attempt gave me the same error as above:

configure: error: could not find dbus-binding-tool in $PATH. You can run
  ./configure DBUS_BINDING_TOOL=/path/to/dbus-binding-tool to define
  a custom location for it.

But I installed libdbus-glib-1-dev and tried again and it worked. I can now see webp thumbnails.

During installation I saw that I'm missing certain plugins. Do I need them for anything?

g7uJO1F.png

Last edited by yurbev (2016-07-12 19:28:03)

Offline

#19 2016-07-12 19:26:15

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

MountainDewManiac wrote:
ToZ wrote:

Bad News
This thumbnailer needs libwebp version 0.4.3 to work, but Mint Rosa (based on Ubuntu Trusty) only has 0.4.0. So, it doesn't work. You'd need to somehow update the version of libwebp to 0.4.3 to take advantage of the thumbnailer. I had a look for a PPA but couldn't find one.

If he isn't in a great hurry, Mint 18 Xfce will be out soon. It and the KDE flavor usually seem to run about a month behind the MATE and Cinnamon flavors of Mint releases (Clem does the two that seem to be used by the majority of Mint users first), and the first two were approved for stable release a week or so ago. Mint 18 is based on Ubuntu 16.04, I think.

Regards,
MDM

If I don't like Xubuntu and this will work on Mint 18 then I may go back to Mint. Since Xubuntu uses XFCE and Thunar I'm liking it so far and may keep using it.

Offline

#20 2016-07-12 19:34:27

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

During installation I saw that I'm missing certain plugins. Do I need them for anything?

Yes. Install these packages: libopenrawgnome-dev libjpeg-dev libcurl4-gnutls-dev
...and go back and redo the autogen, make, sudo make install steps. The only one that you really don't need is the "video thumbnailer plugin using gstreamer". The ffmpeg thumbnailer will provide video thumbnails, plus the thumbnails are overlayed with a film reel border - looks nicer than the gstreamer one.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#21 2016-07-12 19:36:22

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

One thing to keep in mind is that this method is not the "official" ubuntu method. If you ever install the tumbler package from the repositories, it will overwrite these install files and may create tumbler file exists installation errors. The proper way is to create a .deb package file and install it - but I'm not sure exactly how this is done.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#22 2016-07-12 20:06:29

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

ToZ wrote:

During installation I saw that I'm missing certain plugins. Do I need them for anything?

Yes. Install these packages: libopenrawgnome-dev libjpeg-dev libcurl4-gnutls-dev
...and go back and redo the autogen, make, sudo make install steps. The only one that you really don't need is the "video thumbnailer plugin using gstreamer". The ffmpeg thumbnailer will provide video thumbnails, plus the thumbnails are overlayed with a film reel border - looks nicer than the gstreamer one.

Tx! I just did this and everything is working well. I'll keep in mind the warning about not installing tumbler from the repositories.

What do you think about what MountainDewManiac said? Will this work in the upcoming Mint 18 xfce release?

Offline

#23 2016-07-12 20:17:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

yurbev wrote:

What do you think about what MountainDewManiac said? Will this work in the upcoming Mint 18 xfce release?

Since Mint 18 will be based on Xubuntu 16.04 and Xubuntu 16.04 has the minimum requirement for the libwebp library, then yes it will.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#24 2016-07-15 01:01:23

yurbev
Member
Registered: 2016-04-18
Posts: 54

Re: Thunar WebP thumbnails

I'd like to try out Manjaro, as it's said to be a more stable, newbie-friendly version of Arch. Could I use this patch on Manjaro with XFCE? Does it have the requirements for libwebp library?

Offline

#25 2016-07-15 11:00:16

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Thunar WebP thumbnails

Yes, both Arch and Manjaro do. However, if using Arch or an Arch derivative, consider using the ABS to create the patched version of the package so that pacman can manage it.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB