Fedora compile problem

Help
2005-09-02
2013-04-24
  • Hi,

    Im trying to get this running on my system and having some trouble.
    ./configure processes without problems
    but make doesnt seem to finish

    This is the section of make and make -d that seems to be having troubles.  Any idea what the problem might be? Or more information I could give that would be helpful?

    if I run make:

    make[2]: Entering directory `/xvidcap/xvidcap-1.1.4pre2/src'
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/X11R6/include -DVERSION=\"1.1.4\"     -g -O2 -MT xvidcap-main.o -MD -MP -MF ".deps/xvidcap-main.Tpo" \   -c -o xvidcap-main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/xvidcap-main.Tpo" ".deps/xvidcap-main.Po"; \ else rm -f ".deps/xvidcap-main.Tpo"; exit 1; \ fi
    In file included from main.c:45:
    codecs.h:12:28: error: ffmpeg/avcodec.h: No such file or directory
    codecs.h:13:29: error: ffmpeg/avformat.h: No such file or directory
    main.c: In function main:
    main.c:550: error: CAP_AVI undeclared (first use in this function)
    main.c:550: error: (Each undeclared identifier is reported only once
    main.c:550: error: for each function it appears in.)
    make[2]: *** [xvidcap-main.o] Error 1
    make[2]: Leaving directory `/xvidcap/xvidcap-1.1.4pre2/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/xvidcap/xvidcap-1.1.4pre2'
    make: *** [all] Error 2

    if I run make -d:

    make[2]: Entering directory `/xvidcap/xvidcap-1.1.4pre2/src'
    if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/X11R6/include -DVERSION=\"1.1.4\"     -g -O2 -MT xvidcap-main.o -MD -MP -MF ".deps/xvidcap-main.Tpo" \   -c -o xvidcap-main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/xvidcap-main.Tpo" ".deps/xvidcap-main.Po"; \ else rm -f ".deps/xvidcap-main.Tpo"; exit 1; \ fi
    Putting child 0x0886d7b8 (xvidcap-main.o) PID 17942 on the chain.
    Live child 0x0886d7b8 (xvidcap-main.o) PID 17942
    In file included from main.c:45:
    codecs.h:12:28: error: ffmpeg/avcodec.h: No such file or directory
    codecs.h:13:29: error: ffmpeg/avformat.h: No such file or directory
    main.c: In function main:
    main.c:550: error: CAP_AVI undeclared (first use in this function)
    main.c:550: error: (Each undeclared identifier is reported only once
    main.c:550: error: for each function it appears in.)
    Got a SIGCHLD; 1 unreaped children.
    Reaping losing child 0x0886d7b8 PID 17942
    make[2]: *** [xvidcap-main.o] Error 1
    Removing child 0x0886d7b8 PID 17942 from chain.
    make[2]: Leaving directory `/xvidcap/xvidcap-1.1.4pre2/src'
    Got a SIGCHLD; 1 unreaped children.
    Reaping losing child 0x0a02ae40 PID 17927
    make[1]: *** [all-recursive] Error 1
    Removing child 0x0a02ae40 PID 17927 from chain.
    make[1]: Leaving directory `/xvidcap/xvidcap-1.1.4pre2'
    Got a SIGCHLD; 1 unreaped children.
    Reaping losing child 0x08212dc8 PID 17926
    make: *** [all] Error 2
    Removing child 0x08212dc8 PID 17926 from chain.

     
    • Hi,
      there was probably smth. wrong during configure. Could you verify this by extracting the tarball to a fresh directory, doing "./configure --with-gtk2 --with-forced-embedded-ffmpeg >myconfig.log 2>&1"

      Then put the file myconfig.log on a web-server somewhere where I can download it and post the URL here (or send the file to me in a private email).

      Cheers,

      Karl.

       
    • Hi,

      note this:
      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

      and:
      Creating config.mak and config.h
      make -C libavcodec all
      make[1]: Entering directory `/xvidcap/xvidcap-1.1.4pre2/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
      In file included from avcodec.h:14,
                       from common.c:28:
      common.h:67: error: array type has incomplete element type
      common.h:71: error: array type has incomplete element type
      make[1]: *** [common.o] Error 1
      make[1]: Leaving directory `/xvidcap/xvidcap-1.1.4pre2/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

      then check the Release Notes saying you need libmp3lame (yes, the release will allow to build without mp3 support or abort here), install libmp3lame and the development package.

      Now, try again in a freshly extracted build directory.

      HTH,

      Karl.

       
    • I have lame installed already.  When I try to install

      warning: libmp3lame-3.96.1-4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 16a61572
      Preparing...                ########################################### [100%]
              file /usr/lib/libmp3lame.so.0.0.0 from install of libmp3lame-3.96.1-4 conflicts with file from package lame-3.96.1-2.2.fc4

       
    • Alright then, so you have the library file....
      Do you also have the include files /usr/include/lame/lame.h?

      You might want to try building ffmpeg yourself. Go to the ffmpeg subdirectory of xvidcap and do ./configure and make there. Make sure you save the configure output for later. If the build works, I'll send you the configure line xvidcap uses and we can try that ... then research the differences.

      HTH,

      Karl.

       
    • I've tried the above hints to get gvidcap to build on FC4, but no luck. I've configured --with-gtk2 and --with-forced-embedded-ffmpeg, and deleted the symlinks, but get these errors:

      xtoffmpeg.c: In function do_audio_out:
      xtoffmpeg.c:167: warning: assignment from incompatible pointer type
      xtoffmpeg.c:172: error: request for member channels in something not a structure or union
      xtoffmpeg.c: In function do_video_out:
      xtoffmpeg.c:219: warning: assignment from incompatible pointer type
      xtoffmpeg.c: In function capture_audio_thread:
      xtoffmpeg.c:309: warning: passing argument 1 of avcodec_decode_audio from incompatible pointer type
      xtoffmpeg.c:326: error: request for member channels in something not a structure or union
      xtoffmpeg.c: In function XImageToFFMPEG:
      xtoffmpeg.c:655: warning: assignment from incompatible pointer type
      xtoffmpeg.c:669: error: struct AVCodecContext has no member named frame_ratextoffmpeg.c:670: error: struct AVCodecContext has no member named frame_rate_base
      xtoffmpeg.c:680: error: struct AVFormatParameters has no member named frame_rate

      I have a stock ffmpeg installed, if that helps (ffmpeg-0.4.9-0.lvn.0.18.20050801.4). Anything I can do to force a build?

       
      • Hi,
        this basically means you've got the wrong ffmpeg.
        It appears that there's been another API change from the version bundled with xvidcap to the one you're using.

        Therefore, make sure you're configuring with --with-forced-embedded-ffmpeg ...
        do EXACTLY as written in the RELEASENOTES_READMEFIRST

        HTH,

        Karl.

         
    • crotalus
      crotalus
      2006-01-06

      This is for compiling xvidcap-1.1.3-p7.
      I did not have time to fix xvidcap-1.4.pre2

      There are 3 problems:

      First change the name of directory
        xvidcap-1.1.3-p7 to xvidcap-1.1.3p7
        to be easier to generate an rpm:

        tar -zxvf xvidcap-1.1.3-p7.tar.gz
        mv xvidcap-1.1.3-p7 xvidcap-1.1.3p7
        tar -zcvf xvidcap-1.1.3p7.tar.gz
           ./xvidcap-1.1.3p7

      Second copy common.h to ffmpeg:
        cd xvidcap-1.1.3p7/ffmpeg/libavcodec
        cp common.h ..

      Third, use "CC" and NOT "cc" for compiling ffmeg:
        cd ffmpeg
        in file "configure" change:
        echo "CC=$cc" >> config.mak
        to
        echo "CC=$CC" >> config.mak

      Then use:
        setenv CC gcc32
        or configure passing CC=gcc32
        configure --with-forced-embedded-ffmpeg
          --enable-static-libs=avcodec \     --with-gtk2 CC=gcc32 \   make
        make install

      That should do the job!! Sound and video working as they should.

      /Paulo Roma.

       
    • gtk2_fileselector.c: In function `create_filechooserdialog1':
      gtk2_fileselector.c:58: error: `GTK_FILE_CHOOSER_ACTION_SAVE' undeclared (first use in this function)
      gtk2_fileselector.c:58: error: (Each undeclared identifier is reported only once
      gtk2_fileselector.c:58: error: for each function it appears in.)
      gtk2_fileselector.c:58: warning: assignment makes pointer from integer without a cast
      make[1]: *** [gvidcap-gtk2_fileselector.o] Error 1
      make[1]: Leaving directory `/home/fred/downloads/xvidcap-1.1.4pre2/src'
      make: *** [gvidcap] Error 1

       
    • gtk2_fileselector.c: In function `create_filechooserdialog1':
      gtk2_fileselector.c:58: error: `GTK_FILE_CHOOSER_ACTION_SAVE' undeclared (first use in this function)
      gtk2_fileselector.c:58: error: (Each undeclared identifier is reported only once
      gtk2_fileselector.c:58: error: for each function it appears in.)
      gtk2_fileselector.c:58: warning: assignment makes pointer from integer without a cast
      make[1]: *** [gvidcap-gtk2_fileselector.o] Error 1
      make[1]: Leaving directory `/home/fred/downloads/xvidcap-1.1.4pre2/src'
      make: *** [gvidcap] Error 1