Author Topic: CodeBlocks on Linux  (Read 2638 times)

Offline Ender4rmy

  • Single posting newcomer
  • *
  • Posts: 3
CodeBlocks on Linux
« on: May 21, 2026, 11:29:05 am »
Hello. I am new to this forum and only recently started using Code::Blocks, as it is needed for Vocational School. As I primarily use Linux I have had horrible experiences getting the IDE to work. This post should serve as Help on how I eventually did get it to work, and as a cry for help to fix the versions available on Linux. If not possible by the devs then hopefully by community members who are able and willing to fix those.

So what where the issues and how did I get it working?

The flatpak version, while working, does not come with any of the Contrib Plugins. Even installing the optional Plugins that are available to download via e.g. the Gnome Store didnt help. This wouldnt be that much of an issue, if my workflow wouildnt need the File Manager Plugin, which is a part of the Contrib Plugins.

The Distro Packagemanager Version has the issue that upon installing it and trying to start it, that it simply doesnt start and crash on startup. This seems to be a known issue because it was reported on the Arch Repository Site atleast 5 months ago. The issue stems from something to do with wxWidgets. Deleting files related to wxWidgets makes the crash not happen. Though even if it starts there is again the issue of the Contrib Plugins missing, with no way to install them afterwards(atleast to my knowledge and I couldnt even find a way to download JUST those contrib Plugins). While I mentioned the Arch Repository, this also seems to be an issue with the APT package manager, where wxWidgets causes the programm to crash on startup and the contrib Plugins not being installed.

The AUR Version has a seperate Issue entirely, and while none at Code::Blocks actually have an influence on that version, I do want to mention it in the hopes of someone being able to fix it, since I am currently unable to even create an AUR Account. The issue, from what I can tell, is that the make script of the AUR version seems to be looking for an outdated SVN Link. On the SVN Repo of CodeBlocks I also seem to notice that at some point the way the developers have previously released their sourcecode on SVN seems to have changed at some point.

So how did get it to work?

I got the sourcecode fresh from the SVN Repo, which was a struggle since not every Distro comes with a way to interact with SVN.
Depending on the distro all you would need to do is open the source folder inside the terminal, run ./bootstrap and then run "./configure --with-contrib-plugins=all
make -j$(nproc)
sudo make install"

What can happen is that you will get errors of specific packages not being installed that the make script needs to actually build CodeBlocks from sourcecode. If that happens just go through the error code and install those packages manually. For the Devs you could add a part to the BUILD instructions to atleast mention ALL the packages needed to make the build happen. I myself went through the headache of going through forum posts, and asking AI for help and clarification.
After doing that you should have a fully functioning, newest Version of Code::Blocks that comes with all Contrib Plugins installed and working.

There is another Issue I have come across. I recently switched from CachyOS(Arch Based) to PikaOS(debian sid based). When I wanted to reinstall Code::Blocks I remembered the official website actually does provide a download for Debian based systems. I downloaded it and ran a command to automatically install all .deb files in the current working directory of the terminal. It installed and when I tried to start it, it crashed again on startup. And what do you know? Inside the /usr/lib/codeblocks/plugins directory were 3 files from wxWidgets. Deleting those causes the crash to dissapear. This variant does also install the Contrib Plugins BUT for some reason, it wasnt able to build code. And running already built code comes with such a delay that it makes you question wether or not you actually pressed the run button.

This is everything I have encountered, trying to make Code::Blocks work on Linux. I hope this will help others in some way

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1864
Re: CodeBlocks on Linux
« Reply #1 on: May 21, 2026, 01:19:27 pm »
The startup lock on Arch/Fedora is fixed in the current trunk (r13845), in fact Fedora's package has been updated (to Testing in 44 and Stable in Rawhide).

You do not need to mess with SVN, Sourceforge allows downloading a snapshot in ZIP format.

You can edit the Wiki page with your forum credentials (just open it while registered in the forum) and add your findings.

Offline Ender4rmy

  • Single posting newcomer
  • *
  • Posts: 3
Re: CodeBlocks on Linux
« Reply #2 on: Yesterday at 03:22:21 pm »
Sorry for the late reply. Great to hear that the freeze has been fixed on Arch and Fedora. I guess Sourceforge confused me a bit there. When I was on the svn page of Code::Blocks my Kdevelop sorta popped up and told me it can just download it for me so I did.
Hope the AUR was also, or is being fixed.
On a freshly installed release of CachyOS and PikaOS, while I was able to install Code::Blocks via flatpak(on PikaOS even using the Gnome Store), I wasnt able to install the Contrib Plugins on either System, which is kinda why I got to the point of building from Source and which is why I made this Post.

Also dont understand what you mean with "Forum Credentials", sorry I am quite new to using a Forum

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1864
Re: CodeBlocks on Linux
« Reply #3 on: Yesterday at 04:17:57 pm »
C::B in Flatpak has some problems due to the folder protection set by the Flatpak creator; some needed folders are not accesible to C::B.

Quote
Also dont understand what you mean with "Forum Credentials"

The user name and password you use when logging in this forum. While you are logged in the forum you can go to the Wiki page and edit it.

Offline Ender4rmy

  • Single posting newcomer
  • *
  • Posts: 3
Re: CodeBlocks on Linux
« Reply #4 on: Yesterday at 04:54:05 pm »
Ah alright. Weirdly some people told me that the Flatpak works for them without issue.

Also I dont think I need to change any credentials. As far as I know I set them up as they should be

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1864
Re: CodeBlocks on Linux
« Reply #5 on: Yesterday at 06:40:07 pm »
Quote
Also I dont think I need to change any credentials

I was talking about changing the Wiki (using your current forum credentials) to add your findings, not about editing your credentials.