[FFmpeg-devel] Compiling with Intel Compiler

Gregoire Favre gregoire.favre
Tue Aug 26 16:02:04 CEST 2008

On Mon, Aug 25, 2008 at 08:52:54PM -0700, Mike Melanson wrote:
> Axel Gallus wrote:
> > Intel's Compiler is ISO C/C++ compatible and ANSI compatible.
> > 
> > Is it possible to compile FFMPEG with Intel's C/C++ Compiler?
> Yes, and performance will be notably improved. But stick with the
> 10.1.0xx series for now; the latest series (10.2?) don't compile FFmpeg,
> or so I hear.

I didn't succeed :

icc -shared -Wl,-soname,libpostproc.so.51 -L"/var/tmp/portage/media-video/ffmpeg-20089999/work/ffmpeg"/libavutil -Wl,-O1 -rdynamic -export-dynamic -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/var/tmp/portage/media-video/ffmpeg-20089999/work/ffmpeg"/libpostproc -Wl,-rpath-link,"/var/tmp/portage/media-video/ffmpeg-20089999/work/ffmpeg"/libswscale -Wl,-rpath-link,"/var/tmp/portage/media-video/ffmpeg-20089999/work/ffmpeg"/libavfilter -Wl,-rpath-link,"/var/tmp/portage/media-video/ffmpeg-20089999/work/ffmpeg"/libavdevice -Wl,-rpath-link,"/var/tmp/portage/media-video/ffmpeg-20089999/work/ffmpeg"/libavformat -Wl,-rpath-link,"/var/tmp/portage/media-video/ffmpeg-20089999/work/ffmpeg"/libavcodec -Wl,-rpath-link,"/var/tmp/portage/media-video/ffmpeg-20089999/work/ffmpeg"/libavutil -Wl,-Bsymbolic -wd10156,11030 -march=core2 -o libpostproc/libpostproc.so.51 libpostproc/postprocess.o libavutil/libavutil.so -lavutil -lz -lbz2 -pthread -lm -la52 -lamrnb -lm -lamrwb -lm -ldirac_decoder -ldirac_encoder -lfaac -lfaad -lmp3lame -lm -lschroedinger-1.0 -lpthread -loil-0.3 -lm -lrt -ltheora -logg -lvorbisenc -lvorbis -logg -lx264 -lm -lxvidcore -ldc1394 -lraw1394
ld: libswscale/swscale.o: relocation R_X86_64_PC32 against `b5Dither' can not be used when making a shared object; recompile with -fPIC
ld: final link failed: Bad value
make: *** [libswscale/libswscale.so.0] Error 1
make: *** Waiting for unfinished jobs....
ld: warning: creating a DT_TEXTREL in object.

That's with icc 10.1.017.
Gr?goire FAVRE  http://gregoire.favre.googlepages.com  http://www.gnupg.org

More information about the ffmpeg-devel mailing list