google-code-export / ffmpegthumbnailer

Automatically exported from code.google.com/p/ffmpegthumbnailer
GNU General Public License v2.0
1 stars 1 forks source link

Error while make ffmpegthumbnailer-1.4.0 #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi.

I checked out latest (10 feb 2009) ffmpeg source code.

I have problem with building ffmpegthumbnailer-1.4.0.

# make
Making all in src
make[1]: Entering directory `/root/ffmpegthumbnailer-1.4.0/src'
Making all in libffmpegthumbnailer
make[2]: Entering directory 
`/root/ffmpegthumbnailer-1.4.0/src/libffmpegthumbnailer'
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -
DPACKAGE_NAME=\"ffmpegthumbnailer\" -DPACKAGE_TARNAME=\"ffmpegthumbnailer\" -
DPACKAGE_VERSION=\"1.4.0\" -DPACKAGE_STRING=\"ffmpegthumbnailer\ 1.4.0\" -
DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ffmpegthumbnailer\" -DVERSION=\"1.4.0\" -
DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -
DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -
D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_JPEGLIB_H=1 -DHAVE_LIBAVCODEC_AVCODEC_H=1 -
DHAVE_LIBAVFORMAT_AVFORMAT_H=1 -DHAVE_LIBAVUTIL_AVUTIL_H=1 -
DHAVE_LIBSWSCALE_SWSCALE_H=1 -I.     -g -O2 -MT moviedecoder.lo -MD -MP -MF 
.deps/moviedecoder.Tpo -c -o moviedecoder.lo moviedecoder.cpp
libtool: compile:  g++ -DPACKAGE_NAME=\"ffmpegthumbnailer\" -
DPACKAGE_TARNAME=\"ffmpegthumbnailer\" -DPACKAGE_VERSION=\"1.4.0\" "-
DPACKAGE_STRING=\"ffmpegthumbnailer 1.4.0\"" -DPACKAGE_BUGREPORT=\"\" -
DPACKAGE=\"ffmpegthumbnailer\" -DVERSION=\"1.4.0\" -DSTDC_HEADERS=1 -
DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -D_FILE_OFFSET_BITS=64 
-
DSTDC_HEADERS=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_JPEGLIB_H=1 -
DHAVE_LIBAVCODEC_AVCODEC_H=1 -DHAVE_LIBAVFORMAT_AVFORMAT_H=1 -
DHAVE_LIBAVUTIL_AVUTIL_H=1 -DHAVE_LIBSWSCALE_SWSCALE_H=1 -I. -g -O2 -MT 
moviedecoder.lo -MD -MP -MF .deps/moviedecoder.Tpo -c moviedecoder.cpp  -fPIC 
-DPIC -o 
.libs/moviedecoder.o
moviedecoder.cpp: In member function ‘void 
MovieDecoder::convertAndScaleFrame(int, int, bool, 
int&, int&)’:
moviedecoder.cpp:308: error: invalid conversion from ‘int’ to 
‘PixelFormat’
moviedecoder.cpp:308: error:   initializing argument 6 of ‘SwsContext* 
sws_getContext(int, int, 
PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, double*)’
make[2]: *** [moviedecoder.lo] Error 1
make[2]: Leaving directory 
`/root/ffmpegthumbnailer-1.4.0/src/libffmpegthumbnailer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ffmpegthumbnailer-1.4.0/src'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by alpha...@gmail.com on 10 Feb 2009 at 9:51

GoogleCodeExporter commented 9 years ago
Seems like an interface change in ffmpeg, I'll look into it

Original comment by dirk.vdb on 11 Feb 2009 at 7:39

GoogleCodeExporter commented 9 years ago
The trunk should build again

Original comment by dirk.vdb on 12 Feb 2009 at 10:59

GoogleCodeExporter commented 9 years ago
I had the same issue with ffmpegthumbnailer and Ubuntu 8.10 server. Installed 
the
latest ffmpeg code before, compiled it without any problems.
Is the fix in the ffmpegthumbnailer 1.4.0 tar archive? I checked out the trunk, 
but
couldn't compile it, configure file etc. missing. How do I compile the latest 
trunk?

Thanks for your help.

Chris

Original comment by christia...@gmail.com on 13 Feb 2009 at 10:29

GoogleCodeExporter commented 9 years ago
The fix is only in the trunk.

Before running configure you have to run ./autogen.sh

Build from trunk:
./autogen.sh
./configure
make

Dirk

Original comment by dirk.vdb on 13 Feb 2009 at 10:33