I discovered that codeblocks was in the fedora repository and I removed the previous nightly build and tried to install it using yum install codeblocks and it installed and then died with the same error.
edit: using the repo wxGTK and installing codeblocks from source worked.