Hi,<br><br> I want to use use gstreamer to play mpeg4 on ARM SMP board, but I have some problem when I cross compiling gst-ffmpeg inside scratchbox.<br> <br> I have built the latest version of gstreamer, gst-plugin-bad, xvid and amrwb, amrnb in scratchbox. I try to build gst--ffmpeg0.10.09 with the fillowing configure:<br>
<br>CFLAGS="-I/home/exingfa/tmp/opt/gstforarm/include -I/home/exingfa/tmp/opt/gstforarm/include/amrwb -I/home/exingfa/tmp/opt/gstforarm/include/amrnb" LDFLAGS=-L/home/exingfa/tmp/opt/gstforarm/lib/ ./configure --prefix="/home/exingfa/tmp/opt/gstforarm" PKG_CONFIG_PATH=~/tmp/opt/gstforarm/lib/pkgconfig --with-ffmpeg-extra-configure="--prefix="/home/exingfa/tmp/opt/gstforarm" --enable-gpl --enable-nonfree --enable-shared --enable-static --enable-libamr-wb --enable-libamr-nb --enable-libxvid --disable-ffmpeg"<br>
<br> It works. But when I run make, I got the following errors. Do you have any clueon how to fix it? <br><br>Thanks for your kind help!<br><br>Stella<br><br>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
Making all in gst-libs<br>Making all in ext<br>/home/exingfa/tmp/gst-packages/gst-ffmpeg-0.10.9/gst-libs/ext/ffmpeg/version.sh: line 1: git: command not found<br>libavutil/aes.c: In function 'subshift':<br>libavutil/aes.c:56: warning: initialization from incompatible pointer type<br>
libavutil/aes.c:57: warning: initialization from incompatible pointer type<br>libavutil/aes.c: In function 'crypt':<br>libavutil/aes.c:84: warning: passing argument 2 of 'mix' from incompatible pointer type<br>
libavutil/aes.c:85: warning: passing argument 1 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:85: warning: passing argument 2 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:85: warning: passing argument 3 of 'addkey' from incompatible pointer type<br>
libavutil/aes.c:87: warning: passing argument 1 of 'subshift' from incompatible pointer type<br>libavutil/aes.c: In function 'av_aes_crypt':<br>libavutil/aes.c:92: warning: passing argument 1 of 'addkey' from incompatible pointer type<br>
libavutil/aes.c:92: warning: passing argument 2 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:92: warning: passing argument 3 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:94: warning: passing argument 4 of 'crypt' from incompatible pointer type<br>
libavutil/aes.c:96: warning: passing argument 1 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:96: warning: passing argument 2 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:96: warning: passing argument 3 of 'addkey' from incompatible pointer type<br>
libavutil/aes.c:99: warning: passing argument 1 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:99: warning: passing argument 2 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:99: warning: passing argument 3 of 'addkey' from incompatible pointer type<br>
libavutil/aes.c:101: warning: passing argument 1 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:101: warning: passing argument 2 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:101: warning: passing argument 3 of 'addkey' from incompatible pointer type<br>
libavutil/aes.c:102: warning: passing argument 4 of 'crypt' from incompatible pointer type<br>libavutil/aes.c:103: warning: passing argument 1 of 'addkey' from incompatible pointer type<br>libavutil/aes.c:103: warning: passing argument 2 of 'addkey' from incompatible pointer type<br>
libavutil/aes.c:103: warning: passing argument 3 of 'addkey' from incompatible pointer type<br>libavutil/aes.c: In function 'av_aes_init':<br>libavutil/aes.c:149: warning: passing argument 1 of 'init_multbl2' from incompatible pointer type<br>
libavutil/aes.c:150: warning: passing argument 1 of 'init_multbl2' from incompatible pointer type<br>libavutil/aes.c:180: warning: passing argument 1 of 'subshift' from incompatible pointer type<br>libavutil/aes.c:181: warning: passing argument 1 of 'mix' from incompatible pointer type<br>
libavutil/aes.c:133: warning: array subscript is above array bounds<br>libavutil/fifo.c: In function 'av_fifo_write':<br>libavutil/fifo.c:80: warning: cast discards qualifiers from pointer target type<br>libavutil/rc4.c: In function 'ff_rc4_enc':<br>
libavutil/rc4.c:65: warning: 'r.y' may be used uninitialized in this function<br>libswscale/swscale.c: In function 'sws_getCachedContext':<br>libswscale/swscale.c:3177: warning: assignment discards qualifiers from pointer target type<br>
libswscale/yuv2rgb.c: In function 'sws_yuv2rgb_c_init_tables':<br>libswscale/yuv2rgb.c:639: warning: passing argument 4 of 'fill_table' from incompatible pointer type<br>libswscale/yuv2rgb.c:640: warning: passing argument 4 of 'fill_table' from incompatible pointer type<br>
libswscale/yuv2rgb.c:641: warning: passing argument 4 of 'fill_table' from incompatible pointer type<br>libswscale/yuv2rgb.c:673: warning: passing argument 4 of 'fill_table' from incompatible pointer type<br>
libswscale/yuv2rgb.c:674: warning: passing argument 4 of 'fill_table' from incompatible pointer type<br>libswscale/yuv2rgb.c:675: warning: passing argument 4 of 'fill_table' from incompatible pointer type<br>
libswscale/yuv2rgb.c: At top level:<br>libswscale/yuv2rgb.c:252: warning: 'yuv2rgb_c_8' defined but not used<br>libswscale/yuv2rgb.c:300: warning: 'yuv2rgb_c_4' defined but not used<br>libswscale/yuv2rgb.c:357: warning: 'yuv2rgb_c_4b' defined but not used<br>
libavformat/metadata_compat.c: In function 'ff_metadata_mux_compat':<br>libavformat/metadata_compat.c:129: warning: the address of 'number' will always evaluate as 'true'<br>libavformat/metadata_compat.c:130: warning: the address of 'number' will always evaluate as 'true'<br>
libavformat/utils.c: In function 'parse_date':<br>libavformat/utils.c:3002: warning: cast discards qualifiers from pointer target type<br>libavformat/utils.c: In function 'av_seek_frame_binary':<br>libavformat/utils.c:1292: warning: 'pos_min' may be used uninitialized in this function<br>
libavformat/utils.c:1292: warning: 'pos_max' may be used uninitialized in this function<br>libavformat/aviobuf.c: In function 'url_fdopen':<br>libavformat/aviobuf.c:553: warning: passing argument 6 of 'init_put_byte' from incompatible pointer type<br>
libavformat/aviobuf.c:553: warning: passing argument 7 of 'init_put_byte' from incompatible pointer type<br>libavformat/aviobuf.c:553: warning: passing argument 8 of 'init_put_byte' from incompatible pointer type<br>
libavformat/asfdec.c: In function 'asf_read_header':<br>libavformat/asfdec.c:355: warning: 'AVPaletteControl' is deprecated<br>libavformat/avidec.c: In function 'avi_read_header':<br>libavformat/avidec.c:491: warning: 'AVPaletteControl' is deprecated<br>
libavformat/swfenc.c: In function 'swf_write_video':<br>libavformat/swfenc.c:422: warning: passing argument 3 of 'av_fifo_generic_read' from incompatible pointer type<br>libavformat/idcin.c:90: warning: 'AVPaletteControl' is deprecated<br>
libavformat/ipmovie.c:120: warning: 'AVPaletteControl' is deprecated<br>libavformat/mov.c:149: warning: 'AVPaletteControl' is deprecated<br>libavformat/mpegenc.c: In function 'flush_packet':<br>libavformat/mpegenc.c:917: warning: passing argument 3 of 'av_fifo_generic_read' from incompatible pointer type<br>
libavformat/mpeg.c: In function 'mpegps_read_packet':<br>libavformat/mpeg.c:416: warning: 'dvdaudio_substream_type' may be used uninitialized in this function<br>libavformat/nsvdec.c:354:2: warning: #warning "FIXME: Byteswap buffer as needed"<br>
libavformat/nutdec.c: In function 'get_packetheader':<br>libavformat/nutdec.c:98: warning: passing argument 2 of 'ff_crc04C11DB7_update' from incompatible pointer type<br>libavformat/nutdec.c: In function 'decode_main_header':<br>
libavformat/nutdec.c:276: warning: passing argument 2 of 'get_buffer' discards qualifiers from pointer target type<br>libavformat/nutdec.c: In function 'read_seek':<br>libavformat/nutdec.c:862: warning: passing argument 3 of 'av_tree_find' from incompatible pointer type<br>
libavformat/nutdec.c:862: warning: passing argument 4 of 'av_tree_find' from incompatible pointer type<br>libavformat/nutdec.c:871: warning: passing argument 3 of 'av_tree_find' from incompatible pointer type<br>
libavformat/nutdec.c:871: warning: passing argument 4 of 'av_tree_find' from incompatible pointer type<br>libavformat/nutdec.c:879: warning: passing argument 3 of 'av_tree_find' from incompatible pointer type<br>
libavformat/nut.c: In function 'ff_nut_add_sp':<br>libavformat/nut.c:65: warning: passing argument 3 of 'av_tree_insert' from incompatible pointer type<br>libavformat/nutenc.c: In function 'write_packet':<br>
libavformat/nutenc.c:687: warning: passing argument 3 of 'av_tree_find' from incompatible pointer type<br>libavformat/oggdec.c: In function 'ogg_packet':<br>libavformat/oggdec.c:333: warning: assignment discards qualifiers from pointer target type<br>
libavformat/wc3movie.c:73: warning: 'AVPaletteControl' is deprecated<br>libavcodec/bitstream.c: In function 'alloc_table':<br>libavcodec/bitstream.c:129: warning: 'ff_realloc_static' is deprecated (declared at libavcodec/bitstream.c:53)<br>
libavcodec/bitstream_filter.c: In function 'av_bitstream_filter_filter':<br>libavcodec/bitstream_filter.c:62: warning: cast discards qualifiers from pointer target type<br>libavcodec/parser.c: In function 'av_parser_change':<br>
libavcodec/parser.c:196: warning: cast discards qualifiers from pointer target type<br>libavcodec/utils.c:420: warning: 'force_align_arg_pointer' attribute directive ignored<br>libavcodec/utils.c:472: warning: 'force_align_arg_pointer' attribute directive ignored<br>
libavcodec/utils.c: In function 'avcodec_encode_audio':<br>libavcodec/utils.c:478: warning: passing argument 4 of 'avctx->codec->encode' discards qualifiers from pointer target type<br>libavcodec/utils.c: At top level:<br>
libavcodec/utils.c:487: warning: 'force_align_arg_pointer' attribute directive ignored<br>libavcodec/utils.c: In function 'avcodec_encode_video':<br>libavcodec/utils.c:495: warning: passing argument 4 of 'avctx->codec->encode' discards qualifiers from pointer target type<br>
libavcodec/utils.c: In function 'avcodec_encode_subtitle':<br>libavcodec/utils.c:514: warning: passing argument 4 of 'avctx->codec->encode' discards qualifiers from pointer target type<br>libavcodec/utils.c: At top level:<br>
libavcodec/utils.c:522: warning: 'force_align_arg_pointer' attribute directive ignored<br>libavcodec/utils.c:545: warning: 'force_align_arg_pointer' attribute directive ignored<br>libavcodec/utils.c: In function 'av_parse_video_frame_size':<br>
libavcodec/utils.c:1056: warning: assignment discards qualifiers from pointer target type<br>libavcodec/alacenc.c: In function 'alac_encode_init':<br>libavcodec/alacenc.c:393: warning: large integer implicitly truncated to unsigned type<br>
libavcodec/alacenc.c:393: warning: large integer implicitly truncated to unsigned type<br>libavcodec/alacenc.c:393: warning: large integer implicitly truncated to unsigned type<br>libavcodec/avs.c: In function 'avs_decode_frame':<br>
libavcodec/avs.c:57: warning: 'change_map.buffer' may be used uninitialized in this function<br>libavcodec/avs.c:57: warning: 'change_map.buffer_ptr' may be used uninitialized in this function<br>libavcodec/avs.c:57: warning: 'change_map.bit_count' may be used uninitialized in this function<br>
libavcodec/avs.c:57: warning: 'change_map.cache0' may be used uninitialized in this function<br>libavcodec/avs.c:57: warning: 'change_map.cache1' may be used uninitialized in this function<br>libavcodec/bmp.c: In function 'bmp_decode_frame':<br>
libavcodec/bmp.c:49: warning: 'rgb[1]' may be used uninitialized in this function<br>libavcodec/bmp.c:49: warning: 'rgb[2]' may be used uninitialized in this function<br>libavcodec/dnxhdenc.c: In function 'dnxhd_encode_picture':<br>
libavcodec/dnxhdenc.c:756: warning: large integer implicitly truncated to unsigned type<br>libavcodec/dnxhdenc.c:756: warning: large integer implicitly truncated to unsigned type<br>libavcodec/dnxhdenc.c:756: warning: large integer implicitly truncated to unsigned type<br>
libavcodec/dnxhdenc.c: At top level:<br>libavcodec/dnxhdenc.c:805: warning: initialization from incompatible pointer type<br>libavcodec/ratecontrol.c: In function 'ff_rate_control_init':<br>libavcodec/ratecontrol.c:109: warning: passing argument 3 of 'ff_parse' discards qualifiers from pointer target type<br>
libavcodec/ratecontrol.c:109: warning: passing argument 4 of 'ff_parse' discards qualifiers from pointer target type<br>libavcodec/dv.c: In function 'dvvideo_decode_frame':<br>libavcodec/dv.c:1138: warning: assignment discards qualifiers from pointer target type<br>
libavcodec/mpeg12.h:59: warning: inline function 'ff_mpeg1_decode_block_intra' declared but never defined<br>libavcodec/mpeg12.h:59: warning: inline function 'ff_mpeg1_decode_block_intra' declared but never defined<br>
libavcodec/rangecoder.c: In function 'ff_init_range_decoder':<br>libavcodec/rangecoder.c:54: warning: cast discards qualifiers from pointer target type<br>libavcodec/rangecoder.c:56: warning: passing argument 1 of 'bytestream_get_be16' from incompatible pointer type<br>
libavcodec/flashsv.c: In function 'flashsv_decode_frame':<br>libavcodec/flashsv.c:196: warning: assignment discards qualifiers from pointer target type<br>libavcodec/h263.c: In function 'mpeg4_decode_block':<br>
libavcodec/h263.c:4752: warning: 'dc_pred_dir' may be used uninitialized in this function<br>libavcodec/h264.c: In function 'pred_direct_motion':<br>libavcodec/h264.c:1046: warning: assignment from incompatible pointer type<br>
libavcodec/h264.c:1047: warning: assignment from incompatible pointer type<br>libavcodec/h264.c: In function 'filter_mb_dir':<br>libavcodec/h264.c:6284: warning: initialization from incompatible pointer type<br>libavcodec/h264.c:6285: warning: initialization from incompatible pointer type<br>
In file included from libavcodec/h264.c:8144:<br>libavcodec/svq3.c: In function 'svq3_decode_slice_header':<br>libavcodec/svq3.c:721: warning: cast discards qualifiers from pointer target type<br>libavcodec/svq3.c:721: warning: cast discards qualifiers from pointer target type<br>
libavcodec/svq3.c:721: warning: cast discards qualifiers from pointer target type<br>libavcodec/svq3.c:721: warning: cast discards qualifiers from pointer target type<br>libavcodec/svq3.c:724: warning: cast discards qualifiers from pointer target type<br>
libavcodec/h264.c: In function 'execute_ref_pic_marking':<br>libavcodec/h264.c:3280: warning: 'structure' may be used uninitialized in this function<br>libavcodec/h264.c:3272: warning: 'j' may be used uninitialized in this function<br>
libavcodec/h264.c: In function 'pred_direct_motion':<br>libavcodec/h264.c:716: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false<br>libavcodec/h264.c:723: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false<br>
libavcodec/idcinvideo.c: In function 'idcin_decode_frame':<br>libavcodec/idcinvideo.c:215: warning: 'AVPaletteControl' is deprecated<br>libavcodec/interplayvideo.c: In function 'ipvideo_decode_frame':<br>
libavcodec/interplayvideo.c:884: warning: 'AVPaletteControl' is deprecated<br>libavcodec/mpeg12.h:59: warning: inline function 'ff_mpeg1_decode_block_intra' declared but never defined<br>libavcodec/mpeg12.h:59: warning: inline function 'ff_mpeg1_decode_block_intra' declared but never defined<br>
libavcodec/mpeg12.h:59: warning: inline function 'ff_mpeg1_decode_block_intra' declared but never defined<br>libavcodec/mpeg12.h:59: warning: inline function 'ff_mpeg1_decode_block_intra' declared but never defined<br>
libavcodec/lcldec.c: In function 'decode_frame':<br>libavcodec/lcldec.c:167: warning: cast discards qualifiers from pointer target type<br>libavcodec/nuv.c: In function 'copy_frame':<br>libavcodec/nuv.c:74: warning: passing argument 2 of 'avpicture_fill' discards qualifiers from pointer target type<br>
libavcodec/pnmenc.c: In function 'pnm_decode_frame':<br>libavcodec/pnmenc.c:46: warning: assignment discards qualifiers from pointer target type<br>libavcodec/pnmenc.c:47: warning: assignment discards qualifiers from pointer target type<br>
libavcodec/pngdec.c: In function 'png_decode_idat':<br>libavcodec/pngdec.c:357: warning: assignment discards qualifiers from pointer target type<br>libavcodec/pngenc.c: In function 'png_write_row':<br>libavcodec/pngenc.c:217: warning: cast discards qualifiers from pointer target type<br>
libavcodec/rawdec.c: In function 'raw_decode':<br>libavcodec/rawdec.c:127: warning: passing argument 2 of 'avpicture_fill' discards qualifiers from pointer target type<br>libavcodec/rv34.c: In function 'rv34_set_deblock_coef':<br>
libavcodec/rv34.c:1107: warning: initialization from incompatible pointer type<br>libavcodec/svq1dec.c: In function 'svq1_decode_frame':<br>libavcodec/svq1dec.c:663: warning: cast discards qualifiers from pointer target type<br>
libavcodec/tscc.c: In function 'decode_frame':<br>libavcodec/tscc.c:95: warning: assignment discards qualifiers from pointer target type<br>libavcodec/xan.c: In function 'xan_decode_frame':<br>libavcodec/xan.c:411: warning: 'AVPaletteControl' is deprecated<br>
libavcodec/zmbv.c: In function 'decode_frame':<br>libavcodec/zmbv.c:494: warning: assignment discards qualifiers from pointer target type<br>libavcodec/adxenc.c: In function 'adx_encode_header':<br>libavcodec/adxenc.c:104: warning: large integer implicitly truncated to unsigned type<br>
libavcodec/adxenc.c:104: warning: large integer implicitly truncated to unsigned type<br>libavcodec/adxenc.c:104: warning: large integer implicitly truncated to unsigned type<br>libavcodec/adxenc.c:108: warning: large integer implicitly truncated to unsigned type<br>
libavcodec/adxenc.c:108: warning: large integer implicitly truncated to unsigned type<br>libavcodec/adxenc.c:108: warning: large integer implicitly truncated to unsigned type<br>libavcodec/libamr.c: In function 'amr_nb_decode_frame':<br>
libavcodec/libamr.c:164: warning: passing argument 2 of 'GP3Decoder_Interface_Decode' discards qualifiers from pointer target type<br>In file included from libavcodec/libamr.c:268:<br>/home/exingfa/tmp/opt/gstforarm/include/amrwb/dec_if.h: At top level:<br>
/home/exingfa/tmp/opt/gstforarm/include/amrwb/dec_if.h:28: warning: redundant redeclaration of 'D_IF_init'<br>/home/exingfa/tmp/opt/gstforarm/include/amrwb/dec_if.h:26: warning: previous declaration of 'D_IF_init' was here<br>
libavcodec/libamr.c: In function 'amr_wb_decode_frame':<br>libavcodec/libamr.c:421: warning: passing argument 2 of 'GP3D_IF_decode' discards qualifiers from pointer target type<br>libavcodec/libxvidff.c: In function 'ff_xvid_encode_init':<br>
libavcodec/libxvidff.c:232: warning: passing argument 1 of 'av_tempfile' discards qualifiers from pointer target type<br>libavcodec/libxvidff.c: In function 'xvid_ff_2pass_after':<br>libavcodec/libxvidff.c:711: warning: initialization discards qualifiers from pointer target type<br>
libavcodec/libxvid_rc.c: In function 'ff_xvid_rate_control_init':<br>libavcodec/libxvid_rc.c:43: warning: passing argument 1 of 'av_tempfile' discards qualifiers from pointer target type<br>libavcodec/mpegvideo_parser.c:165: warning: 'mpegvideo_split' defined but not used<br>
libavcodec/pnm_parser.c: In function 'pnm_parse':<br>libavcodec/pnm_parser.c:45: warning: cast discards qualifiers from pointer target type<br>libavcodec/pnm_parser.c:46: warning: cast discards qualifiers from pointer target type<br>
libavcodec/h264_mp4toannexb_bsf.c: In function 'h264_mp4toannexb_filter':<br>libavcodec/h264_mp4toannexb_bsf.c:61: warning: cast discards qualifiers from pointer target type<br>libavcodec/mp3_header_compress_bsf.c: In function 'mp3_header_compress':<br>
libavcodec/mp3_header_compress_bsf.c:41: warning: cast discards qualifiers from pointer target type<br>libavcodec/mp3_header_decompress_bsf.c: In function 'mp3_header_decompress':<br>libavcodec/mp3_header_decompress_bsf.c:36: warning: cast discards qualifiers from pointer target type<br>
libavcodec/remove_extradata_bsf.c: In function 'remove_extradata':<br>libavcodec/remove_extradata_bsf.c:45: warning: cast discards qualifiers from pointer target type<br>libavcodec/arm/dsputil_arm.c:23:5: warning: "HAVE_IPP" is not defined<br>
libavcodec/arm/dsputil_arm.c:96:5: warning: "HAVE_IPP" is not defined<br>libavcodec/arm/dsputil_arm.c:133:7: warning: "HAVE_IPP" is not defined<br>libavcodec/arm/dsputil_arm.c:170:5: warning: "HAVE_IPP" is not defined<br>
collect2: ld returned 1 exit status<br>make[5]: *** [libavcodec/libavcodec.so.52] Error 1<br>make[4]: *** [all-local] Error 2<br>make[3]: *** [all-recursive] Error 1<br>make[2]: *** [all-recursive] Error 1<br>make[1]: *** [all-recursive] Error 1<br>
make: *** [all] Error 2<br><br>