google-code-export / ffmpegthumbnailer

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

ffmpegthumbnailer refuses to compile.. ffmpeg error ? #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Pulled the latest source from SVN (currently rev 140)
2. used ./autogen.sh , then ./configure with no problems listed
3. make then fails to compile

What is the expected output? What do you see instead?

My error output looks in part like :
./.libs/libffmpegthumbnailer.so: undefined reference to `lame_set_VBR_q'
./.libs/libffmpegthumbnailer.so: undefined reference to `lame_init'
./.libs/libffmpegthumbnailer.so: undefined reference to `theora_encode_init'
./.libs/libffmpegthumbnailer.so: undefined reference to `NeAACDecInit2'
./.libs/libffmpegthumbnailer.so: undefined reference to `pthread_join'

A full output is attached

What version of the product are you using? On what operating system?

Revision 140 on Ubuntu 8.10  Kernel: 2.6.27-11-server
Using ffmpeg version 18074

Please provide any additional information below.

My ffmpeg is configured with --enable-gpl --enable-postproc
--enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame
--enable-libtheora --enable-libx264 --enable-libxvid

Is this just a problem with ffmpegthumbnailer not finding ffmpeg libs ? 
ffmpeg is found and used by many other programs also installed and
compiled, using default dirs.

Original issue reported on code.google.com by erc...@gmail.com on 30 Mar 2009 at 2:23

Attachments:

GoogleCodeExporter commented 9 years ago
configure sees everything for ffmpeg :

checking for FFMPEG... yes
checking ffmpeg/avcodec.h usability... yes
checking ffmpeg/avcodec.h presence... yes
checking for ffmpeg/avcodec.h... yes
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking ffmpeg/avformat.h usability... yes
checking ffmpeg/avformat.h presence... yes
checking for ffmpeg/avformat.h... yes
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking ffmpeg/avutil.h usability... yes
checking ffmpeg/avutil.h presence... yes
checking for ffmpeg/avutil.h... yes
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking ffmpeg/swscale.h usability... yes
checking ffmpeg/swscale.h presence... yes
checking for ffmpeg/swscale.h... yes
checking libswscale/swscale.h usability... yes
checking libswscale/swscale.h presence... yes
checking for libswscale/swscale.h... yes

Original comment by erc...@gmail.com on 30 Mar 2009 at 2:30

GoogleCodeExporter commented 9 years ago
On further review, It could have been the fact I had another apt-get installed
version of ffmpegthumbnailer installed.  i removed and purged, and now have this
error with the latest ffmpeg (svn 18272)

libffmpegthumbnailer/moviedecoder.cpp: In member function void
MovieDecoder::createAVFrame(AVFrame**, int, int, int):
libffmpegthumbnailer/moviedecoder.cpp:371: error: invalid conversion from int to
PixelFormat
libffmpegthumbnailer/moviedecoder.cpp:371: error:   initializing argument 1 of 
int
avpicture_get_size(PixelFormat, int, int)

Original comment by erc...@gmail.com on 31 Mar 2009 at 3:49

GoogleCodeExporter commented 9 years ago
Can you confirm that this fails against release 0.5 of ffmpeg?

Original comment by dirk.vdb on 31 Mar 2009 at 3:57

GoogleCodeExporter commented 9 years ago
I purged all ffmpeg installs, I pulled and compiled ffmpeg 05 with --enable-gpl
--enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad
--enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid
--enable-libvorbis

I needed to manually make libswscale.   ffmpegthumbnailer finds ffmpeg on 
configure,
but make now fails in the exact way as my original report :

make[1]: Entering directory `/sources/ffmpegthumbnailer'
/bin/bash ./libtool --tag=CXX   --mode=link g++  -g -O2   -o ffmpegthumbnailer 
main.o
libffmpegthumbnailer.la
libtool: link: g++ -g -O2 -o .libs/ffmpegthumbnailer main.o 
./.libs/libffmpegthumbnailer.so -L/usr/local/lib -lavutil -lavformat -lavcodec
-lpng12 /usr/lib/libjpeg.so
./.libs/libffmpegthumbnailer.so: undefined reference to `theora_encode_comment'

..etc

Original comment by erc...@gmail.com on 31 Mar 2009 at 5:03

GoogleCodeExporter commented 9 years ago
this might be related to the install method.  I normally use sudo checkinstall 
after
make, but i recently just did a straight 'sudo make install' and it seems to 
compile
fine.

Going back to check the latest ffmpeg svn

Original comment by erc...@gmail.com on 31 Mar 2009 at 5:37

GoogleCodeExporter commented 9 years ago
Using ffmpeg 0.5, i can compile ffmpegthumbnailer with no trouble.  the latest 
svn
(18274) failes with :

libffmpegthumbnailer/moviedecoder.cpp: In member function âvoid
MovieDecoder::createAVFrame(AVFrame**, int, int, int):
libffmpegthumbnailer/moviedecoder.cpp:371: error: invalid conversion from int to
PixelFormat
libffmpegthumbnailer/moviedecoder.cpp:371: error:   initializing argument 1 of 
int
avpicture_get_size(PixelFormat, int, int)

Original comment by erc...@gmail.com on 31 Mar 2009 at 6:47

GoogleCodeExporter commented 9 years ago
Ok, then there has been an API change. I'll look into it. Thanks for trying it 
out!

Original comment by dirk.vdb on 31 Mar 2009 at 7:20

GoogleCodeExporter commented 9 years ago
Just throwing this in:  When I just use a straight ./configure on the latest 
svn of
ffmpeg, i get the error in line 371.

When i use my typical configure line --enable-gpl --enable-postproc 
--enable-pthreads
--enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora
--enable-libx264 --enable-libxvid --enable-libvorbis --enable-swscale

i get the errors attached in my first comment on the latest svn OR version .05

Original comment by erc...@gmail.com on 31 Mar 2009 at 8:19

GoogleCodeExporter commented 9 years ago
The version from the trunk should compile again against the latest ffmpeg.

The other errors you are getting can't be solved in ffmpegthumbnailer. I just 
set the
cflags and ldflags as they are supplied by ffmpeg through pkg-config.

Original comment by dirk.vdb on 1 Apr 2009 at 11:12

GoogleCodeExporter commented 9 years ago
I can confirm that the latest build will now compile with the latest svn of 
ffmpeg. 
but for the life of me i can't figure out why it refuses to compile if i pass 
any
options to the ffmpeg configuration

Original comment by erc...@gmail.com on 1 Apr 2009 at 6:13