Not intalled wxWidgets3.1.1 [HELP]

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
user601189
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Jun 25, 2018 2:50 pm

Not intalled wxWidgets3.1.1 [HELP]

Post by user601189 » Mon Jun 25, 2018 3:20 pm

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<

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2217
Joined: Sun Jan 03, 2010 5:45 pm

Re: Not intalled wxWidgets3.1.1 [HELP]

Post by PB » Mon Jun 25, 2018 3:56 pm

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....

User avatar
doublemax
Moderator
Moderator
Posts: 14595
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Not intalled wxWidgets3.1.1 [HELP]

Post by doublemax » Mon Jun 25, 2018 6:14 pm

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.
Use the source, Luke!

user601189
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Jun 25, 2018 2:50 pm

Re: Not intalled wxWidgets3.1.1 [HELP]

Post by user601189 » Tue Jun 26, 2018 3:11 pm

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!!!

ouch67
Earned some good credits
Earned some good credits
Posts: 134
Joined: Sun Mar 23, 2008 12:09 am

Re: Not intalled wxWidgets3.1.1 [HELP]

Post by ouch67 » Mon Jul 02, 2018 5:18 pm

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.

Post Reply