wxWidgets has nothing to do with CodeBlocks (except that CodeBlocks uses it for its GUI
), CodeBlocks cant't include every dependency for every possible program you can create with it, otherwise it has to include the whole internet (except p0rn and cat videos
).
Linux is not Windows, you usually don't install stuff in your HOME, you install it system wide. And CodeBlocks only needs root for the installation, not during usage. Unless you maybe messed up your installation by running it as root and now some files have the wrong permissions. I remember heaving read some things about this, but without further details hard to say whats the cause.
Another problem is that you are using an ancient CodeBlocks version, the project wizard of that version is definately too old to create a project for your wxWidgets 3.x version. It doesn't look like you are missing GTK dev packages, your errors look like you are missing some include paths for wxWidgets, especially the platform ones that dont reside in the usual include directory. The wizard probably created wrong includes, you can fix this by adding the proper includes by using wx-config in backticks to query the paths, but sadly i currently don't know the details about this. Or you can try to use a nightly version of CodeBlocks, there was quite some work done on that project wizard lately so it might work out-of-the-box
.