Codeblocks is probably the easy part ..
./configure CC=arm-linux-gcc CXX=arm-linux-c++
The real hard? work is :
1) Codeblock depends on wxGTK2.8 : Must be cross compiled.
2) But to build wxGTK2.8 ( wx widgets ), all wxGTK2.8's
twenty dependencies must be present as cross compiled
Example dependency list, libwxgtk2.8-0 :
As you can see, libwxgtk2.8-0 is available for 'arm'.
And may be the most libs too. Check it yourself, please.
Good luck .. ..