[PyQt] PyQt5 Building PyQt5 for Windows
Phil Thompson
phil at riverbankcomputing.com
Sat Aug 1 15:15:18 BST 2015
On 01/08/2015 2:39 pm, PyJogger wrote:
> Hello,everyone.Sorry to trouble you.
> My environment is Windows 7 ultimate x64.I have Visual Studio 2010 and
> Python 3.4.3 x86 and sip-4.16.9 and Qt5.5.0 installed.
> I got source code of PyQt-gpl-5.5.When I was building PyQt5,I got
> errors like this:
>
>
> "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"
> -f Makefile.Release
> link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL
> /SUBSYSTEM:WINDOWS /OUT:release\QtNfc.dll
> @C:\Users\HARBIN~1\AppData\Local\Temp\nm389C.tmp
> Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: __thiscall
> QList<class QNdefRecord>::~QList<class QNdefRecord>(void)"
> (??1?$QList at VQNdefRecord@@@@QAE at XZ) already defined in
> sipQtNfcQList0100QNdefRecord.obj
> Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: __thiscall
> QList<class QNdefRecord>::QList<class QNdefRecord>(class QList<class
> QNdefRecord> const &)" (??0?$QList at VQNdefRecord@@@@QAE at ABV0@@Z)
> already defined in sipQtNfcQList0100QNdefRecord.obj
> Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: class QNdefRecord
> const & __thiscall QList<class QNdefRecord>::at(int)const "
> (?at@?$QList at VQNdefRecord@@@@QBEABVQNdefRecord@@H at Z) already defined
> in sipQtNfcQList0100QNdefRecord.obj
> Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: class QList<class
> QNdefRecord> & __thiscall QList<class QNdefRecord>::operator=(class
> QList<class QNdefRecord> const &)"
> (??4?$QList at VQNdefRecord@@@@QAEAAV0 at ABV0@@Z) already defined in
> sipQtNfcQList0100QNdefRecord.obj
> Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: void __thiscall
> QList<class QNdefRecord>::append(class QNdefRecord const &)"
> (?append@?$QList at VQNdefRecord@@@@QAEXABVQNdefRecord@@@Z) already
> defined in sipQtNfcQList0100QNdefRecord.obj
> Creating library release\QtNfc.lib and object release\QtNfc.exp
> release\QtNfc.dll : fatal error LNK1169: one or more multiply defined
> symbols found
>
>
> What can I do to solve this?
Before running configure.py rename the \path\to\qt\include\QtNfc
directory to something like QtNfc-disable. Or use the provided binayr
installer.
Phil
More information about the PyQt
mailing list