cc1plus.exe:内存不足,分配536875007个字节

时间:2018-06-14 06:53:19

标签: qt memory qml qr-code

我试图运行我的源代码。之前工作正常,但突然间我收到了一个错误:

cc1plus.exe: out of memory allocating 536875007 bytes
Makefile.Debug:1798: recipe for target 'debug/qrc_qml.o' failed
mingw32-make[1]: Leaving directory '/path/Source/source'
mingw32-make[1]: *** [debug/qrc_qml.o] Error 1
Makefile:36: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
12:19:08: The process "C:\Qt\Qt5.10.0\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project Qt_NGI (kit: Desktop Qt 5.10.0 MinGW 32bit)
When executing step "Make"
12:19:08: Elapsed time: 01:1

1 个答案:

答案 0 :(得分:-1)

This thread solved my issue

添加了"CONFIG += resources_big" into *.pro个文件。