Build failure on Slackware 11.0
I am trying to build FFMPEG as extracted from the SVN repository on 01/30 10AM Pacific, and failing miserably :-( My platform is Slackware 11.0. This has GCC 3.4.6 and GLIBC 2.3.6. I configured FFMPEG as follows: ./configure --enable-shared --enable-xvid --enable-vorbis --enable-libogg --enable-mp3lame --enable-gpl --enable-faad --enable-faac --enable-a52 The compilation fails as follows: gcc -I"/home/abc/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/abc/ffmpeg" -I"/home/abc/ffmpeg" - I"/home/abc/ffmpeg"/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statem ent -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -O3 -c -o mpegvideo.o mpegvideo.c In file included from /home/abc/ffmpeg/libavutil/common.h:57, from /home/abc/ffmpeg/libavutil/avutil.h:44, from avcodec.h:34, from mpegvideo.c:30: /home/abc/ffmpeg/libavutil/internal.h:305: warning: static declaration of 'lrintf' follows non-static declaration mpegvideo.c: In function `MPV_encode_picture': /home/abc/ffmpeg/libavutil/internal.h:305: sorry, unimplemented: inlining failed in call to 'lrintf': redefined extern inline functions are not considered for inlining mpegvideo.c:2630: sorry, unimplemented: called from here make[1]: *** [mpegvideo.o] Error 1 make[1]: Leaving directory `/home/abc/ffmpeg/libavcodec' make: *** [lib] Error 2 Suggestions?
First, this is not a 100% fix, I'm just adding information with the hope of someone smarter than myself being able to come up with a 100% fix. Second, my information is not my own, but the end result of information gathered from a post here: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2005-June/001937.html which is far more informative. This is what I did. I edited libavutil/internal.h on line 300 (approx) to read: NEW: static __inline__ long int lrintf(float x) ORIG: static av_always_inline long int lrintf(float x) This allowed for a successful compilation of the source code. I DO NOT UNDERSTAND THE LONG TERM RAMIFICATIONS OF WHAT I HAVE DONE!! Short term, the program compiles and has not had a problem YET!! Again, this information is posted with the hopes that someone smarter than myself (c'mon, there are a lot of you out there!!) will take a quick look and be able to provide the answers for a permanent and proper fix. Best of luck to all. Respectfully submitted, A. R. Thomas
participants (2)
-
1.41421@gmail.com -
thomasar2002@yahoo.com