[PyQt] pyqtdeploy - nmake gives 'compiler is out of heap space' error

Chandrakant Gopalan chandrakant.gopalan at pinogy.com
Sun Apr 17 18:30:07 BST 2016


Hello,

I have used pyqtdeploy to generate a build for a PyQt5 app. In the process I have statically built Python3, sip, Pyqt5.
The make files have been generated. But when I run nmake, I get the following error:

c:\Users\cgopalan\pyqtdeploy\build>nmake

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.

        cl -c -nologo -Zc:wchar_t -FS -O2 -MD -Zc:strictStrings -W0 -GR -EHsc -DWIN32 -DPYQTDEPLOY_FROZEN_MAIN -DPYQTDEPLOY_OPTIMIZED -DMS_WINDOWS -D_WIN32_WINNT=Py_WINVER -DNTDDI_VERSION=Py_NTDDI -DWINVER=Py_WINVER -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DNDEBUG -I. -I..\sysroot-win\include\python3.4 -I..\..\..\..\Qt\5.5\msvc2013\include -I..\..\..\..\Qt\5.5\msvc2013\include\QtWidgets -I..\..\..\..\Qt\5.5\msvc2013\include\QtGui -I..\..\..\..\Qt\5.5\msvc2013\include\QtANGLE -I..\..\..\..\Qt\5.5\msvc2013\include\QtCore -Irelease -I..\..\..\..\Qt\5.5\msvc2013\mkspecs\win32-msvc2013 -Forelease\ @C:\Users\cgopalan\AppData\Local\Temp\nmBD54.tmp
qrc_pyqtdeploy.cpp
release\qrc_pyqtdeploy.cpp(2269750): fatal error C1060: compiler is out of heap space
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

The size of the qrc_pyqtdeploy.cpp file is a whopping 306 MB which is probably why this is happening.  I am building on 64-bit Windows 10 machine with 8 GB ram.
Is there anyway to overcome this?

Thanks
Chandrakant


More information about the PyQt mailing list