[PyQt] PyQt5 Building PyQt5 for Windows

PyJogger pyjogger at 163.com
Sat Aug 1 14:39:48 BST 2015


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150801/8f10aaae/attachment.html>


More information about the PyQt mailing list