[mythtv] CVS Compile errors - QT related?

Ivor Hewitt ivor at ivor.org
Sat Jan 15 05:31:38 EST 2005


On Saturday 15 Jan 2005 03:12, Chris Birkinshaw wrote:
> When compiling the latest CVS I get the following:
>
> mythwidgets.cpp: In member function `void MythListBox::setCurrentItem(const
>    QString&, bool, bool)':
> mythwidgets.cpp:1053: no matching function for call to
> `QString::startsWith( const QString&, bool&)'
> /usr/lib/qt-3.1/include/qstring.h:640: candidates are: bool
>    QString::startsWith(const QString&) const
> make[2]: *** [mythwidgets.o] Error 1
> make[2]: Leaving directory `/root/mythtv-cvs/mythtv/libs/libmyth'
> make[1]: *** [sub-libmyth] Error 2
> make[1]: Leaving directory `/root/mythtv-cvs/mythtv/libs'
> make: *** [sub-libs] Error 2
>
>
> Does anyone know what is causing this? (CVS compiled fine for me in
> November.)
>
QT3.1 doesn't have string.startsWith(string,bool)
the bool option sets case insensitive searching.

You could do string.upper() on both the strings first and then use 
string.startsWith(string) instead.

-- 
Ivor Hewitt.
http://www.ivor.it - tech | http://www.ivor.org - hedge


More information about the mythtv-dev mailing list