RESOLVED DUPLICATE of bug 52469 34519
[Qt] Applications using QtWebKit fail to build if Qt was built with -no-script
https://bugs.webkit.org/show_bug.cgi?id=34519
Summary [Qt] Applications using QtWebKit fail to build if Qt was built with -no-script
Bernhard Rosenkraenzer
Reported 2010-02-03 04:17:58 PST
If Qt was built with -no-script, applications using QtWebKit (which does work with -no-script) fail to build because qwebframe.h unconditionally does #include <QtScript/qscriptengine.h> (which doesn't exist in a -no-script build).
Attachments
Fix (1.43 KB, patch)
2010-02-03 04:29 PST, Bernhard Rosenkraenzer
hausmann: review-
hausmann: commit-queue-
Bernhard Rosenkraenzer
Comment 1 2010-02-03 04:29:51 PST
Created attachment 48013 [details] Fix Attaching fix
WebKit Review Bot
Comment 2 2010-02-03 05:12:13 PST
Bernhard Rosenkraenzer
Comment 3 2010-02-03 12:22:21 PST
Not sure what's causing the build bot failure... The command line from its report shows -DBUILD_WEBKIT is on the command line, and the modification is in #if !defined(QT_NO_SCRIPT) && !defined(BUILD_WEBKIT) I only tested the patch for building inside of Qt rather than the separate webkit tree though
Eric Seidel (no email)
Comment 4 2010-02-03 16:18:07 PST
This looks like it fails to build on the Qt Early Warning System (EWS) builder.
Simon Hausmann
Comment 5 2010-02-04 02:49:29 PST
Comment on attachment 48013 [details] Fix > +#if !defined(QT_NO_SCRIPT) && !defined(BUILD_WEBKIT) > void addToJavaScriptWindowObject(const QString &name, QObject *object, QScriptEngine::ValueOwnership ownership); > +#endif Why the check for BUILD_WEBKIT? Also the Qt EWS bot indicates that this breaks the build because there's the equivalent #ifdef missing in qwebframe.cpp. (Yay for the EWS :)
Bernhard Rosenkraenzer
Comment 6 2010-02-04 03:03:03 PST
The check for BUILD_WEBKIT is there because at build time (still talking about building QtWebKit inside the Qt tree, not about building it in the standalone tree), QtScript includes are available and the code can actually be built (that's also the reason for the absence of an equivalent ifdef in qwebframe.cpp -- at build time, QScriptEngine::ValueOwnership is availableand therefore it can be built). The thought behind allowing the 3-arg version of addToJavaScriptWindowObject to be built into the library even with -no-script was to try to preserve binary compatibility between versions built with -no-script and those built without -no-script -- but given the function is not very likely to actually work in -no-script mode, that may have been overly cautious.
Kent Hansen
Comment 7 2010-03-10 06:05:15 PST
*** Bug 33104 has been marked as a duplicate of this bug. ***
Simon Hausmann
Comment 8 2010-05-18 13:21:31 PDT
No update on this bug for a while. This isn't blocking the release anymore, but any patches will be welcomed for inclusion in the release branch :)
Benjamin Poulain
Comment 9 2011-01-30 09:06:55 PST
*** This bug has been marked as a duplicate of bug 52469 ***
Note You need to log in before you can comment on or make changes to this bug.