google-code-export / ffmpegthumbnailer

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

compile error with 1.2.5 version #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to compile ffmpegthumbnailer
2. Confirmed on Crux (gcc 4.2.3) and Arch (gcc 4.3)

This is the output:

./configure --prefix=/usr
make

[snip]

g++ -march=native -O2 -pipe -msse3 -o .libs/ffmpegthumbnailer main.o  -lm
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so -lavformat -lavcodec -lz
-la52 -lfaac -lfaad -lmp3lame -lx264 -lxvidcore -ldl -lX11 -lXext -ltheora
-lvorbisenc -lvorbis -logg -lswscale -lavutil -lpng12 -ljpeg
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_stdio_dest(jpeg_compress_struct*, _IO_FILE*)'
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_set_defaults(jpeg_compress_struct*)'
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_CreateCompress(jpeg_compress_struct*, int, unsigned long)'
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_finish_compress(jpeg_compress_struct*)'
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_set_quality(jpeg_compress_struct*, int, int)'
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_destroy_compress(jpeg_compress_struct*)'
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_start_compress(jpeg_compress_struct*, int)'
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_write_scanlines(jpeg_compress_struct*, unsigned char**, unsigned int)'
libffmpegthumbnailer/.libs/libffmpegthumbnailer.so: undefined reference to
`jpeg_std_error(jpeg_error_mgr*)'
collect2: ld returned 1 exit status
make[2]: *** [ffmpegthumbnailer] Error 1
make[2]: Leaving directory
`/var/abs/local/ffmpegthumbnailer/src/ffmpegthumbnailer-1.2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/abs/local/ffmpegthumbnailer/src/ffmpegthumbnailer-1.2.5/src'
make: *** [all-recursive] Error 1

The issue doesn't seem to be affected by compiler flags.  Please let me
know if you need any more info about this -- I'm not a programmer so I
don't know what might be relevant...

Original issue reported on code.google.com by fwojc...@gmail.com on 28 Apr 2008 at 12:21

GoogleCodeExporter commented 9 years ago
Try rebuilding your jpeg library and then try to build again. Also do a make 
clean to
be sure.

Original comment by dirk.vdb on 28 Apr 2008 at 7:01

GoogleCodeExporter commented 9 years ago
Thanks for the suggestion.  I did try rebuilding libjpeg (6b version) but I get 
the
same error when building ffmpegthumbnailer (make clean and then make, it makes 
no
difference though...)  Could this have something to do with the version ffmpeg 
I have
installed or how it is configured?

Original comment by fwojc...@gmail.com on 28 Apr 2008 at 1:36

GoogleCodeExporter commented 9 years ago
I don't think so, It fails to link link against the jpeg library. Does 1.2.4 
build?

Original comment by dirk.vdb on 28 Apr 2008 at 2:12

GoogleCodeExporter commented 9 years ago
I tried 1.2.2 through 1.2.5 and they all fail with the same error.  The last 
version
I am able to build is 1.1.5.

Original comment by fwojc...@gmail.com on 28 Apr 2008 at 2:41

GoogleCodeExporter commented 9 years ago
That's because 1.1.5 doesn't support jpeg yet. I think there is something wrong 
with
the configuration of your system. Somehow it cannot find the functions in your 
jpeg
library.

Original comment by dirk.vdb on 28 Apr 2008 at 4:48

GoogleCodeExporter commented 9 years ago
patch attached for above issue

Original comment by pre...@gmail.com on 29 Apr 2008 at 8:59

Attachments:

GoogleCodeExporter commented 9 years ago
It should indeed be inside extern "C", weird that I can't reproduce it on my 
system.
I'll apply the patch.

Original comment by dirk.vdb on 29 Apr 2008 at 9:14

GoogleCodeExporter commented 9 years ago
Patch works for me -- thanks for your help, both of you!

Original comment by fwojc...@gmail.com on 29 Apr 2008 at 1:50

GoogleCodeExporter commented 9 years ago
Patch has been applied and will be included in the next release. Thanks pressh

Original comment by dirk.vdb on 1 May 2008 at 4:49