[mythtv-commits] Ticket #4982: Compilation of MythTV fails with recent ffmpeg installed

MythTV mythtv at cvs.mythtv.org
Mon Mar 17 04:20:23 UTC 2008


#4982: Compilation of MythTV fails with recent ffmpeg installed
-----------------------------------------------+----------------------------
 Reporter:  Andreas <miscdreas at launchnet.com>  |       Owner:  ijr    
     Type:  defect                             |      Status:  new    
 Priority:  minor                              |   Milestone:  unknown
Component:  mythtv                             |     Version:  head   
 Severity:  low                                |     Mlocked:  0      
-----------------------------------------------+----------------------------
 I tried to compile revision 16597 with a newer ffmpeg (I had revision
 12442) already installed on my system and if failed with this error
 message:

 {{{
 In file included from mpeg/pespacket.cpp:9:
 /usr/include/glib-2.0/../libavcodec/avcodec.h:247:5: error: missing binary
 operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:305:5: error: missing binary
 operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:420:5: error: missing binary
 operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:994:5: error: missing binary
 operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:1307:5: error: missing
 binary operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:2294:5: error: missing
 binary operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:2461:5: error: missing
 binary operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:2478:5: error: missing
 binary operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:2837:5: error: missing
 binary operator before token "("
 /usr/include/glib-2.0/../libavcodec/avcodec.h:2937:5: error: missing
 binary operator before token "("
 In file included from mpeg/pespacket.cpp:10:
 /usr/include/glib-2.0/../libavformat/avformat.h:155:5: error: missing
 binary operator before token "("
 /usr/include/glib-2.0/../libavformat/avformat.h:524:5: error: missing
 binary operator before token "("
 mpeg/pespacket.cpp: In member function ‘uint PESPacket::CalcCRC() const’:
 mpeg/pespacket.cpp:160: error: ‘av_crc04C11DB7’ was not declared in this
 scope
 }}}

 When I move the "offending" header files out of the way, mythtv compiles
 without an error.

 It seems like two things come together here:

 ffmpeg recently changed the location of their header files from
 {systempath}/include/ffmpeg to
 {systempath}/include/libav(codec|device|format|util)

 The systemwide installed headerfile avcodec.h takes precedence over
 mythtv's own avcodec.h in mythtv/libs/libavcodec.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4982>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list