[mythtv] Can't compile tv.cpp

Daniel Kristjansson danielk at cuymedia.net
Sat Sep 24 16:42:52 UTC 2005

On Sat, 2005-09-24 at 17:51 +0200, Adam Egger wrote:
> Hi -dev, hi Daniel,
> I just tried to compile r7307 with the tuning-patch-v6 on my
> debian64/gcc-4.0. Here are my configure settings:
> ./configure --enable-proc-opt --prefix=/usr --disable-audio-arts
> --disable-audio-jack --disable-joystick-menu --disable-firewire
> --disable-ivtv --enable-dvb --enable-dvb-eit --disable-xrandr
> --disable-altivec --enable-memalign-hack --compile-type=profile

> tv_rec.h: In member function 'QString TuningRequest::toString() const':
> tv_rec.h:123: error: cast from 'ProgramInfo*' to 'uint' loses precision

It is unfortunate that this is an error and not a warning...

Anyway, replace that function with this:

    QString toString(void) const
        return QString("Program(%1) channel(%2) input(%3) flags(%4)")
            .arg((program != 0) ? "yes" : "no").arg(channel).arg(input)

-- Daniel

More information about the mythtv-dev mailing list