This is an unofficial Flatpak version of Code::Blocks IDE that is not endorsed nor supported by its developer.
Please open issues under: https://github.com/flathub/org.codeblocks.codeblocks/issues
This version is running inside a container and is therefore not able to access SDKs on your host system!
This flatpak provides a standard development environment (gcc, python, etc).
- To see what's available:
$ flatpak run --command=sh org.codeblocks.codeblocks $ ls /usr/bin (shared runtime) $ ls /app/bin (bundled with this flatpak) - To get support for additional languages, you have to install SDK extensions, e.g.
$ flatpak install flathub org.freedesktop.Sdk.Extension.dotnet $ flatpak install flathub org.freedesktop.Sdk.Extension.golang - To enable selected extensions, set
FLATPAK_ENABLE_SDK_EXTenvironment variable to a comma-separated list of extension names (name is ID portion after the last dot):$ FLATPAK_ENABLE_SDK_EXT=dotnet,golang flatpak run org.codeblocks.codeblocks - To make this persistent, set the variable via flatpak override:
$ flatpak override --user org.codeblocks.codeblocks --env=FLATPAK_ENABLE_SDK_EXT="dotnet,golang" - You can use
$ flatpak search <TEXT>to find others.
The Code::Blocks plugin org.codeblocks.codeblocks.Plugin.devtools, contains:
- sfml2
- sfml3
- wxWidgets3.2
- raylib5
- fltk1
They are installed in /app/plugins/devtools/ with the structure:
├── bin
├── include
│ ├── FL
│ ├── GL
│ ├── GLFW
│ ├── SFML3
| | └── SFML
│ └── SFML2
│ └── SFML
├── lib
│ ├── SFML3
│ | ├── cmake
│ | └── pkgconfig
| └── SFML2
├── cmake
└── pkgconfig
For example, to configure a project with SFML3 you must indicate the use of headers and libraries, in Proyect-> Build Options-> Search directories, having created a project for SFML2.
- /app/plugins/devtools/include/SFML3 (Add to Compiler)
- /app/plugins/devtools/lib/SFML3 (Add to Linker)
For SFML2,
- /app/plugins/devtools/include/SFML2 (Add to Compiler)
- /app/plugins/devtools/lib/SFML2 (Add to Linker)
If you want to install version 20.03 of Code::Blocks you must install the current version and then run,
sudo flatpak update --commit=5e9b0df4e7c901558d22c8c28cd51177fa7d486d9c88bab64d8691d0345ebeaf org.codeblocks.codeblocks//stable