News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compiling wx3.0 for Codeblocks

Started by BlueHazzard, May 01, 2016, 08:35:31 PM

Previous topic - Next topic

BlueHazzard

Hi,
the old game with wx3.0 (wx3.1) and Codeblocks. Since 3 weeks i try to compile wxWidgets for compiling Codeblocks.
I try to compile wxWidgets on windows with tdm gcc 5.1
I could not compile the current git branch with the error message:
wxWidgets\build\msw/../../src/msw/checklst.cpp:162: undefined reference to `GetLayout@4'
This is somehow expected, or at least there exists a ticket...
I compiled git tag wx3.0.2 and it compiled smootly, but on the execution i get a sig fult crash and this backtrace:

#0 0x7792e064 ntdll!RtlFreeHeap() (C:\Windows\SysWOW64\ntdll.dll:??)
#1 0x76dc98cd msvcrt!free() (C:\Windows\syswow64\msvcrt.dll:??)
#2 0x16550000 ?? () (??:??)
#3 0x547ea6 wxString::ConvertedBuffer<char>::~ConvertedBuffer(this=0x28fd34, __in_chrg=<optimized out>) (/wxWidgets/include/wx/string.h:3490)
#4 0x549dc6 wxString::~wxString(this=0x28fd1c, __in_chrg=<optimized out>) (/wxWidgets/include/wx/string.h:393)
#5 0x40ac85 __static_initialization_and_destruction_0(__initialize_p=1, __priority=65535) (\codeblocks_sf\src\src\appglobals.cpp:26)
#6 0x40b2da _GLOBAL__sub_I__ZN10appglobals9AppVendorE() (\codeblocks_sf\src\src\appglobals.cpp:73)
#7 0x514d1a __do_global_ctors () (??:??)
#8 0x4010dc __mingw_CRTStartup () (??:??)
#9 0x4012b5 WinMainCRTStartup () (??:??)

I have tried wx3.0.0, wx 3.0.1, wx3.0.2 and wx 3.1.0 an none of them will work...
my wxWidgets compiling command line is:

mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 CXXFLAGS="-fno-keep-inline-dllexport"

and i copied always the setup0.h to setup.h ...

Has someone a working installation with wxWidgets 3.x and TDM 5.1 or 4.8 on Windows?
can someone write short the wxWidgets compiling command here?

thanks!

oBFusCATed

I think the guides in the wiki worked fine last time I've tried then.
I was using 4.8/4.9 or 5.1 (don't remember and can't check right now).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

gd_on

Personaly, when I tried to compile wx 3.0, I used this :
Quote
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport -std=gnu++11 -Wno-deprecated-declarations"

gd_on
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).