Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Compile problems - RedHat 3.0 EL

Help
2005-01-21
2013-04-24
  • I followed the directions in the release notes for 1.1.4pre2 and I still get errors when compiling. I'm probably doing something wrong:

    In file included from codecs.h:12,
                     from main.c:45:
    ../ffmpeg/avcodec.h:14:20: common.h: No such file or directory
    ../ffmpeg/avcodec.h:15:22: rational.h: No such file or directory
    In file included from codecs.h:12,
                     from main.c:45:
    ../ffmpeg/avcodec.h:583: syntax error before "uint8_t"
    ../ffmpeg/avcodec.h:583: warning: no semicolon at end of struct or union
    ../ffmpeg/avcodec.h:583: syntax error before '*' token
    ../ffmpeg/avcodec.h:583: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:583: syntax error before '*' token
    ../ffmpeg/avcodec.h:583: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:583: syntax error before '*' token
    ../ffmpeg/avcodec.h:583: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:583: syntax error before "motion_subsample_log2"
    ../ffmpeg/avcodec.h:583: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:583: syntax error before "error"
    ../ffmpeg/avcodec.h:583: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:584: syntax error before '}' token
    ../ffmpeg/avcodec.h:584: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:713: syntax error before '*' token
    ../ffmpeg/avcodec.h:914: syntax error before "AVFrame"
    ../ffmpeg/avcodec.h:923: syntax error before "AVFrame"
    ../ffmpeg/avcodec.h:1166: syntax error before "AVRational"
    ../ffmpeg/avcodec.h:1166: warning: no semicolon at end of struct or union
    ../ffmpeg/avcodec.h:1173: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1212: syntax error before "error"
    ../ffmpeg/avcodec.h:1212: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1450: syntax error before '*' token
    ../ffmpeg/avcodec.h:1450: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1457: syntax error before '*' token
    ../ffmpeg/avcodec.h:1457: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1512: syntax error before "AVFrame"
    ../ffmpeg/avcodec.h:1644: syntax error before '}' token
    ../ffmpeg/avcodec.h:1644: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1699: syntax error before '*' token
    ../ffmpeg/avcodec.h:1700: syntax error before '*' token
    ../ffmpeg/avcodec.h:1701: syntax error before '*' token
    ../ffmpeg/avcodec.h:1702: syntax error before '*' token
    ../ffmpeg/avcodec.h:1707: syntax error before '*' token
    ../ffmpeg/avcodec.h:1708: warning: no semicolon at end of struct or union
    ../ffmpeg/avcodec.h:1708: syntax error before '*' token
    ../ffmpeg/avcodec.h:1710: syntax error before '}' token
    ../ffmpeg/avcodec.h:1710: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1717: syntax error before "uint8_t"
    ../ffmpeg/avcodec.h:1717: warning: no semicolon at end of struct or union
    ../ffmpeg/avcodec.h:1719: syntax error before '}' token
    ../ffmpeg/avcodec.h:1719: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1742: syntax error before "ac3_encoder"
    ../ffmpeg/avcodec.h:1742: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1743: syntax error before "mp2_encoder"
    ../ffmpeg/avcodec.h:1743: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1744: syntax error before "mp3lame_encoder"
    ../ffmpeg/avcodec.h:1744: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1745: syntax error before "oggvorbis_encoder"
    ../ffmpeg/avcodec.h:1745: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1746: syntax error before "faac_encoder"
    ../ffmpeg/avcodec.h:1746: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1747: syntax error before "xvid_encoder"
    ../ffmpeg/avcodec.h:1747: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1748: syntax error before "mpeg1video_encoder"
    ../ffmpeg/avcodec.h:1748: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1749: syntax error before "mpeg2video_encoder"
    ../ffmpeg/avcodec.h:1749: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1750: syntax error before "h263_encoder"
    ../ffmpeg/avcodec.h:1750: warning: data definition has no type or storage class
    ../ffmpeg/avcodec.h:1751: syntax error before "h263p_encoder"

    ... (TOO MANY LINES TO SHOW HERE) ...

    main.c: In function `main':
    main.c:550: `CAP_AVI' undeclared (first use in this function)
    make: *** [xvidcap-main.o] Error 1

     
    • Hi,
      looks like the compilation does not find the libavcodec include files.
      Are you absolutely sure you configured with the --with-foreced-embedded-ffmpeg parameter?

      If so, please rerun configure and send the output.
      also send the output of ls -la on the ffmpeg subdirectory of your source build tree root.

      Karl.

       
    • Yes, here is the configure command I used:
      ./configure --with-gtk2 --with-forced-embedded-ffmpeg

      Do I need to make ffmpeg separately before compiling the whole application?

      Here is the list of the ffmpeg directory followed by the output of the configure:

      total 728
      drwxrwxr-x    7 user  R&D          4096 Jan  1 15:14 .
      drwxrwxr-x    9 user  R&D          4096 Jan  1 15:14 ..
      -rw-r--r--    1 user  R&D         67614 Aug 19 08:54 avcodec.h
      -rw-r--r--    1 user  R&D         20248 Aug 19 08:54 avformat.h
      -rw-r--r--    1 user  R&D          6125 Aug  3 11:54 avio.h
      -rw-r--r--    1 user  R&D           524 Jun  4  2003 berrno.h
      -rw-r--r--    1 user  R&D         12467 Aug 19 08:54 Changelog
      -rw-r--r--    1 user  R&D          3600 Aug  3 11:54 cmdutils.c
      -rw-r--r--    1 user  R&D           749 Aug  3 11:54 cmdutils.h
      -rwxr-xr-x    1 user  R&D         35257 Aug 19 08:54 configure
      -rw-r--r--    1 user  R&D         26428 Jun  4  2003 COPYING
      -rw-r--r--    1 user  R&D           542 Aug 19 08:54 CREDITS
      -rw-r--r--    1 user  R&D           102 Aug  3 11:54 .cvsignore
      -rw-r--r--    1 user  R&D           714 Jun  4  2003 cygwin_inttypes.h
      drwxrwxr-x    2 user  R&D          4096 Jan  1 15:14 doc
      -rw-r--r--    1 user  R&D         41386 Aug 19 08:54 Doxyfile
      -rw-r--r--    1 user  R&D          1942 Dec  3  2003 ffinstall.nsi
      -rw-r--r--    1 user  R&D        140116 Aug 19 08:54 ffmpeg.c
      -rw-r--r--    1 user  R&D         57575 Aug 19 08:54 ffplay.c
      -rw-r--r--    1 user  R&D        152438 Aug 19 08:54 ffserver.c
      -rw-r--r--    1 user  R&D           126 Jun  4  2003 ffserver.h
      -rw-r--r--    1 user  R&D           426 Jun  4  2003 INSTALL
      drwxrwxr-x   12 user  R&D          4096 Jan  1 15:14 libavcodec
      drwxrwxr-x    2 user  R&D          4096 Jan  1 15:14 libavformat
      -rw-r--r--    1 user  R&D          4429 Aug 19 08:54 Makefile
      -rw-r--r--    1 user  R&D         15044 Aug  3 11:54 output_example.c
      -rwxr-xr-x    1 user  R&D         16985 Jan  1 15:12 qt-faststart
      -rw-r--r--    1 user  R&D          9061 Aug 19 08:54 qt-faststart.c
      -rw-r--r--    1 user  R&D           445 Jun  4  2003 README
      -rw-r--r--    1 user  R&D          2003 Aug  3 11:54 rtp.h
      -rw-r--r--    1 user  R&D           617 May 31  2003 rtspcodes.h
      -rw-r--r--    1 user  R&D          2906 Aug  3 11:54 rtsp.h
      drwxrwxr-x    2 user  R&D          4096 Jan  1 15:14 tests
      drwxrwxr-x    2 user  R&D          4096 Jan  1 15:14 vhook
      -rw-r--r--    1 user  R&D          1761 Nov  8  2003 xvmc_render.h

      $ ./configure --with-gtk2 --with-forced-embedded-ffmpeg
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for gawk... gawk
      checking whether make sets $(MAKE)... yes
      checking for gcc... gcc
      checking for C compiler default output file name... a.out
      checking whether the C compiler works... yes
      checking whether we are cross compiling... no
      checking for suffix of executables...
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ANSI C... none needed
      checking for style of include used by make... GNU
      checking dependency style of gcc... gcc3
      checking whether make sets $(MAKE)... (cached) yes
      checking for ranlib... ranlib
      checking how to run the C preprocessor... gcc -E
      checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
      checking for gethostbyname... yes
      checking for connect... yes
      checking for remove... yes
      checking for shmat... yes
      checking for IceConnectionNumber in -lICE... yes
      checking for zlibVersion in -lz... yes
      checking for png_set_filter in -lpng... yes
      checking for jpeg_CreateCompress in -ljpeg... yes
      checking for lame_init in -lmp3lame... no
      To use mp3 audio codecs you need liblame/liblame-dev
      make-ing prerequisite ffmpeg libraries
      Install prefix   /usr/local
      Source path      /data/setup/xvidcap/xvidcap-1.1.4/ffmpeg
      C compiler       gcc
      make             make
      CPU              x86 (generic)
      Big Endian       no
      inttypes.h       yes
      broken inttypes.h no
      MMX enabled      yes
      Vector Builtins  yes
      gprof enabled    no
      zlib enabled     yes
      mp3lame enabled  yes
      vorbis enabled   no
      faad enabled     no
      faadbin enabled  no
      faac enabled     no
      xvid enabled     no
      a52 support      no
      a52 dlopened     no
      dts support      no
      pp support       no
      debug symbols    yes
      optimize         yes
      shared pp        no
      Video hooking    yes
      SDL support      yes
      risky / patent encumbered codecs yes
      Imlib2 support   no
      freetype support yes
      Sun medialib support no
      pthreads support no
      AMR-NB float support no
      AMR-NB fixed support no
      AMR-WB float support no
      License: LGPL
      Creating config.mak and config.h
      make -C libavcodec all
      make[1]: Entering directory `/data/setup/xvidcap/xvidcap-1.1.4/ffmpeg/libavcodec'
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o utils.o utils.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mem.o mem.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o allcodecs.o allcodecs.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mpegvideo.o mpegvideo.c
      mpegvideo.c: In function `dct_quantize_refine':
      mpegvideo.c:5247: warning: `q' might be used uninitialized in this function
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o jrevdct.o jrevdct.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o jfdctfst.o jfdctfst.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o jfdctint.o jfdctint.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mpegaudio.o mpegaudio.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ac3enc.o ac3enc.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mjpeg.o mjpeg.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o resample.o resample.c
      resample.c: In function `audio_resample_init':
      resample.c:131: warning: unused variable `i'
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o resample2.o resample2.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o dsputil.o dsputil.c
      dsputil.c: In function `dsputil_init':
      dsputil.c:3369: warning: assignment from incompatible pointer type
      dsputil.c:3370: warning: assignment from incompatible pointer type
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o motion_est.o motion_est.c
      In file included from motion_est.c:220:
      motion_est_template.c: In function `get_mb_score':
      motion_est_template.c:238: warning: unused variable `score_map'
      motion_est_template.c:238: warning: unused variable `xmin'
      motion_est_template.c:238: warning: unused variable `ymin'
      motion_est_template.c:238: warning: unused variable `xmax'
      motion_est_template.c:238: warning: unused variable `ymax'
      motion_est.c: In function `h263_mv4_search':
      motion_est.c:740: warning: unused variable `uvstride'
      motion_est.c: In function `interlaced_search':
      motion_est.c:891: warning: unused variable `uvstride'
      motion_est.c: In function `ff_estimate_p_frame_motion':
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c: In function `check_bidir_mv':
      motion_est.c:1574: warning: unused variable `uvstride'
      motion_est.c: In function `hpel_motion_search':
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c: In function `qpel_motion_search':
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c: In function `check_input_motion':
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c: In function `ff_estimate_motion_b':
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      motion_est.c: In function `direct_search':
      motion_est.c:178: warning: `uvdxy' might be used uninitialized in this function
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o imgconvert.o imgconvert.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o imgresample.o imgresample.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mpeg12.o mpeg12.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mpegaudiodec.o mpegaudiodec.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o pcm.o pcm.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o simple_idct.o simple_idct.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ratecontrol.o ratecontrol.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o adpcm.o adpcm.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o eval.o eval.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o dv.o dv.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o error_resilience.o error_resilience.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o fft.o fft.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mdct.o mdct.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mace.o mace.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o huffyuv.o huffyuv.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o cyuv.o cyuv.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o opts.o opts.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o raw.o raw.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o h264.o h264.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o golomb.o golomb.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o vp3.o vp3.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o asv1.o asv1.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o 4xm.o 4xm.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o cabac.o cabac.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ffv1.o ffv1.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ra144.o ra144.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o ra288.o ra288.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o vcr1.o vcr1.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o cljr.o cljr.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o roqvideo.o roqvideo.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o dpcm.o dpcm.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o interplayvideo.o interplayvideo.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o xan.o xan.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o rpza.o rpza.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o cinepak.o cinepak.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o msrle.o msrle.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o msvideo1.o msvideo1.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o vqavideo.o vqavideo.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o idcinvideo.o idcinvideo.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o adx.o adx.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o rational.o rational.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o faandct.o faandct.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o 8bps.o 8bps.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o smc.o smc.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o parser.o parser.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o flicvideo.o flicvideo.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o truemotion1.o truemotion1.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o vmdav.o vmdav.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o lcl.o lcl.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o qtrle.o qtrle.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o g726.o g726.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o flac.o flac.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o vp3dsp.o vp3dsp.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o integer.o integer.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o snow.o snow.c
      snow.c: In function `horizontal_decomposeX':
      snow.c:742: warning: unused variable `A1'
      snow.c:742: warning: unused variable `A2'
      snow.c:742: warning: unused variable `A3'
      snow.c:742: warning: unused variable `A4'
      snow.c: In function `horizontal_composeX':
      snow.c:761: warning: unused variable `A1'
      snow.c:761: warning: unused variable `A2'
      snow.c:761: warning: unused variable `A3'
      snow.c:761: warning: unused variable `A4'
      snow.c: In function `horizontal_decompose53i':
      snow.c:819: warning: unused variable `A1'
      snow.c:819: warning: unused variable `A2'
      snow.c:819: warning: unused variable `A3'
      snow.c:819: warning: unused variable `A4'
      snow.c: In function `spatial_decompose53i':
      snow.c:879: warning: unused variable `x'
      snow.c: In function `spatial_decompose97i':
      snow.c:1022: warning: unused variable `x'
      snow.c: In function `horizontal_compose53i':
      snow.c:1072: warning: unused variable `A1'
      snow.c:1072: warning: unused variable `A2'
      snow.c:1072: warning: unused variable `A3'
      snow.c:1072: warning: unused variable `A4'
      snow.c: In function `spatial_compose53i':
      snow.c:1131: warning: unused variable `x'
      snow.c: In function `spatial_compose97i':
      snow.c:1205: warning: unused variable `x'
      snow.c: In function `encode_subband_z0run':
      snow.c:1339: warning: unused variable `pr'
      snow.c:1339: warning: unused variable `pd'
      snow.c:1397: warning: unused variable `pr'
      snow.c:1397: warning: unused variable `pd'
      snow.c:1325: warning: unused variable `level'
      snow.c:1328: warning: unused variable `x'
      snow.c:1328: warning: unused variable `y'
      snow.c: In function `encode_subband_bp':
      snow.c:1460: warning: unused variable `level'
      snow.c:1461: warning: unused variable `w'
      snow.c:1462: warning: unused variable `h'
      snow.c:1463: warning: unused variable `x'
      snow.c:1463: warning: unused variable `y'
      snow.c: In function `encode_subband_X':
      snow.c:1616: warning: unused variable `level'
      snow.c:1617: warning: unused variable `w'
      snow.c:1618: warning: unused variable `h'
      snow.c:1619: warning: unused variable `x'
      snow.c:1619: warning: unused variable `y'
      snow.c: In function `encode_subband_c0run':
      snow.c:1745: warning: unused variable `level'
      snow.c: In function `predict_plane':
      snow.c:2205: warning: initialization discards qualifiers from pointer target type
      snow.c: In function `quantize':
      snow.c:2246: warning: unused variable `tend'
      snow.c:2246: warning: unused variable `tstart'
      snow.c: In function `dequantize':
      snow.c:2303: warning: unused variable `level'
      snow.c: In function `common_init':
      snow.c:2490: warning: assignment from incompatible pointer type
      snow.c:2491: warning: assignment from incompatible pointer type
      snow.c:2492: warning: assignment from incompatible pointer type
      snow.c:2493: warning: assignment from incompatible pointer type
      snow.c:2456: warning: unused variable `width'
      snow.c:2456: warning: unused variable `height'
      snow.c: In function `calculate_vissual_weight':
      snow.c:2567: warning: unused variable `i'
      snow.c: In function `encode_init':
      snow.c:2594: warning: unused variable `i'
      snow.c:2595: warning: unused variable `level'
      snow.c:2595: warning: unused variable `orientation'
      snow.c: In function `encode_frame':
      snow.c:2814: warning: unused variable `dir'
      snow.c:2879: warning: unused variable `bits'
      snow.c:2668: warning: unused variable `used_count'
      snow.c:2669: warning: unused variable `log2_threshold'
      snow.c: In function `decode_frame':
      snow.c:2999: warning: unused variable `width'
      snow.c:3000: warning: unused variable `height'
      snow.c:3003: warning: unused variable `log2_threshold'
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o tscc.o tscc.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o h263.o h263.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o h261.o h261.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o msmpeg4.o msmpeg4.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o h263dec.o h263dec.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o svq1.o svq1.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o rv10.o rv10.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o wmadec.o wmadec.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o indeo3.o indeo3.c
      gcc -O3 -g -Wall  -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mp3lameaudio.o mp3lameaudio.c
      mp3lameaudio.c:27:23: lame/lame.h: No such file or directory
      mp3lameaudio.c:31: syntax error before "lame_global_flags"
      mp3lameaudio.c:31: warning: no semicolon at end of struct or union
      mp3lameaudio.c:35: syntax error before '}' token
      mp3lameaudio.c:35: warning: type defaults to `int' in declaration of `Mp3AudioContext'
      mp3lameaudio.c:35: warning: data definition has no type or storage class
      mp3lameaudio.c: In function `MP3lame_encode_init':
      mp3lameaudio.c:39: `s' undeclared (first use in this function)
      mp3lameaudio.c:39: (Each undeclared identifier is reported only once
      mp3lameaudio.c:39: for each function it appears in.)
      mp3lameaudio.c:46: warning: implicit declaration of function `lame_init'
      mp3lameaudio.c:48: warning: implicit declaration of function `lame_set_in_samplerate'
      mp3lameaudio.c:49: warning: implicit declaration of function `lame_set_out_samplerate'
      mp3lameaudio.c:50: warning: implicit declaration of function `lame_set_num_channels'
      mp3lameaudio.c:52: warning: implicit declaration of function `lame_set_quality'
      mp3lameaudio.c:54: warning: implicit declaration of function `lame_set_mode'
      mp3lameaudio.c:54: `JOINT_STEREO' undeclared (first use in this function)
      mp3lameaudio.c:55: warning: implicit declaration of function `lame_set_brate'
      mp3lameaudio.c:56: warning: implicit declaration of function `lame_set_bWriteVbrTag'
      mp3lameaudio.c:57: warning: implicit declaration of function `lame_init_params'
      mp3lameaudio.c:60: warning: implicit declaration of function `lame_get_framesize'
      mp3lameaudio.c:68: warning: implicit declaration of function `lame_close'
      mp3lameaudio.c: In function `MP3lame_encode_frame':
      mp3lameaudio.c:134: `s' undeclared (first use in this function)
      mp3lameaudio.c:142: warning: implicit declaration of function `lame_encode_buffer_interleaved'
      mp3lameaudio.c:150: warning: implicit declaration of function `lame_encode_buffer'
      mp3lameaudio.c:160: warning: implicit declaration of function `lame_encode_flush'
      mp3lameaudio.c:135: warning: unused variable `i'
      mp3lameaudio.c: In function `MP3lame_encode_close':
      mp3lameaudio.c:196: `s' undeclared (first use in this function)
      make[1]: *** [mp3lameaudio.o] Error 1
      make[1]: Leaving directory `/data/setup/xvidcap/xvidcap-1.1.4/ffmpeg/libavcodec'make: *** [lib] Error 2
      checking for img_convert in -lavcodec... (static?) ... no
      checking for img_convert in -lavcodec... no
      checking for avienc_init in -lavformat... no
      Checking for GTK2 version ... 2.2.4
      checking for pthread_mutex_init in -lpthread... yes
      checking for egrep... grep -E
      checking for ANSI C header files... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking fcntl.h usability... yes
      checking fcntl.h presence... yes
      checking for fcntl.h... yes
      checking limits.h usability... yes
      checking limits.h presence... yes
      checking for limits.h... yes
      checking for stdlib.h... (cached) yes
      checking for string.h... (cached) yes
      checking sys/ioctl.h usability... yes
      checking sys/ioctl.h presence... yes
      checking for sys/ioctl.h... yes
      checking sys/time.h usability... yes
      checking sys/time.h presence... yes
      checking for sys/time.h... yes
      checking for unistd.h... (cached) yes
      checking zlib.h usability... yes
      checking zlib.h presence... yes
      checking for zlib.h... yes
      checking sys/soundcard.h usability... yes
      checking sys/soundcard.h presence... yes
      checking for sys/soundcard.h... yes
      checking for stdint.h... (cached) yes
      checking ctype.h usability... yes
      checking ctype.h presence... yes
      checking for ctype.h... yes
      checking for an ANSI C-conforming const... yes
      checking whether time.h and sys/time.h may both be included... yes
      checking whether gcc needs -traditional... no
      checking for stdlib.h... (cached) yes
      checking for GNU libc compatible malloc... yes
      checking for stdlib.h... (cached) yes
      checking for unistd.h... (cached) yes
      checking for getpagesize... yes
      checking for working mmap... yes
      checking for stdlib.h... (cached) yes
      checking for GNU libc compatible realloc... yes
      checking for fdatasync... yes
      checking for gettimeofday... yes
      checking for memmove... yes
      checking for memset... yes
      checking for munmap... yes
      checking for strcasecmp... yes
      checking for strchr... yes
      checking for strdup... yes
      checking for strstr... yes
      checking for getopt_long... yes
      configure: creating ./config.status
      config.status: creating Makefile
      config.status: creating src/Makefile
      config.status: creating gt/Makefile
      config.status: creating Xw/Makefile
      config.status: creating config.h
      config.status: executing depfiles commands

       
    • Alright then, there's two answers:
      short: install lame libraries and development files (on Debian
      those would be the packages liblame0 and liblame-dev)

      long: 1.1.4 brings a new audio codec MP3 and you can see further
      up the configure output that compilation of ffmpeg fails. This
      results in an improperly set up ffmpeg subtree.

      Please file a bug against 1.1.4 so that I'll remember to fix this for
      the release of 1.1.4

      Karl.