Bindings generator and Qt 4.5

Mark Kretschmann kretschmann at kde.org
Thu Oct 9 11:07:37 CEST 2008


Ahoy,

Thiago just stopped by on #amarok to tell us that the QtScript
bindings generator won't work with Qt 4.5:


11:02 < thiago> heads-up: the QtScript binding generator that amarok
has in its source code does *not* work with Qt 4.5
11:03 < thiago> amarok will not compile with Qt 4.5
11:03 <@markey> ouch
11:04 <@markey> what to do about it?
11:04 < thiago> not use the bindings generator
11:04 < thiago> commit the generated bindings to SVN
11:04 < thiago> the bindings built with 4.4 will work in 4.5
11:04 < thiago> error was:
11:04 < thiago> http://pastebin.ca/1223579
11:05 < thiago> faulty lines are:
11:05 < thiago>         if ((qMetaTypeId<QLatin1String>() ==
context->argument(0).toVariant().userType())) {
11:05 < thiago>             QLatin1String _q_arg0 =
qscriptvalue_cast<QLatin1String>(context->argument(0));
11:05 < thiago> qscriptvalue_cast on QLatin1String will not work
11:05 < thiago> it has to be QString
11:06 < thiago> committing the generated code to SVN will also make a
lot of people happy, since the generating easily takes over 50% of the
compile time for extragear/multimedia

-- 
Mark Kretschmann
Amarok Developer
www.kde.org - amarok.kde.org


More information about the Amarok-devel mailing list