[PyQt] error in Building PyQt 4.7.2 against statically compiled Qt 4.6.2 on windows

Karthik Tharavaad karthiktharavaad at gmail.com
Fri Apr 16 20:05:12 BST 2010


I'm using PyQt 4.7.2 gpl
Qt 4.6.2
using windows msvc 2008

I built Qt with:

configure -platform win32-msvc2008 -static -release -qt-libjpeg
-qt-zlib -qt-libpng -qt-gif -qt-libtiff -qt-sql-sqlite -nomake
examples -nomake demos -no-vcproj -no-incredibuild-xge -openssl-linked
OPENSSL_LIBS="-llibeay32MT -lssleay32MT" -I "C:\OpenSSL\include" -L
"C:\OpenSSL\lib\VC\static"

nmake sub-src


Followed by building SIP the normal way
Then building PyQt with

python configure.py -g -t qgif -t qjpeg -t qtiff -t qsvg

[-g] for consolidated

however, during the build, it will not build QtScript or QtWebkit
module, giving me these errors:

Checking to see if the QtScript module should be built...
cl -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG
-DQT_SCRIPT_LIB -I. -IC:\Qt\4.6.2static\mkspecs\default
-IC:\Qt\4.6.2static\include\QtScript -IC:\Qt\4.6.2static\include
-nologo -Zm200 -Zc:wchar_t- -O2 -MD -W0 cfgtest_QtScript.cpp -Fe /link
/LIBPATH:C:\Qt\4.6.2static\lib /NOLOGO /INCREMENTAL:NO /MANIFEST
/MANIFESTFILE:cfgtest_QtScript.manifest /SUBSYSTEM:CONSOLE
QtScript.lib QtCore.lib kernel32.lib user32.lib shell32.lib uuid.lib
ole32.lib advapi32.lib ws2_32.lib
cfgtest_QtScript.cpp

QtScript.lib(CurrentTime.obj) : error LNK2019: unresolved external
symbol __imp__timeEndPeriod at 4 referenced in function "double __cdecl
QTWTF::currentTime(void)" (?currentTime at QTWTF@@YANXZ)

QtScript.lib(CurrentTime.obj) : error LNK2019: unresolved external
symbol __imp__timeBeginPeriod at 4 referenced in function "double __cdecl
QTWTF::currentTime(void)" (?currentTime at QTWTF@@YANXZ)

cfgtest_QtScript.exe : fatal error LNK1120: 2 unresolved externals

Checking to see if the QtWebKit module should be built...
cl -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG
-DQT_WEBKIT_LIB -DQT_CORE_LIB -I. -IC:\Qt\4.6.2static\mkspecs\default
-IC:\Qt\4.6.2static\include\QtWebKit
-IC:\Qt\4.6.2static\include\QtCore -IC:\Qt\4.6.2static\include -nologo
-Zm200 -Zc:wchar_t- -O2 -MD -W0 cfgtest_QtWebKit.cpp -Fe /link
/LIBPATH:C:\Qt\4.6.2static\lib /NOLOGO /INCREMENTAL:NO /MANIFEST
/MANIFESTFILE:cfgtest_QtWebKit.manifest /SUBSYSTEM:CONSOLE
QtWebKit.lib QtNetwork.lib QtGui.lib ws2_32.lib gdi32.lib comdlg32.lib
oleaut32.lib imm32.lib winmm.lib winspool.lib ole32.lib user32.lib
advapi32.lib QtCore.lib kernel32.lib user32.lib shell32.lib uuid.lib
ole32.lib advapi32.lib ws2_32.lib
cfgtest_QtWebKit.cpp

   Creating library cfgtest_QtWebKit.lib and object cfgtest_QtWebKit.exp

QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved
external symbol _VerQueryValueW at 16 referenced in function "class
WebCore::String __cdecl WebCore::getVersionInfo(void * const,class
WebCore::String const &)"
(?getVersionInfo at WebCore@@YA?AVString at 1@QAXABV21@@Z)

QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved
external symbol _GetFileVersionInfoW at 16 referenced in function
"private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)"
(?fetchInfo at PluginPackage@WebCore@@AAE_NXZ)

QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved
external symbol _GetFileVersionInfoSizeW at 8 referenced in function
"private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)"
(?fetchInfo at PluginPackage@WebCore@@AAE_NXZ)

QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved
external symbol __imp__PathRemoveFileSpecW at 4 referenced in function
"class WebCore::String __cdecl WebCore::safariPluginsDirectory(void)"
(?safariPluginsDirectory at WebCore@@YA?AVString at 1@XZ)

QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved
external symbol __imp__SHGetValueW at 24 referenced in function "void
__cdecl WebCore::addWindowsMediaPlayerPluginDirectory(class
WTF::Vector<class WebCore::String,0> &)"
(?addWindowsMediaPlayerPluginDirectory at WebCore@@YAXAAV?$Vector at VString@WebCore@@$0A@@WTF@@@Z)

QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved
external symbol __imp__PathCombineW at 12 referenced in function "void
__cdecl WebCore::addMacromediaPluginDirectories(class
WTF::Vector<class WebCore::String,0> &)"
(?addMacromediaPluginDirectories at WebCore@@YAXAAV?$Vector at VString@WebCore@@$0A@@WTF@@@Z)

QtWebKit.lib(XSLTProcessorQt.obj) : error LNK2019: unresolved external
symbol "public: __thiscall
QAbstractMessageHandler::QAbstractMessageHandler(class QObject *)"
(??0QAbstractMessageHandler@@QAE at PAVQObject@@@Z) referenced in
function "public: __thiscall
WebCore::XSLTMessageHandler::XSLTMessageHandler(class
WebCore::Document *)"
(??0XSLTMessageHandler at WebCore@@QAE at PAVDocument@1@@Z)

QtWebKit.lib(XSLTProcessorQt.obj) : error LNK2001: unresolved external
symbol "public: virtual struct QMetaObject const * __thiscall
QAbstractMessageHandler::metaObject(void)const "
(?metaObject at QAbstractMessageHandler@@UBEPBUQMetaObject@@XZ)

QtWebKit.lib(XSLTProcessorQt.obj) : error LNK2001: unresolved external
symbol "public: virtual void * __thiscall
QAbstractMessageHandler::qt_metacast(char const *)"
(?qt_metacast at QAbstractMessageHandler@@UAEPAXPBD at Z)


and a bunch more.... Anyone has any ideas?


More information about the PyQt mailing list