Hello Phil,
I've got linker errors while compiling WebKit in a static build under
Windows. The problem is that WebKit requires two additional libraries:
shlwapi.lib and version.lib.
The original bug appears to be in Qt: qmake.conf (for msvc
configurations) does not contain a line such as:
QMAKE_LIBS_WEBKIT = shlwapi.lib version.lib
After I add it, it is sufficient the attached patch to sip.
I will submit the qmake.conf patch to Nokia soon. It's well possible
that they never used webkit in a static link scenario.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
Index: sip/siputils.py
===================================================================
--- sip/siputils.py (revisione 28739)
+++ sip/siputils.py (copia locale)
@@ -573,7 +573,8 @@
"QtCore": "LIBS_CORE",
"QtGui": "LIBS_GUI",
"QtNetwork": "LIBS_NETWORK",
- "QtOpenGL": "LIBS_OPENGL"
+ "QtOpenGL": "LIBS_OPENGL",
+ "QtWebKit": "LIBS_WEBKIT",
}
# For Windows: the dependencies between Qt libraries.
Index: sip/configure.py
===================================================================
--- sip/configure.py (revisione 28739)
+++ sip/configure.py (copia locale)
@@ -74,7 +74,7 @@
"DEL_FILE",
"EXTENSION_SHLIB", "EXTENSION_PLUGIN",
"INCDIR", "INCDIR_X11", "INCDIR_OPENGL",
- "LIBS_CORE", "LIBS_GUI", "LIBS_NETWORK", "LIBS_OPENGL",
+ "LIBS_CORE", "LIBS_GUI", "LIBS_NETWORK", "LIBS_OPENGL", "LIBS_WEBKIT",
"LINK", "LINK_SHLIB", "AIX_SHLIB", "LINK_SHLIB_CMD",
"LFLAGS", "LFLAGS_CONSOLE", "LFLAGS_CONSOLE_DLL", "LFLAGS_DEBUG",
"LFLAGS_DLL",
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt