[Sumover-dev] Vic H264 compilation issues

Douglas Kosovic douglask at itee.uq.edu.au
Thu Mar 12 14:19:46 GMT 2009


FFmpeg 0.5 was released two days ago, the first time in a very long time 
  that they actually made a release, perhaps we might want to consider 
targeting that instead of a SVN version.

To get x264 to do the right thing as a user with no write privileges to 
/usr/local, I was doing the following to build VIC RPMs:

./configure --enable-ipv6 --enable-gpl
(cd x264; ./configure --prefix=`dirname $PWD`/x264; make; make install)
(cd ffmpeg; make)
make

I still need to do that with x264 and the latest checkin in the mpeg4 
VIC branch, although I haven't tried with newer versions of ffmpeg and x264.


Doug


Piers O'Hanlon wrote:
> Hi Andrew,
> 
> Thanks for your feedback. The issues you were seeing were largely down to
> changes in ffmpeg - it is a fast changing library. However there was also an
> error in vic' s configure script which I have now corrected - VIC's
> configure script calls ffmpeg's configure script which sets things up so
> that the ffmpeg libraries are installed into the local directory - thus not
> needed root access. I've updated the repository to reflect the updates.
> 
> If you want use tcl8.5 then you can configure VIC to use it by calling
> configure in the following way:
> ./configure --with-tk=/usr/share/tcltk/tk8.5/tkConfig.sh
> --with-tcl=/usr/share/tcltk/tcl8.5/tclConfig.sh
> 
> I'm not aware of VIC's dependence on openssl - where do you see that?
> 
> Thanks,
> 
> Piers.
> 
> 2009/3/9 Andrew Ford <acf0659 at rit.edu>
> 
>> Hi,
>>
>> When I try the --enable-gpl configure option, it seems to fail on trying to
>> checkout ffmpeg like so:
>>
>> checking out HEAD of ffmpeg from  svn://svn.mplayerhq.hu/ffmpeg/trunk...
>> Configuring ffmpeg...
>> ./configure: line 4961: cd: ffmpeg: No such file or directory
>>
>> And then it apparently restarts, gets an error on Tcl/Tk that doesn't
>> happen on the first pass (checking for a compatible version of Tk... test:
>> 4770: ==: unexpected operator) and eventually fails. I tried checking it out
>> myself and setting the path manually (adding --disable-ffmpeg-co), but the
>> directory structure doesn't match what the script is looking for (most
>> recent svn has libavcodec etc in subdirectories) so I ended up just using
>> the ffmpeg version I had from Ubuntu packages.
>>
>> After that, I had to get libpostproc-dev and libswscale-dev to round out
>> ffmpeg, then yasm to compile x264 (side note: had to start doing sudo make
>> at this point since x264's makefile wants to install). Then I had to change
>> line 6 in codec/ffmpeg_codec.h: it was looking for avcodec.h in libavcodec/,
>> whereas the ffmpeg version I have installed just has them in
>> /usr/include/ffmpeg - there's no -I/usr/include/ffmpeg on that g++ call
>> (despite having had configured with --with-ffmpeginc=/usr/include) so I had
>> to change the include to ffmpeg/avcodec.h. Same issue for
>> codec/x264encoder.cpp, codec/rtp_h264_depayloader, render/color-swscale.cpp
>> and similar for video/deinterlace.h where I had to change libpostproc/ to
>> postproc/. Side note: do you think this is just an Ubuntu packaging quirk,
>> or did ffmpeg change its whole directory structure at one time?
>>
>> Lastly I had to move libx264.a from x264/ to x264/lib (linker was expecting
>> the latter, presumably the newer version of x264 changed it), and then it
>> finally finished.
>>
>> Aside from ffmpeg nonsense I've only had a couple other minor compiling
>> issues. Either the original vic branch or the 264 branch needed libssl-dev -
>> a pretty obvious dependency in retrospect, but it's not listed on the AVATS
>> wiki page (http://mediatools.cs.ucl.ac.uk/nets/mmedia/wiki/SvnDev). Also I
>> had an issue with getting the 264 branch to use Tcl/Tk version 8.5 - I'm not
>> sure if that's supported behavior, but it seemed to be ignoring the
>> configure option.
>>
>> --Andrew
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Sumover-dev mailing list
> Sumover-dev at cs.ucl.ac.uk
> http://oakham.cs.ucl.ac.uk/mailman/listinfo/sumover-dev




More information about the Sumover-dev mailing list