[PyQt] Building PyQt5 for pyqtdeploy on windows - nmake error

Chandrakant Gopalan chandrakant.gopalan at pinogy.com
Thu Apr 14 21:18:29 BST 2016


Hello,
I am evaluating pyqtdeploy so that we can use it to build our PyQt5-based app for different platforms. As a first step, I am trying to build our application via pyqtdeploy on a windows 10 host, targeting windows platforms.
I am in the process of statically building packages. I am following the steps on http://pyqt.sourceforge.net/Docs/pyqtdeploy/static_builds.html
I have been able to statically build Python. And also build sip. But I am having trouble building PyQt.

I was able to run "pyqtdeploycli --package pyqt5 configure" and it generated the cfg file.
Then I ran "python configure.py --static --sysroot=%SYSROOT% --no-tools --no-qsci-api --no-designer-plugin --no-qml-plugin --configuration=pyqt5-win.cfg"
and i was able to generate the makefile.
But when I run "nmake" I get this error:

c:\Users\cgopalan\Downloads\PyQt-gpl-5.5.1>nmake

Microsoft (R) Program Maintenance Utility Version 14.00.23918.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd QAxContainer\ && ( if not exist Makefile C:\Python34\Lib\site-packages\PyQt5\qmake.exe C:\Users\cgopalan\Downloads\PyQt-gpl-5.5.1\QAxContainer\QAxContainer.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile

Microsoft (R) Program Maintenance Utility Version 14.00.23918.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile.Release

Microsoft (R) Program Maintenance Utility Version 14.00.23918.0
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'C:\Python34\Lib\site-packages\PyQt5\lib\Qt5AxContainer.lib'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.


nmake worked when I built sip. Not sure why this is happening here. Can anyone please help?

Thanks
Chandrakant


More information about the PyQt mailing list