I was able to build using the 17.12 tag with some changes.
wxwidgets 3.1.1 built from source in monolithic debug with osx min ver set to 10.9?, and make installed with only this change applied:
https://trac.wxwidgets.org/ticket/18025however I also added some of the enter handling code to this hack to be sure it would handle the enter event (their webview demo wasn't working properly for me without this change)
then clone the tag and make changes:
src/sdk/scripting/squirrel/sqvm.cpp - move the #include "sqpcheader.h" line below the <> built in includes to avoid a macro conflict
src/sdk/configmanager.cpp - the path for the plugins is wrong, changed line 1563 to this (hardcoded for now)
ConfigManager::plugin_path_global = _T("/usr/local/lib/codeblocks/plugins"); //data_path_global + _T("/plugins");
src/plugins/contrib/FileManager/directorymonitor.cpp - don't have fam.h so I commented everything related to fam out. after compiling I renamed this dylib so it doesn't load. It will still load/not crash with the fam stuff commented out, but I didn't want to load the gutted plugin.
then ./bootstrap
./configure --enable-debug --with-contrib-plugins=all
then in
src/plugins/contrib/NassiShneiderman/Makefile
change libs to add boost_system:
LIBS = -lpthread -ldl -lboost_system
(no matter what boost flags I passed to the configure I couldn't get this to happen automagically)
>make
(wait, no errors)
>make install
>codeblocks
if I use the file->quit menu it also exits properly I think. Osx has its own program menu which also allows quitting, but that seems to cause problems.
I was able to build a hello world cpp and almost run (not debug) it, although for some reason the command being sent to the terminal was quoted in its entirety. I was able to run the command it is using without the extra tick marks.
GDB might work with the system integrity protection disabled, but by default I couldn't debug. This is a known mac gdb thing. I just got this compiling yesterday, and also my first time using codeblocks, so my knowledge is limited. I installed boost using homebrew and I'm sure I've already got a number of other libraries installed on this machine, so I can't say what other libraries might be needed.
So what can I do to help out with the mac version?
I was looking for a fast cross platform ide to play around with... which is how I got here. ps, I'm NOT a mac expert. yet.