[Webkit-unassigned] [Bug 104436] [Qt] MinGW-w64 64-bit build fails when linking libQt5WebKitWidgetsd

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 11 11:30:10 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=104436





--- Comment #3 from Mozhaev Grigory <zcrendel at gmail.com>  2012-12-11 11:32:34 PST ---
I found out how to build and link it, now it works. Hope this help to make a patch to fix this. The problem is how Qt5WebKit.dll link with static 
libraries.

1) 
so the static libraries now presented in link line part like (see WebKitBuild/Release/Source/Makefile.Release, 'LIBS =' section):

... -lWebKit1 -lWebCore  -lJavaScriptCore -Wl,-whole-archive -lWTF -Wl,-no-whole-archive ...

thus only -lWTF braced by -Wl,-whole-archive and -Wl,-no-whole-archive, to fix the problem and import functions it shouble be as the following:

... -Wl,-whole-archive -lWTF -Wl,-no-whole-archive  -Wl,-whole-archive -lWebKit1  -Wl,-no-whole-archive  -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive ...

also the important moment, the following libs:

-lshlwapi -lversion

must follow -lWebCore, so finally link line part do the job:

... -Wl,-whole-archive -lWTF -Wl,-no-whole-archive  -Wl,-whole-archive -lWebKit1  -Wl,-no-whole-archive  -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -lshlwapi -lversion -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive ...

2) After first step functions should be exported well (and placed into import file .a), but Qt5WebKitWidgets still cannot link, cause it can't find the Qt5WebKit library itself. I did link to it differently and it worked well, the changes in WebKitBuild/Release/Source/Makefile.widgetsapi.Release, section 'LIB =':

from 
'-L<PathToWebkit>/WebKitBuild/Release/lib -lQt5WebKit', 
to
 '<PathToWebkit>/WebKitBuild/Release/lib/Qt5WebKit.dll'

Hope it help to fix this upstream!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list