Hi,

    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.
 
    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:

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"

    It works. But when I run make, I got the following errors. Do you have any clueon how to fix it?

Thanks for your kind help!

Stella

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