RESOLVED FIXED Bug 76832
[Qt] Build fix when using force_static_libs_as_shared
https://bugs.webkit.org/show_bug.cgi?id=76832
Summary [Qt] Build fix when using force_static_libs_as_shared
Yael
Reported 2012-01-23 08:20:49 PST
When building a debug build on Linux with 32 bit machines, we must use force_static_libs_as_shared or we cannot link. When WebKit2 and WebCore are built as a shared library, we must add QT+=widgets for them to link.
Attachments
Patch. (2.41 KB, patch)
2012-01-23 08:23 PST, Yael
hausmann: review-
hausmann: commit-queue-
Patch. (2.14 KB, patch)
2012-01-24 10:56 PST, Yael
no flags
Yael
Comment 1 2012-01-23 08:23:26 PST
Simon Hausmann
Comment 2 2012-01-24 03:06:10 PST
Comment on attachment 123560 [details] Patch. I think the dependency is correct, but I don't think that it should be guarded with force_static_libs_as_shared. It is a _real_ dependency and it should IMHO be expressed as such, i.e. without the force_static_libs_as_shared scope.
Yael
Comment 3 2012-01-24 10:56:25 PST
Created attachment 123770 [details] Patch. Removed the flag, as suggested by Simon.
WebKit Review Bot
Comment 4 2012-01-25 09:10:08 PST
Comment on attachment 123770 [details] Patch. Clearing flags on attachment: 123770 Committed r105881: <http://trac.webkit.org/changeset/105881>
WebKit Review Bot
Comment 5 2012-01-25 09:10:13 PST
All reviewed patches have been landed. Closing bug.
Yael
Comment 6 2012-02-21 19:43:50 PST
This got broken again by r108328
Andras Becsi
Comment 7 2012-02-22 03:20:21 PST
The build with --qmakearg="CONFIG+=force_static_libs_as_shared" works for me. What build options do you use? You need a clean build after this change, since the build system has some problems with changing module dependency settings in project files.
Andras Becsi
Comment 8 2012-02-22 05:00:01 PST
(In reply to comment #6) > This got broken again by r108328 Looks like the option actually broke because of r108359. The inclusion order resulted in some defines being undeffed by the new header. The fixed patch was landed in http://trac.webkit.org/changeset/108483.
Yael
Comment 9 2012-02-22 05:17:01 PST
(In reply to comment #8) > The fixed patch was landed in http://trac.webkit.org/changeset/108483. Thanks for fixing it :)
Yael
Comment 10 2012-02-23 17:33:21 PST
(In reply to comment #8) > (In reply to comment #6) > > This got broken again by r108328 > > Looks like the option actually broke because of r108359. > The inclusion order resulted in some defines being undeffed by the new header. > > The fixed patch was landed in http://trac.webkit.org/changeset/108483. This is still broken. WebKit2 is still using QWidgets such as QFileDialog etc. When building with force_static_libs_as_shared, WebKit2 is a self contained dll and it needs to have QT+=widgets. This problem has nothing to do with http://trac.webkit.org/changeset/108483 , and is indeed regression from 108328, which removed QT+=widgets . Clean build with default flags, not specifying any flags on the command line is currently failing. (with latest Qt5).
Simon Hausmann
Comment 11 2012-02-24 00:19:33 PST
(In reply to comment #10) > (In reply to comment #8) > > (In reply to comment #6) > > > This got broken again by r108328 > > > > Looks like the option actually broke because of r108359. > > The inclusion order resulted in some defines being undeffed by the new header. > > > > The fixed patch was landed in http://trac.webkit.org/changeset/108483. > > This is still broken. WebKit2 is still using QWidgets such as QFileDialog etc. > When building with force_static_libs_as_shared, WebKit2 is a self contained dll and it needs to have QT+=widgets. > > This problem has nothing to do with http://trac.webkit.org/changeset/108483 , and is indeed regression from 108328, which removed QT+=widgets . > > Clean build with default flags, not specifying any flags on the command line is currently failing. (with latest Qt5). Yael, you're right. I've filed bug #79458 for this.
Note You need to log in before you can comment on or make changes to this bug.