[mythtv] MythTV cross-compilation - QT compiling error

Gerhard Gappmeier gerhard.gappmeier at ascolab.com
Thu Apr 5 15:35:39 UTC 2007


Hi

in general such an error occurs when a include file is missing or a
define is missing.
Was there a missing file error before?
Do a grep for qt_xdisplay and look if there is a #ifdef XXX around it
which prevents finding the function.

Maybe QMAKESPEC is not set right for your cross compiled Qt.

Are you using Qt3?
In Qt4 this version does not exist anymore.
QX11Info::display() would be a replacement for that.

Nevertheless, for MythTv you need Qt3.

regards,
Gerhard.

Hagit Guy schrieb:
>
> Hi all,
>
>  
>
> I'm trying to cross-compile mythtv-0.20 for a MIPS based machine.
>
> I've already managed to cross-compile Qt/Embedded 3.3.8 and X11 for MIPS.
>
> My $QTDIR environment variable points to my cross compiled Qt location
> and my path include $QTDIR/bin.
>
> My mythtv configure line is: configure --arch=mipsel --x11-path=/<the
> location of my cross compiled X11>/
>
>  
>
> After configure is done, I run make and I get:
>
>  
>
> screensaver-x11.cpp: In constructor `ScreenSaverX11::ScreenSaverX11()':
>
> screensaver-x11.cpp:51: error: `qt_xdisplay' undeclared (first use
> this function)
>
> screensaver-x11.cpp:51: error: (Each undeclared identifier is reported
> only once for each function it appears in.)
>
> screensaver-x11.cpp: In member function `virtual void
> ScreenSaverX11::Disable()':
>
> screensaver-x11.cpp:90: error: `qt_xdisplay' undeclared (first use
> this function)
>
> screensaver-x11.cpp: In member function `virtual void
> ScreenSaverX11::Restore()':
>
> screensaver-x11.cpp:128: error: `qt_xdisplay' undeclared (first use
> this function)
>
> screensaver-x11.cpp: In member function `virtual void
> ScreenSaverX11::Reset()':
>
> screensaver-x11.cpp:148: error: `qt_xdisplay' undeclared (first use
> this function)
>
> screensaver-x11.cpp: In member function `virtual bool
> ScreenSaverX11::Asleep()':
>
> screensaver-x11.cpp:172: error: `qt_xdisplay' undeclared (first use
> this function)
>
> make[2]: *** [screensaver-x11.o] Error 1
>
>  
>
>  
>
> What am I doing wrong?
>
>  
>
> Thanks in advance.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20070405/d753793e/attachment.htm 


More information about the mythtv-dev mailing list