Here is what i did:
1. Downloaded and installed wxWidgets 2.8.9
2. Compiled a wxWidgets dll using this command: mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
3. Set up a SVN view using tortoise SVN pointing to codeblocks trunk.
4. Switch SVN view to Revision 5322 + did an SVN update on highest folder structure.
5. Loaded Codeblocks.cbp into codeblocks and did a rebuild workspace.
6. Loaded Contrib workspace and did a rebuild workspace.
7. Ran the update.bat file to get the ressources packed.
I used the MinGW GCC 4.2.1 compiler form this location:
http://sourceforge.net/project/showfiles.php?group_id=173460
Try skipping building Contrib workspace; till you can get the base Code::Blocks build working.
Note: Building Contrib requires global variable "cb" to be set correctly.
I would also not use "MinGW GCC 4.2.1"; I know the Code::Blocks dev does, but I trust MinGW 3.4.5 version (mingw-vista special r3) better. And, the "MinGW GCC 4.2.1" gives bad crash reports.
Then, I would suggest using TDM GCC version 4.2.4-tdm-1; can be found on
http://www.tdragon.net/recentgcc/This tests your stuff can be built by people using "MinGW GCC 4.2.x".
My own build steps
1. Download wxWidgets source code
2. Compiled wxWidgets dll using this command:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
3. Set up a SVN view using tortoise SVN pointing to codeblocks trunk.
4. Use tortoise SVN "Update to revision"; input revision number 5a. Copy the wxWidgets dll created in step 2 to the devel folder.
5b. Copy the mingwm10.dll from your MinGW bin folder to the devel folder.
5c. delete the contents of the devel folder except for "mingwm10.dll" and wxWidgets DLL
5d. Loaded Codeblocks.cbp into codeblocks and do a rebuild workspace.
6a. verify global variable "cb" points to correct location
6b. delete the "output" folder.
6c. Ran the update.bat; Some Contrib require the directory structure to exist in the "output" folder.
6d. Loaded Contrib workspace and do a rebuild workspace.
7. Ran the update.bat file to get the resources packed.