[PyQt] error when building pyqt5.7 with visual studio 2015

Phil Thompson phil at riverbankcomputing.com
Sun Sep 4 14:34:06 BST 2016


On 2 Sep 2016, at 7:17 pm, Surfman19 at gmx.at wrote:
> 
> Hi,
>  
> I try to build PyQt 5.7 with Visusal Studio 2015, 64 bit but get the following error. Any idea how to fix this issue?
>  
> Generating Code...
>         link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WIND
> OWS /OUT:release\QtNfc.dll @C:\Users\surfer019\AppData\Local\Temp\nmEC.tmp
> Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: __cdecl QList<class QNdefRecord
> >::QList<class QNdefRecord>(class QList<class QNdefRecord> const &)" (??0?$QList
> @VQNdefRecord@@@@QEAA at AEBV0@@Z) already defined in sipQtNfcQList0100QNdefRecord.
> obj
> Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: class QList<class QNdefRecord>
> & __cdecl QList<class QNdefRecord>::operator=(class QList<class QNdefRecord> con
> st &)" (??4?$QList at VQNdefRecord@@@@QEAAAEAV0 at AEBV0@@Z) already defined in sipQtN
> fcQList0100QNdefRecord.obj
> Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: class QNdefRecord const & __cde
> cl QList<class QNdefRecord>::at(int)const " (?at@?$QList at VQNdefRecord@@@@QEBAAEB
> VQNdefRecord@@H at 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 fo
> und
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
> \VC\BIN\amd64\link.EXE"' : return code '0x491'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
> \VC\BIN\amd64\nmake.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'cd' : return code '0x2'
> Stop.
> win32-msvc2008 -o Makefile

Easy answer is to --disable QtNfc when running configure.py.

I have this problem when I have compiled Qt myself, but don't seem to have it when using the Qt binary installer.

Phil



More information about the PyQt mailing list