well...run.sh is running output/codeblocks.exe
which wants to load devel/codeblocks.dylib
and output/devel/codeblocks.dylib doesn't exist of course. it should want to look for output/codeblocks.dylib but maybe some of those -Ldevel library paths hardcoded the libpath in the exe? this should really be tested more on linux (why -Ldevel isn't needed on windows to link the sdk libs I'm not sure, maybe it should be -L"." instead on linux, not sure).
just for kicks does it load if you copy devel to output? or modify run.sh to run the .exe in the devel directory instead of the output one?
edit:
actually, the run.sh may need to be modified for macos? does mac use LD_LIBRARY_PATH (like linux) or LIBPATH?
http://msgs.securepoint.com/cgi-bin/get/openssh-unix-dev-0507/9/1/1.html