[mythtv] Building without X dependancies...

Nigel Pearson nigel at ind.tansu.com.au
Mon Feb 5 23:09:00 UTC 2007


> 2. Compiling now complains about:
>
> ../../libs/libmyth/libmyth-0.20.so: undefined reference to
> `ScreenSaverX11::ScreenSaverX11()'
>
>
> It seems that screensaver.cpp instantiates ScreenSaverX11 due
> to Q_WS_X11 being defined - picked up from a system header file.
>
> I hacked this to instantiate ScreenSaverNull instead and it
> compiled fine, but still has a dependence on X.
>
>
> Does anyone have any ideas?


Probably libmyth/util-x11.cpp


Try changing any Q_WS_X11 to something like USING_X11
in all these files:



% find . -name \*.cpp -exec egrep Q_WS_X11 {} \; -print
#undef Q_WS_X11 /* Even if we have an X server in WIN32, don't use  
X11... */
#if defined(Q_WS_X11)
#if defined(Q_WS_X11)
./libs/libmyth/screensaver.cpp
#include <qglobal.h> // for Q_WS_X11 define
#ifdef Q_WS_X11
#endif // Q_WS_X11
#ifdef Q_WS_X11
#endif // Q_WS_X11
#ifdef Q_WS_X11
#else // if !Q_WS_X11
#endif // !Q_WS_X11
#ifdef Q_WS_X11
#ifdef Q_WS_X11
#endif // Q_WS_X11
./libs/libmyth/util-x11.cpp
#ifdef Q_WS_X11
#ifdef Q_WS_X11
./programs/mythfrontend/main.cpp
#ifdef Q_WS_X11
./programs/mythtv/main.cpp
#ifdef Q_WS_X11
#ifdef Q_WS_X11
./programs/mythtv-setup/main.cpp

--
Nigel Pearson, nigel at ind.tansu.com.au|"Things  you  own
Telstra Net. Eng., Sydney, Australia | end up owning you"
Office: 9202 3900    Fax:  9261 3912 |      Tyler,
Mobile: 0408 664435  Home: 9792 6998 |    Fight Club




More information about the mythtv-dev mailing list