User forums > General (but related to Code::Blocks)
an error building wxMSW-2.8.12 using minGW
zage2009:
I want to use nightly build and do it stey by step according the address:http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook.I get the mingw from the http://prdownloads.sourceforge.net/mingw/MinGW-5.1.3.exe and
install it in C:\mingGW.I unzip the wxMSW-2.8.12 in C:\projects\.
I enter the command :
--- Code: ---mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean
--- End code ---
and it works well,but the build command :
--- Code: ---mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
--- End code ---
eventually shows the error:
--- Code: ---c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: out of memory allocating 36639232 bytes
collect2: ld returned 1 exit status
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw28u_gcc_custom.dll] Error 1
--- End code ---
The memory of my machine is 4GB and the operating system is WinXPsp3.How can I accomplish the wx build?
oBFusCATed:
Probably you have to install newer compiler. 5.1.3 is quite old if I remember correctly.
stahta01:
IIRC, this version of MinGW can not build the with MONOLITHIC=1; use an older or a newer version of the MinGW GCC Compiler/Linker. MONOLITHIC=0 builds should work.
Note: Newer version must be a TDM build; because it has the NON approved by MinGW/GCC patch to permit building of MONOLITHIC=1 builds.
Tim S.
MortenMacFly:
--- Quote from: zage2009 on August 14, 2011, 04:29:04 pm ---How can I accomplish the wx build?
--- End quote ---
This is a known bug of this compiler and affects wxWidgets.
Use the TDM GCC compile from here:
http://tdm-gcc.tdragon.net/
zage2009:
Thanks,friends.Now I have a problem about the Zip section of http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook because I don't download the zip.exe sucessfully from the address which killerbot provided.WinRAR is suitable for that in winxp?If not what kind of software can be suitable.
Navigation
[0] Message Index
[#] Next page
Go to full version