After reading several threads, because of the outdated info in the wiki, i decided to post here one possible way of building the codeblocks app bundle.
This worked for OS x 10.13 with Xcodex
Download wxWidgetes 3.1.1 und unpack it. Open a terminal in the folder and type the following.
mkdir mac-build
cd mac-build
./configure --with-osx_cocoa --with-macosx-version-min=10.11 --enable-debug
nice make
Configured wxWidgets 3.1.1 for `x86_64-apple-darwin17.5.0'
Which GUI toolkit should wxWidgets use? osx_cocoa
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets support Unicode? yes (using wchar_t)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.8 no
wxWidgets 3.0 yes
Which libraries should wxWidgets use?
STL no
jpeg sys
png sys
regex builtin
tiff sys
zlib sys
expat sys
libmspack no
sdl no
Make a folder for codeblocks source.
mkdir codeblocks
cd codeblocks
Get codeblocks source.
svn checkout http://svn.code.sf.net/p/codeblocks/code/trunk
Go to the scr folder an apply the patch from previous post.
patch -p0 < squirrelOsXdiff.txt
To be able to compile i installed automake via homebrew.
In trunk folder issue the folowing commands.
./bootstrap
./configure --with-platform=macosx
*************************************************
* Code::Blocks source tree has been configured. *
*************************************************
You can now build Code::Blocks by issuing 'make'.
When the build is complete, become root and install
it by issuing 'make install'.
CFLAGS: -O2 -ffast-math -fPIC -std=c90
CXXFLAGS: -O2 -ffast-math -Winvalid-pch -fPIC -fexceptions
CPPFLAGS: -DCB_AUTOCONF -DCB_PRECOMP -DPIC -I$(top_srcdir)/src/include/tinyxml -DTIXML_USE_STL=YES
LDFLAGS:
CXX: g++ -std=c++11
CC: gcc
And to create the App bundle.
Thats it...