Qt compilation error: "out of memory allocates 134mb" "cc1plus.exe not found"

I am developing a Windows game that requires a lot of small images that I put in resources.qrc, they are in tot. 14mb.

When I try to compile a single error, it is: "out of memory allocating 134mb" "cc1plus.exe not found".

How can I handle this? Thank you very much.

+5
source share
3 answers

qrc, ( qrc ) . Qt qrc_XXXXX.cpp, char XXXXX (, 14 , : 14680064 ( hex (0xXX) 1 ... !), , ...

+7

, . .exe.

( ), 12 ( 6 ).

, :) Google, . cc1plus.exe . , Qt ( Windows 7, MinGW32 4.9.2 , , ):

  • 32 , cmd ( Admin) bcdedit /set IncreaseUserVa 3072
  • masm32;
  • cmd ( );
  • put cd C:\Qt\Tools\mingw492_32\libexec\gcc\i686-w64-mingw32\4.9.2
  • put C:\masm32\bin\editbin.exe /LARGEADDRESSAWARE cc1plus.exe

. , :)

+3

Windows 7SP1 x86 4Gb RAM Qt 5.7.0

I had the same problem, when I added a large file to resources in Qt, I had an error:

cc1plus.exe: -1: error: allocation from memory 1073745919 bytes

Decision:

add CONFIG += resources_bigto file *.pro.

I took it here: https://forum.qt.io/topic/62655/cc1plus-exe-out-of-memory-60mb-encrypted-resource-file/8

+3
source

All Articles