configure して make でエラー
INSTALL を読むと普通に ./configure して make で良いみたいなのでそのままやってみた。
paraches@debian:~/myTest/ffmpeg/ffmpegthumbnailer/ffmpegthumbnailer-2.0.2$ ./configure <長いので省略> CONFIGURATION SUMMARY ---- png support : enabled jpeg support : enabled unittests : disabled debug mode : disabled paraches@debian:~/myTest/ffmpeg/ffmpegthumbnailer/ffmpegthumbnailer-2.0.2$ make <長いので省略> /bin/sh ./libtool --tag=CXX --mode=link g++ -I/usr/local/include -I/usr/include/libpng12 -D__STDC_CONSTANT_MACROS -version-info 4:2:0 -o libffmpegthumbnailer.la -rpath /usr/local/lib libffmpegthumbnailer_la-moviedecoder.lo libffmpegthumbnailer_la-stringoperations.lo libffmpegthumbnailer_la-videothumbnailer.lo libffmpegthumbnailer_la-videothumbnailerc.lo libffmpegthumbnailer_la-filmstripfilter.lo libffmpegthumbnailer_la-pngwriter.lo libffmpegthumbnailer_la-jpegwriter.lo -pthread -L/usr/local/lib -lavformat -lavcodec -lz -lfaac -lfaad -lgsm -lmp3lame -ltheoraenc -ltheoradec -lvorbisenc -lvorbis -logg -lx264 -lm -lxvidcore -lasound -ldl -lswscale -lavutil -lpng12 -ljpeg libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.3.2/crtbeginS.o .libs/libffmpegthumbnailer_la-moviedecoder.o .libs/libffmpegthumbnailer_la-stringoperations.o .libs/libffmpegthumbnailer_la-videothumbnailer.o .libs/libffmpegthumbnailer_la-videothumbnailerc.o .libs/libffmpegthumbnailer_la-filmstripfilter.o .libs/libffmpegthumbnailer_la-pngwriter.o .libs/libffmpegthumbnailer_la-jpegwriter.o -L/usr/local/lib -lavformat -lavcodec -lz /usr/lib/libfaac.so /usr/lib/libfaad.so -lgsm /usr/lib/libmp3lame.so /usr/local/lib/libtheoraenc.so -L/usr/lib /usr/local/lib/libtheoradec.so /usr/lib/libvorbisenc.so /usr/lib/libvorbis.so /usr/lib/libogg.so -lx264 -lxvidcore /usr/lib/libasound.so -lpthread -lrt -ldl -lswscale -lavutil -lpng12 /usr/lib/libjpeg.so -L/usr/lib/gcc/x86_64-linux-gnu/4.3.2 -L/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.3.2/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/crtn.o -pthread -pthread -Wl,-soname -Wl,libffmpegthumbnailer.so.4 -o .libs/libffmpegthumbnailer.so.4.0.2 /usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `aac_demuxer' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libavformat.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libffmpegthumbnailer.la] エラー 1 make[2]: ディレクトリ `/home/paraches/myTest/ffmpeg/ffmpegthumbnailer/ffmpegthumbnailer-2.0.2' から出ます make[1]: *** [all-recursive] エラー 1 make[1]: ディレクトリ `/home/paraches/myTest/ffmpeg/ffmpegthumbnailer/ffmpegthumbnailer-2.0.2' から出ます make: *** [all] エラー 2 paraches@debian:~/myTest/ffmpeg/ffmpegthumbnailer/ffmpegthumbnailer-2.0.2$
configure は通るのだけど、make でエラー。
/usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `aac_demuxer' can not be used when making a shared object; recompile with -fPIC
- fPIC でコンパイルし直せってこと? それって libavformat.a をコンパイルし直せっていうこと? それとも今回のビルドを -fPIC 付けてやり直せってこと?
ここでどうにも行き詰まり…