[PyQt] error building QtNfc

scott zimmerman scottz1 at hotmail.com
Sat Mar 5 02:27:48 GMT 2016


Hello,
 
I'm using PyQt 5.5.1, Anaconda 3.5.1, Qt 5.6, Visual Studio 2015, and Windows 10. To get PyQt configure.py to work I did the following:
1. The script finds qmake.exe from Qt4 in Anaconda *before* it checks for the --qmake option so I hard-coded the qmake.exe path inside the script to be Qt5.
2. I added C:\Qt\5.6\msvc2015_64\bin to the path environment so qmake could find other programs.
3. I opened the VS2015 x64 command shell to run python configure.py so the x64 version of nmake and cl are used.
 
After configure.py ran successfully, I ran nmake in the pyqt folder. After building many files, it got the fatal error below.
 
Is there a workaround? Or some way I could continue without QtNfc.dll?
 
        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /OUT:release\QtNfc.dll @C:\Users\scott\AppData\Local\Temp\nmDE66.tmp
Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: __cdecl QList<class QNdefRecord>::QList<class QNdefRecord>(class QList<class QNdefRecord> const &)" (??0?$QList at 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> const &)" (??4?$QList at VQNdefRecord@@@@QEAAAEAV0 at AEBV0@@Z) already defined in sipQtNfcQList0100QNdefRecord.obj
Qt5Nfc.lib(Qt5Nfc.dll) : error LNK2005: "public: class QNdefRecord const & __cdecl QList<class QNdefRecord>::at(int)const " (?at@?$QList at VQNdefRecord@@@@QEBAAEBVQNdefRecord@@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 found
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 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160304/c8fe6db3/attachment.html>


More information about the PyQt mailing list