I am trying to install ffmepg on Linux but without success: Here is a procedure I use
# ./configure --enable-gpl --enable-a52 --enable-xvid --enable-amr_nb --enable-amr_wb -- enable-mp3lame --enable-libogg --enable-vorbis ... gcc -I"/home/src/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/src/ffmpeg" -I"/home/src/ffmpeg" -I"/home/src/ffmpeg"/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall - Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -O3 -c -o mpegvideo.o mpegvideo.c In file included from /home/src/ffmpeg/libavutil/common.h:57, from /home/src/ffmpeg/libavutil/avutil.h:44, from avcodec.h:34, from mpegvideo.c:30: /home/src/ffmpeg/libavutil/internal.h:305: warning: static declaration of 'lrintf' follows non- static declaration mpegvideo.c: In function `MPV_encode_picture': /home/src/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/src/ffmpeg/libavcodec' make: *** [lib] Error 2
I asked exactly the same question a few days ago. Either nobody knows the answer, or those who do can't be bothered to share their knowledge. Anyway, looking around elsewhere in the net I found something that fixed it for me: Add the following flag to your configure command: --extra-cflags=-DHAVE_LRINTF and reconfigure. This solved it for me. I have been forced to use ffmpeg for quite some time now, and much to my dismay, building this wretched (but important) package correctly is the same messy, unpleasant ordeal that it has always been.
Thank you for your help So I used ./configure --enable-gpl --enable-a52 --enable-xvid --enable-amr_nb --enable-amr_wb -- enable-mp3lame --enable-libogg --enable-vorbis --extra-cflags=-DHAVE_LRINTF and then make But now I finished with the error like this: ... ... gcc -I"/home/src/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/src/ffmpeg" -I"/home/src/ffmpeg" -I"/home/src/ffmpeg"/libavutil -DHAVE_LRINTF -fomit-frame-pointer -g -Wdeclaration-after- statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls - O3 -c -o amr.o amr.c amr.c:72:34: amr_float/interf_dec.h: No such file or directory amr.c:73:34: amr_float/interf_enc.h: No such file or directory amr.c:81: error: field `mode' has incomplete type amr.c:87: error: return type is an incomplete type amr.c: In function `getBitrateMode': amr.c:90: error: `MR475' undeclared (first use in this function) amr.c:90: error: (Each undeclared identifier is reported only once amr.c:90: error: for each function it appears in.) amr.c:91: error: `MR515' undeclared (first use in this function) amr.c:92: error: `MR59' undeclared (first use in this function) amr.c:93: error: `MR67' undeclared (first use in this function) amr.c:94: error: `MR74' undeclared (first use in this function) amr.c:95: error: `MR795' undeclared (first use in this function) amr.c:96: error: `MR102' undeclared (first use in this function) amr.c:97: error: `MR122' undeclared (first use in this function) amr.c:105: warning: `return' with a value, in function returning void amr.c:109: warning: `return' with a value, in function returning void amr.c: At top level: amr.c:354: error: field `enc_bitrate' has incomplete type amr.c: In function `amr_nb_decode_init': amr.c:361: warning: implicit declaration of function `Decoder_Interface_init' amr.c:361: warning: assignment makes pointer from integer without a cast amr.c: In function `amr_nb_encode_init': amr.c:399: warning: implicit declaration of function `Encoder_Interface_init' amr.c:399: warning: assignment makes pointer from integer without a cast amr.c: In function `amr_nb_decode_close': amr.c:414: warning: implicit declaration of function `Decoder_Interface_exit' amr.c: In function `amr_nb_encode_close': amr.c:421: warning: implicit declaration of function `Encoder_Interface_exit' amr.c: In function `amr_nb_decode_frame': amr.c:434: error: storage size of 'dec_mode' isn't known amr.c:455: warning: implicit declaration of function `Decoder_Interface_Decode' amr.c:434: warning: unused variable `dec_mode' amr.c: In function `amr_nb_encode_frame': amr.c:469: warning: implicit declaration of function `Encoder_Interface_Encode' amr.c:517:32: amrwb_float/enc_if.h: No such file or directory amr.c:518:32: amrwb_float/dec_if.h: No such file or directory amr.c: At top level: amr.c:562: error: parse error before "Word16" amr.c:562: warning: no semicolon at end of struct or union amr.c:563: warning: type defaults to `int' in declaration of `AMRWBContext' amr.c:563: warning: data definition has no type or storage class amr.c: In function `amr_wb_encode_init': amr.c:567: error: `s' undeclared (first use in this function) amr.c:567: error: parse error before ')' token amr.c:585: warning: implicit declaration of function `E_IF_init' amr.c: In function `amr_wb_encode_close': amr.c:594: error: `s' undeclared (first use in this function) amr.c:594: error: parse error before ')' token amr.c:595: warning: implicit declaration of function `E_IF_exit' amr.c: In function `amr_wb_encode_frame': amr.c:604: error: `s' undeclared (first use in this function) amr.c:605: warning: ISO C90 forbids mixed declarations and code amr.c:606: error: parse error before ')' token amr.c:608: warning: implicit declaration of function `E_IF_encode' amr.c: In function `amr_wb_decode_init': amr.c:614: error: `s' undeclared (first use in this function) amr.c:614: error: parse error before ')' token amr.c:616: warning: implicit declaration of function `D_IF_init' amr.c: At top level: amr.c:629: error: parse error before "block_size" amr.c:629: warning: type defaults to `int' in declaration of `block_size' amr.c:629: warning: data definition has no type or storage class amr.c: In function `amr_wb_decode_frame': amr.c:635: error: `s' undeclared (first use in this function) amr.c:635: error: parse error before ')' token amr.c:655: warning: implicit declaration of function `D_IF_decode' amr.c:655: error: `_good_frame' undeclared (first use in this function) amr.c: In function `amr_wb_decode_close': amr.c:662: error: `s' undeclared (first use in this function) amr.c:662: error: parse error before ')' token amr.c:663: warning: implicit declaration of function `D_IF_exit' amr.c: At top level: amr.c:629: warning: array 'block_size' assumed to have one element make[1]: *** [amr.o] Error 1 make[1]: Leaving directory `/home/src/ffmpeg/libavcodec' make: *** [lib] Error 2 Can anyone help, please? Thank you Lad
/home/src/ffmpeg/libavutil/internal.h:305: warning: static declaration of 'lrintf' follows non- static declaration mpegvideo.c: In function `MPV_encode_picture': /home/src/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/src/ffmpeg/libavcodec' make: *** [lib] Error 2
I asked exactly the same question a few days ago. Either nobody knows the answer, or those who do can't be bothered to share their knowledge. Anyway, looking around elsewhere in the net I found something that fixed it for me:
Add the following flag to your configure command:
--extra-cflags=-DHAVE_LRINTF
and reconfigure. This solved it for me.
On Thu, 01 Feb 2007 09:12:18 +0100, export at hope.cz wrote:
But now I finished with the error like this: ... ... gcc -I"/home/src/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/src/ffmpeg" -I"/home/src/ffmpeg" -I"/home/src/ffmpeg"/libavutil -DHAVE_LRINTF -fomit-frame-pointer -g -Wdeclaration-after- statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls - O3 -c -o amr.o amr.c amr.c:72:34: amr_float/interf_dec.h: No such file or directory amr.c:73:34: amr_float/interf_enc.h: No such file or directory
It's obvious you've been following the howto to which I posted a link earlier. Did you actually read it? Did you read the the output of the configure script telling you what to do? Do you know why it's trying to build the AMR codecs in the firat place and do you actually need them? Please don't just follow instructions parrot-fashion without trying to understand them. -- G. Stewart - godwin.stewart at gmail.com The new Linux anthem will be "He's an idiot, but he's ok", as performed by Monthy Python. You'd better start practicing. -- Linus Torvalds, announcing another kernel patch
participants (3)
-
1.41421@gmail.com -
export@hope.cz -
godwin.stewart@gmail.com