This is a note I wrote long time ago when I was having constant crash in Code::Blocks 16 command line and decided to build 17 myself. Most of the information came either from Code::Blocks download web site or answers I got from this forum:
To build CodeBlocks for CentOS 7 from source
1. Follow the instructions in the link:
http://codeblocks.org/downloads/7 to down the latest version:
Anonymous SVN access via HTTP protocol:
Repository URL:
http://svn.code.sf.net/p/codeblocks/code/trunk Command: svn checkout
http://svn.code.sf.net/p/codeblocks/code/trunk2. Install the pre-requisite package
CentOS: wxGTK-devel <------- This is 2.8
Command: sudo yum -y install wxGTK-devel
Ubuntu: libwxgtk3.0-gtk3-dev
Command: sudo apt install libwxgtk3.0-gtk3-dev
3. Follow the instructions in the link:
http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_RPM_based_distributions#Build_the_RPM_package to build RPM:
Go into trunk, if you haven't already done it.
Commands:
cd trunk
./bootstrap
./configure --disable-fortran
make dist
rpmbuild -ta codeblocks*.tar.*
4. The resulting RPMs are created under $HOME/rpmbuild/RPMS/x86_64
The RPM file is already in the source repository.
The problem is in the availability of wxGTK 3.0 in CentOS repository.