Page 1 of 1

Not intalled wxWidgets3.1.1 [HELP]

Posted: Mon Jun 25, 2018 3:20 pm
by user601189
Hi, im istall wxWidgets3.1.1 and compilation, i waiting 1hour and 'cmd' out thish error:


..\..\lib\gcc_dll\libwxscintillad.a
gcc_mswuddll\monodll_xh_timectrl.o: cloud not read symbols: Memory exhausted
collect2.exe: error: Id returned 1 exit status
makefile.gcc:5322:recipe for target '..\..\lib\gcc_dll\wxmsw311ud_gcc_custom.dll' failed
mingw32-make.exe: ***[...\lib\gcc_dll\wxmsw311ud_gcc_custom.dll] Error 1


*My steps in cmd:
1. cd C:\wxWidgets-3.1.1\build\msw
2. mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1

*Info:
TDM-GCC (last version)
wxWidgets 3.1.1
OS: Windows 7
Memory: 4Gb

Please help!!! [-o<

Re: Not intalled wxWidgets3.1.1 [HELP]

Posted: Mon Jun 25, 2018 3:56 pm
by PB
I would make sure there are no remnant from the previous build. If there are not, you could try changing the command line to

Code: Select all

mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 CXXFLAGS="-fno-keep-inline-dllexport"
This was supposed to help with a similar issue for older GCC compilers, TDM-GCC was expected to be prone to this but you can still try it.

As always when changing the build options, clean the old build just to be sure...

TBH, I would also consider switching the toolchain (to MinGW-w64?), TDM-GCC seems to be abandoned....

Re: Not intalled wxWidgets3.1.1 [HELP]

Posted: Mon Jun 25, 2018 6:14 pm
by doublemax
I don't use MinGW, but maybe 4GB Ram is really not enough? Just an idea.

Can you try a non-monolithic build? AFAIK monolithic builds use more memory.

Re: Not intalled wxWidgets3.1.1 [HELP]

Posted: Tue Jun 26, 2018 3:11 pm
by user601189
I install to TDM-GCC in my bat file:

cd /d C:\wx\build\msw
color 02
mingw32-make.exe -f makefile.gcc MONOLITHIC=0 USE_XRC=1 SHARED=1 UNICODE=1 USE_OPENGL=1 BUILD=release
color 03
mingw32-make.exe -f makefile.gcc MONOLITHIC=0 USE_XRC=1 SHARED=1 UNICODE=1 USE_OPENGL=1 BUILD=debug
pause

Problem decided!!!

Re: Not intalled wxWidgets3.1.1 [HELP]

Posted: Mon Jul 02, 2018 5:18 pm
by ouch67
Yeah, as someone who used to use TDM-gcc I can confirm that switching to MinGW-w64 is definitely worth the trouble. I had some strange issues with the latest version of tdm-gcc that were never resolved as well (seemed like a tool chain bug). These went away when I switched to the latest MinGW-w64, so I wouldn't use TDM-gcc if I were you.