#190 Can't compile with ffmpegthumbnailer-2.0.6

open
nobody
None
5
2011-01-13
2011-01-13
Anonymous
No

Slackware 13.1 (current 32bit & 64bit)
Fuppes-0.660
I'm getting an error with libffmpegthumbnailer-2.0.6
videothumbnailer.h: no such file.
When I add
FFMPEGTHUMBNAILER_CFLAGS="-I/usr/include/libffmpegthumbnailer"
It fails with
thumbnailer_la-metadata_ffmpegthumbnailer.Tpo -c -o libmetadata_ffmpegthumbnailer_la-metadata_ffmpegthumbnailer.lo `test -f 'metadata_ffmpegthumbnailer.cpp' || echo './'`metadata_ffmpegthumbnailer.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src -I/usr/include/libffmpegthumbnailer -g -O2 -MT libmetadata_ffmpegthumbnailer_la-metadata_ffmpegthumbnailer.lo -MD -MP -MF .deps/libmetadata_ffmpegthumbnailer_la-metadata_ffmpegthumbnailer.Tpo -c metadata_ffmpegthumbnailer.cpp -fPIC -DPIC -o .libs/libmetadata_ffmpegthumbnailer_la-metadata_ffmpegthumbnailer.o
metadata_ffmpegthumbnailer.cpp: In function ‘int read_image(const char*, char**, unsigned char**, size_t*)’:
metadata_ffmpegthumbnailer.cpp:43:3: error: ‘VideoThumbnailer’ was not declared in this scope
metadata_ffmpegthumbnailer.cpp:43:20: error: expected ‘;’ before ‘thumbnailer’
metadata_ffmpegthumbnailer.cpp:45:3: error: ‘thumbnailer’ was not declared in this scope
make[1]: *** [libmetadata_ffmpegthumbnailer_la-metadata_ffmpegthumbnailer.lo] Error 1
make[1]: Leaving directory `/tmp/fuppes-0.660/src/plugins'
make: *** [all-recursive] Error 1

Any help?

Discussion


  • Anonymous
    2012-02-10

    I've had the same problem. Here is a quick and probably dirty workaround:

    Add "using namespace ffmpegthumbnailer;" to src/plugins/metadata_ffmpegthumbnailer.cpp at the appropriate position.

    It seems to compile ok after this.