[PyQt] pyqtdeploy - nmake - linker errors

Chandrakant Gopalan chandrakant.gopalan at pinogy.com
Sun Apr 17 19:37:12 BST 2016


After building via pyqtdeploy, I ran qmake and then nmake. The compilation goes through fine, but I get linker errors:


Generating Code...
        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:release\main.exe @C:\Users\cgopalan\AppData\Local\Temp\nm28EA.tmp
   Creating library release\main.lib and object release\main.exp
pyqtdeploy_start.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toUtf8(void)const & " (__imp_?toUtf8 at QString@@QGBE?AVQByteArray@@XZ) referenced in function "int __cdecl append_path_dirs(struct _object *,char const * *)" (?append_path_dirs@@YAHPAU_object@@PAPBD at Z)
pdytools_module.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLatin1(void)const & " (__imp_?toLatin1 at QString@@QGBE?AVQByteArray@@XZ) referenced in function _qrcimporter_get_code
QtCore.lib(sipQtCoreQAbstractProxyModel.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QItemSelection::QItemSelection(class QItemSelection &&)" (__imp_??0QItemSelection@@QAE@$$QAV0@@Z) referenced in function _meth_QAbstractProxyModel_mapSelectionToSource
QtCore.lib(sipQtCoreQIdentityProxyModel.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall QItemSelection::QItemSelection(class QItemSelection &&)" (__imp_??0QItemSelection@@QAE@$$QAV0@@Z)
QtCore.lib(sipQtCoreQSortFilterProxyModel.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall QItemSelection::QItemSelection(class QItemSelection &&)" (__imp_??0QItemSelection@@QAE@$$QAV0@@Z)
QtCore.lib(sipQtCoreQByteArray.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QByteArray::toLower(void)const & " (__imp_?toLower at QByteArray@@QGBE?AV1 at XZ) referenced in function _meth_QByteArray_toLower
QtCore.lib(sipQtCoreQByteArray.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QByteArray::toUpper(void)const & " (__imp_?toUpper at QByteArray@@QGBE?AV1 at XZ) referenced in function _meth_QByteArray_toUpper
QtCore.lib(sipQtCoreQByteArray.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QByteArray::trimmed(void)const & " (__imp_?trimmed at QByteArray@@QGBE?AV1 at XZ) referenced in function _meth_QByteArray_trimmed
QtCore.lib(sipQtCoreQByteArray.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QByteArray::simplified(void)const & " (__imp_?simplified at QByteArray@@QGBE?AV1 at XZ) referenced in function _meth_QByteArray_simplified
QtCore.lib(qpycore_chimera.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QByteArray::simplified(void)const & " (__imp_?simplified at QByteArray@@QGBE?AV1 at XZ)
QtCore.lib(qpycore_public_api.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QByteArray __thiscall QString::toLocal8Bit(void)&& " (__imp_?toLocal8Bit at QString@@QHAE?AVQByteArray@@XZ) referenced in function "char * * __cdecl pyqt5_from_argv_list(struct _object *,int &)" (?pyqt5_from_argv_list@@YAPAPADPAU_object@@AAH at Z)
QtGui.lib(sipQtGuiQImage.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QImage __thiscall QImage::convertToFormat(enum QImage::Format,class QFlags<enum Qt::ImageConversionFlag>)const & " (__imp_?convertToFormat at QImage@@QGBE?AV1 at W4Format@1 at V?$QFlags at W4ImageConversionFlag@Qt@@@@@Z) referenced in function _meth_QImage_convertToFormat
QtGui.lib(sipQtGuiQImage.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QImage __thiscall QImage::mirrored(bool,bool)const & " (__imp_?mirrored at QImage@@QGBE?AV1 at _N0@Z) referenced in function _meth_QImage_mirrored
QtGui.lib(sipQtGuiQImage.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QImage __thiscall QImage::rgbSwapped(void)const & " (__imp_?rgbSwapped at QImage@@QGBE?AV1 at XZ) referenced in function _meth_QImage_rgbSwapped
release\main.exe : fatal error LNK1120: 11 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Any idea how to resolve this?

Thanks
Chandrakant


More information about the PyQt mailing list