As Arch Linux now has a legacy wxgtk 2.6 package, I was hoping I could build CB from SVN again with configure --with-wx-config=wx-config-2.6. Unfortunately the build (fresh checkout) fails with this:
globals.cpp: In function 'wxChar* cbU2C(const wxString&)':
globals.cpp:511: error: invalid conversion from 'const wxChar*' to 'wxChar*'
globals.cpp:513: error: invalid conversion from 'const wxChar*' to 'wxChar*'
make[3]: *** [globals.lo] Błąd 1
make[3]: Opuszczenie katalogu `/home/rulatir/works/CodeBlocks/trunk/src/sdk'
make[2]: *** [all-recursive] Błąd 1
make[2]: Opuszczenie katalogu `/home/rulatir/works/CodeBlocks/trunk/src/sdk'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/home/rulatir/works/CodeBlocks/trunk/src'
make: *** [all-recursive] Błąd 1
I'm trying to compile the same way as szczepan but in Gentoo and i'm getting the following error.
globals.cpp: In function 'void PlaceWindow(wxWindow*, cbPlaceDialogMode, bool)':
globals.cpp:875: error: 'class wxWindow' has no member named 'CentreOnScreen'
make[3]: *** [globals.lo] Error 1
make[3]: Leaving directory `/home/eden/projects/svn/codeblocks/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/eden/projects/svn/codeblocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eden/projects/svn/codeblocks/src'
make: *** [all-recursive] Error 1
Well that works but it just leads to two more errors. configuring without --enable-contrib works though, i don't use a lot of those plugins anyway.
./../wxsevents.h:142: error: 'wxArrayString' does not name a type
./../wxsevents.h: In member function 'const wxString& wxsEvents::GetHandler(int)':
./../wxsevents.h:108: error: 'm_Functions' was not declared in this scope
./../wxsevents.h: In member function 'void wxsEvents::SetHandler(int, const wxString&)':
./../wxsevents.h:111: error: 'm_Functions' was not declared in this scope
make[6]: *** [wxsdatepickerctrl.lo] Error 1
make[6]: Leaving directory `svn/codeblocks/src/plugins/contrib/wxSmith/wxwidgets/defitems'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `svn/codeblocks/src/plugins/contrib/wxSmith/wxwidgets'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `svn/codeblocks/src/plugins/contrib/wxSmith'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `svn/codeblocks/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory ` svn/codeblocks/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `svn/codeblocks/src'
make: *** [all-recursive] Error 1