I decided to give wxWidgets and Code::Blocks another try in OSX. I built wxWidgets 2.9.4 rather easily, but Code::Blocks needed some minor adjustments which I want share in here.
The files configmanager.cpp and app.cpp rely on the directory structure of wxWidgets 2.8. The first change that is needed, when using wxWidgets 2.9, is to replace
#include "wx/mac/corefoundation/cfstring.h"
with
#include "wx/osx/core/cfstring.h"
The next change is to replace
with
Once Code::Blocks has been built and installed, running it causes quite a couple of assertions:
- failed in DoOffset(): invalid wxRegion
- failed in DoCombine(): invalid wxRegion
- failed in Enable(): attempt to enable an item which doesn't exist
Although Code::Blocks runs, it gets no menu. No plugins are loaded either. They are all installed in /usr/local/lib/codeblocks/plugins, but, it seems, they are not searched in there. Once I force it to load them, it fails. It seems to be caused by the suggested configure flag for wxWidgets of disabling shared (which I should have ignored).
Well, at least it seems to be getting somewhere.
BTW, the build is in 64 bits under Mountain Lion.