[mythtvnz] DVB-T MythTV patches

Paul Kendall paul at kcbbs.gen.nz
Tue Jul 8 10:52:27 BST 2008


On Tuesday 08 July 2008 21:35:54 Craig Whitmore wrote:
> > > I'll try to post a patch of my further tweaked myth source if I get a
> > > chance this evening.
> > >
> > > Carey
> >
> > Sorry for all this confusion, I must have had a few problems with my
> > patching. I've created a script that does all the patching and then
> > applies them all before uploading them to my site, so it should all be ok
> > now.
>
> A few problems.
>
> Have to remove -FPIC -fPIC in libavcodec
>
> gets to el_Processor.cpp and gives
>
> ccache g++ -c -pipe -g -march=pentiumpro -fomit-frame-pointer -O3 -Wall
> -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor
> -D__STDC_CONSTANT_MACROS -fPIC -DPIC -w -D_REENTRANT  -DMMX -Di386
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I.
> -I/usr/local/include -I/usr/include -I../libavcodec -I../libmyth
> -I../libavutil -I/usr/include/qt3 -o el_processor.o el_processor.cpp
> In file included from el_processor.cpp:30:
> ../libavcodec/dsputil.h: In function ‘void copy_block2(uint8_t*,
> uint8_t*, int, int, int)’:
> ../libavcodec/dsputil.h:718: error: ‘AV_RN16’ was not declared in this
> scope
> ../libavcodec/dsputil.h:718: error: ‘AV_WN16’ was not declared in this
> scope
> ../libavcodec/dsputil.h: In function ‘void copy_block4(uint8_t*,
> uint8_t*, int, int, int)’:
> ../libavcodec/dsputil.h:729: error: ‘AV_RN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h:729: error: ‘AV_WN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h: In function ‘void copy_block8(uint8_t*,
> uint8_t*, int, int, int)’:
> ../libavcodec/dsputil.h:740: error: ‘AV_RN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h:740: error: ‘AV_WN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h: In function ‘void copy_block9(uint8_t*,
> uint8_t*, int, int, int)’:
> ../libavcodec/dsputil.h:752: error: ‘AV_RN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h:752: error: ‘AV_WN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h: In function ‘void copy_block16(uint8_t*,
> uint8_t*, int, int, int)’:
> ../libavcodec/dsputil.h:765: error: ‘AV_RN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h:765: error: ‘AV_WN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h: In function ‘void copy_block17(uint8_t*,
> uint8_t*, int, int, int)’:
> ../libavcodec/dsputil.h:779: error: ‘AV_RN32’ was not declared in this
> scope
> ../libavcodec/dsputil.h:779: error: ‘AV_WN32’ was not declared in this
> scope
> make[2]: *** [el_processor.o] Error 1
>

I also have to remove those flags for some MMX files, but I think this is just 
a known problem with ffmpeg & MMX. What I do is manually compile the files 
which cause the problem, by running the gcc line by hand (without the -fPIC 
& -DPIC) then carry on and let the build continue. The 3 files I have a 
problem with are i386/dsputil_mmx.c, i386/cavsdsp_mmx.c & i386/flacdsp_mmx.c

Another option is to disable MMX! But I think we need the boost that it 
gives :-)

Cheers,
Paul



More information about the mythtvnz mailing list