[PyQt] PyQtDeploy Sysroot issues
Phil Thompson
phil at riverbankcomputing.com
Mon Apr 9 17:54:22 BST 2018
On 9 Apr 2018, at 5:28 pm, Kevin Kelly <kevin.kelly at sydaptic.com> wrote:
>
> Thanks. So easy.
>
> Once I started using the Developer Command Prompt everything worked a lot better but I am not able to get all the way done.
>
> When it gets to the Make section it goes through some and then stops at these errors:
>
> python36.lib(sysmodule.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeW at 8 referenced in function _sys_getwindowsversion
> python36.lib(sysmodule.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoW at 16 referenced in function _sys_getwindowsversion
> python36.lib(sysmodule.obj) : error LNK2019: unresolved external symbol _VerQueryValueW at 16 referenced in function _sys_getwindowsversion
> release\pyqt-demo.exe : fatal error LNK1120: 3 unresolved externals
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\link.EXE"' : return code '0x460'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"' : return code '0x2'
> Stop.
>
> I can try again with the --no-sysroot option but it stops at the same spot. I am not sure if I need to include something or exclude something to make it work or if there is something, once again, off about the way I am building this.
You should use the version of MSVC that is used to build the version of Python from python.org - MSVC 2015 in the case of Python v3.6.
Alternatively, those symbols are defined in mincore.lib so you could try adding them to the qmake page in pyqtdeploy. Something like...
win32 {
LIBS += -lmincore
}
Phil
More information about the PyQt
mailing list