2015-03-02 78 views
0

我試圖建立PyQt的(4.11.3)針對在Windows 7大廈PyQt的反對在Windows

使用MSVC2013從VS2013 x86的本地工具的Qt的靜態版本(5.4)靜態的Qt庫命令提示符我正在運行python configure.py -w -u -g來構建調試版本'consolidate' option,但我收到了一堆與Windows系統調用相關的鏈接器錯誤。

可能會出現什麼問題?有沒有辦法指定configure.py哪裏可以找到包含缺失符號的庫?

configure.py輸出

Determining the layout of your Qt installation... 
J:\Build\Libraries\QtStatic\qtbase\bin\qmake.exe -o qtdirs.mk qtdirs.pro 
nmake -f qtdirs.mk debug 

Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 

Copyright (C) Microsoft Corporation. All rights reserved. 



"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" -f qtdirs.mk.Debug 



Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 

Copyright (C) Microsoft Corporation. All rights reserved. 



cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MTd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\qtdirs.pdb -DUNICODE -DWIN32 -DQT_CORE_LIB -I"..\QtStatic\qtbase\include" -I"..\QtStatic\qtbase\include\QtCore" -I"debug" -I"..\QtStatic\qtbase\mkspecs\win32-msvc2013" -Fodebug\ @C:\Users\Nick\AppData\Local\Temp\nmB354.tmp 

qtdirs.cpp 

link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:debug\qtdirs.exe @C:\Users\Nick\AppData\Local\Temp\nmBCD6.tmp 

Creating library debug\qtdirs.lib and object debug\qtdirs.exp 

Qt5Cored.lib(qcoreapplication.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function [email protected]@[email protected]$0 

Qt5Cored.lib(qcoreapplication_win.obj) : error LNK2001: unresolved external symbol [email protected] 

qtmaind.lib(qtmain_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)" ([email protected]@@[email protected]@[email protected]@@@@Z) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)" ([email protected]@@[email protected]@[email protected]@@@@Z) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)" ([email protected]@@[email protected]@[email protected]@@@@Z) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)" ([email protected]@@[email protected]@[email protected]@@@@Z) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "long __stdcall qt_internal_proc(struct HWND__ *,unsigned int,unsigned int,long)" ([email protected]@[email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall QWindowsMessageWindowClassContext::QWindowsMessageWindowClassContext(void)" ([email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall QWindowsMessageWindowClassContext::~QWindowsMessageWindowClassContext(void)" ([email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "struct HWND__ * __cdecl qt_create_internal_window(class QEventDispatcherWin32 const *)" ([email protected]@[email protected]@[email protected]@@Z) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual __thiscall QEventDispatcherWin32Private::~QEventDispatcherWin32Private(void)" ([email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "long __stdcall qt_GetMessageHook(int,unsigned int,long)" ([email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)" ([email protected]@@[email protected]@[email protected]@@@@Z) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "long __stdcall qt_GetMessageHook(int,unsigned int,long)" ([email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "long __stdcall qt_internal_proc(struct HWND__ *,unsigned int,unsigned int,long)" ([email protected]@[email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "long __stdcall qt_internal_proc(struct HWND__ *,unsigned int,unsigned int,long)" ([email protected]@[email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "struct HWND__ * __cdecl qt_create_internal_window(class QEventDispatcherWin32 const *)" ([email protected]@[email protected]@[email protected]@@Z) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: void __thiscall QEventDispatcherWin32::installMessageHook(void)" ([email protected]@@IAEXXZ) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: void __thiscall QEventDispatcherWin32::uninstallMessageHook(void)" ([email protected]@@IAEXXZ) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "long __stdcall qt_GetMessageHook(int,unsigned int,long)" ([email protected]@[email protected]) 

Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: void __thiscall QEventDispatcherWin32Private::doWsaAsyncSelect(int)" ([email protected]@@[email protected]) 

Qt5Cored.lib(qfilesystemengine_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static class QString __cdecl QFileSystemEngine::homePath(void)" ([email protected]@@[email protected]@XZ) 

Qt5Cored.lib(qfilesystemengine_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "void __cdecl resolveLibs(void)" ([email protected]@YAXXZ) 

Qt5Cored.lib(qfilesystemengine_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall SidCleanup::~SidCleanup(void)" ([email protected]@[email protected]) 

Qt5Cored.lib(qfilesystemengine_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "void __cdecl resolveLibs(void)" ([email protected]@YAXXZ) 

Qt5Cored.lib(qfilesystemengine_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "void __cdecl resolveLibs(void)" ([email protected]@YAXXZ) 

Qt5Cored.lib(qfilesystemengine_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "class QString __cdecl readLink(class QFileSystemEntry const &)" ([email protected]@[email protected]@[email protected]@@Z) 

Qt5Cored.lib(qfsfileengine_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qfilesystemengine_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "class QString __cdecl readLink(class QFileSystemEntry const &)" ([email protected]@[email protected]@[email protected]@@Z) 

Qt5Cored.lib(qfsfileengine_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qfilesystemengine_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "class QString __cdecl readLink(class QFileSystemEntry const &)" ([email protected]@[email protected]@[email protected]@@Z) 

Qt5Cored.lib(qfsfileengine_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qsettings.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function [email protected]@[email protected]$0 

Qt5Cored.lib(qstandardpaths_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qwindowscodec.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: class QString __thiscall QWindowsLocalCodec::convertToUnicodeCharByChar(char const *,int,struct QTextCodec::ConverterState *)const " ([email protected]@@[email protected]@[email protected]@@@Z) 

Qt5Cored.lib(quuid.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static class QUuid __cdecl QUuid::createUuid(void)" ([email protected]@@[email protected]) 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "void __cdecl allKeys(struct HKEY__ *,class QString const &,class QMap<class QString,class QString> *)" ([email protected]@[email protected]@[email protected]@[email protected]@@[email protected]@@@Z) 

Qt5Cored.lib(qtimezoneprivate_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "struct HKEY__ * __cdecl createOrOpenKey(struct HKEY__ *,unsigned long,class QString const &)" ([email protected]@[email protected]@[email protected]@@@Z) 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "void __cdecl deleteChildGroups(struct HKEY__ *)" ([email protected]@YAXPAU[email protected]@@Z) 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall QWinSettingsPrivate::remove(class QString const &)" ([email protected]@@[email protected]@@Z) 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "class QStringList __cdecl childKeysOrGroups(struct HKEY__ *,enum QSettingsPrivate::ChildSpec)" ([email protected]@[email protected]@[email protected]@[email protected]@@@Z) 

Qt5Cored.lib(qtimezoneprivate_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "class QStringList __cdecl childKeysOrGroups(struct HKEY__ *,enum QSettingsPrivate::ChildSpec)" ([email protected]@[email protected]@[email protected]@[email protected]@@@Z) 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall QWinSettingsPrivate::sync(void)" ([email protected]@@UAEXXZ) 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "struct HKEY__ * __cdecl openKey(struct HKEY__ *,unsigned long,class QString const &)" ([email protected]@[email protected]@[email protected]@@@Z) 

Qt5Cored.lib(qtimezoneprivate_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "class QStringList __cdecl childKeysOrGroups(struct HKEY__ *,enum QSettingsPrivate::ChildSpec)" ([email protected]@[email protected]@[email protected]@[email protected]@@@Z) 

Qt5Cored.lib(qtimezoneprivate_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall QWinSettingsPrivate::readKey(struct HKEY__ *,class QString const &,class QVariant *)const " ([email protected]@@[email protected]@[email protected]@[email protected]@@Z) 

Qt5Cored.lib(qtimezoneprivate_win.obj) : error LNK2001: unresolved external symbol [email protected] 

Qt5Cored.lib(qsettings_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall QWinSettingsPrivate::set(class QString const &,class QVariant const &)" ([email protected]@@[email protected]@[email protected]@@Z) 

Qt5Cored.lib(qstandardpaths_win.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static class QString __cdecl QStandardPaths::writableLocation(enum QStandardPaths::StandardLocation)" ([email protected]@@[email protected]@[email protected]@@Z) 

debug\qtdirs.exe : fatal error LNK1120: 43 unresolved externals 

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x460' 

Stop. 

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2' 

Stop. 

回答

0

這是Windows庫,你必須在生成過程中指定它們。
最有可能你缺少:
Advapi32.lib
SHELL32.LIB
USER32.LIB
KERNEL32.LIB
Ole32.lib
有關其他沒有的符號,你可以搜索MSDN:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa379295(v=vs.85).aspx

+0

對不起,這不回答我的問題。我知道缺少什麼,我想知道爲什麼這些庫不是首先找到的,以及我如何告訴'configure.py'在哪裏找到它們。 – user3419537 2015-10-14 11:30:23