Title: How to Install Code::Blocks on Gentoo Linux
Title: How to Install Code::Blocks on Gentoo Linux
Before you start, ensure that your system is up-to-date with the latest packages:
emerge --sync && emerge -auDN @worldInstall the necessary dependencies for Code::Blocks:
equery provides gcc
equery provides make
equety provides cmake
equery provides git
equery provides qt5-base/qt5-x11
equery provides wxGTKDownload the latest version of Code::Blocks from the official website: https://sourceforge.net/projects/codeblocks/files/ (as of now, it's 20.03)
Extract the downloaded archive using the following command:
tar xvf CodeBlocks-20.03.tar.bz2Navigate to the extracted directory and build and install Code::Blocks:
cd CodeBlocks-20.03
./configure --prefix=/usr
make
sudo make installTo configure the Qt plugin, you need to create a symlink:
sudo ln -s /usr/lib64/qt5/plugins /usr/share/codeblocks/Qt5Create the necessary directories and symlinks for wxWidgets plugin:
sudo mkdir -p /usr/share/codeblocks/wxGTK-3.0
sudo ln -s /usr/lib64/wx/gtk3-unicode-3.1 /usr/share/codeblocks/wxGTK-3.0/lib
sudo ln -s /usr/include/wx-3.1 /usr/share/codeblocks/wxGTK-3.0/include