How to compile in fedora 4

  • crotalus

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

      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

    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
      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 install

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

    PS: I made an spec file if anyone is interested.

    /Paulo Roma.

    • If you check out ffmpeg as of April 24 2005, then you can use standard tools on Fedora core 4 (updated as of Jan 30 2006).
      Go into the xvid directory xvidcap-1.1.4pre2.
      To check out ffmpeg use,
      cvs co "-D" "24 Apr 2005" ffmpeg

      to configure ffmpeg,
      ./configure  --disable-ffserver   --disable-ffplay  --enable-mp3lame
      and then build using
      then save the exiting ffmpeg headers and libraries ( if you have a newer version installed) and copy the libraries/headers from this build.
      Now you can configure xvid using
      ./configure --with-gtk2 --with-forced-embedded-ffmpeg
      and the build using
      make gvidcap
      it will be placed in src directory.