[mythtv] Re: Problem building latest cvs for mythmusic
Stefan Frank
sfr+lists at 6913304088794.gnuu.de
Sat Dec 20 05:20:38 EST 2003
Vinton Coffman <vintonc at redzone.com> writes:
Hi Vinton,
that's due to a patch of mine that Isaac commited yesterday.
.
.
.
>
> .... edited down for posting
>
> gcc -c -pipe -Wall -W -O3 -march=athlon-xp -fomit-frame-pointer
> -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG
> -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.1/mkspecs/default
> -I. -I/usr/local/include -I/usr/include/cdda -I/usr/lib/qt-3.1/include
> -I/usr/X11R6/include -o resample.o resample.c
> g++ -c -pipe -Wall -W -O3 -march=athlon-xp -fomit-frame-pointer
> -I/usr/include/SDL -D_REENTRANT -D_REENTRANT -fPIC -D_GNU_SOURCE
> -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN
> -I/usr/lib/qt-3.1/mkspecs/default -I. -I/usr/local/include
> -I/usr/include/cdda -I/usr/lib/qt-3.1/include -I/usr/X11R6/include -o
> dbcheck.o dbcheck.cpp
> dbcheck.cpp: In function `void UpgradeMusicDatabaseSchema()':
> dbcheck.cpp:115: call of overloaded `arg(QString&, QString&, QString&)'
> is
> ambiguous
> /usr/lib/qt-3.1/include/qstring.h:418: candidates are: QString
> QString::arg(long int, int = 0, int = 10) const <near match>
> /usr/lib/qt-3.1/include/qstring.h:419: QString
> QString::arg(long unsigned int, int = 0, int = 10) const <near match>
> /usr/lib/qt-3.1/include/qstring.h:875: QString
> QString::arg(int, int = 0, int = 10) const <near match>
> /usr/lib/qt-3.1/include/qstring.h:878: QString
> QString::arg(unsigned int, int = 0, int = 10) const <near match>
> /usr/lib/qt-3.1/include/qstring.h:881: QString
> QString::arg(short int, int = 0, int = 10) const <near match>
> /usr/lib/qt-3.1/include/qstring.h:884: QString
> QString::arg(short unsigned int, int = 0, int = 10) const <near
> match>
> make[1]: *** [dbcheck.o] Error 1
> make[1]: Leaving directory `/root/mythmusic/mythmusic/mythmusic'
> make: *** [sub-mythmusic] Error 2
> [root at localhost mythmusic]#
>
Seems it's yet another compatibilty issue between qt 3.1 and 3.2.
Try the attached patch, i _think_ it should fix your problem, but i
can't really test it as i'm using qt 3.2.
-------------- next part --------------
--- mythmusic-local/mythmusic/dbcheck.cpp.keep 2003-12-18 17:42:11.000000000 +0100
+++ mythmusic-local/mythmusic/dbcheck.cpp 2003-12-20 11:15:55.000000000 +0100
@@ -112,7 +112,7 @@
modify.exec(QString("UPDATE musicmetadata SET "
"filename = \"%1\" "
"WHERE filename = \"%2\" AND intid = %3;")
- .arg(newname, name, intid));
+ .arg(newname).arg(name).arg(intid));
if (modify.isActive())
i += modify.numRowsAffected();
}
-------------- next part --------------
HTH, Stefan
--
It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg.
-- Thomas Jefferson
More information about the mythtv-dev
mailing list