31
Using Code::Blocks / Re: how to let github action to run codeblocks.exe to build cbp project
« Last post by Miguel Gimenez on September 25, 2026, 02:29:46 pm »Probably the "Select default compiler" dialog...
As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
Run # Quietly build the Code::Blocks project in CLI mode
# Quietly build the Code::Blocks project in CLI mode
codeblocks --no-splash-screen --no-associative --no-dde --target="Release" --build image-label-gui.cbp
shell: D:\a\_temp\setup-msys2\msys2.CMD {0}
env:
MSYSTEM: UCRT64
Starting Code::Blocks Release 25.03 rev 0 Jul 28 2026, 05:55:01 - wxWidgets 3.2.10 - gcc 16.1.0 (Windows, unicode) - 64 bit
Manager initialized
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
Abbreviations: loaded
AStylePlugin: loaded
Autosave: loaded
AutoVersioning: loaded
BrowseTracker: loaded
BYOGames: loaded
CB_Koders: loaded
Cccc: loaded
clangd_client: loaded
ClassWizard: loaded
CodeCompletion: loaded
CodeSnippets: loaded
CodeStat: loaded
Compiler: loaded
copystrings: loaded
CppCheck: loaded
Cscope: loaded
Debugger: loaded
FilesExtensionHandler: loaded
DoxyBlocks: loaded
cbDragScroll: loaded
EditorConfig: loaded
EditorTweaks: loaded
EnvVars: loaded
Exporter: loaded
FileManager: loaded
HeaderFixup: loaded
HelpPlugin: loaded
HexEditor: loaded
IncrementalSearch: loaded
cbKeyBinder: loaded
lib_finder: loaded
MouseSap: loaded
NassiShneidermanPlugin: loaded
OccurrencesHighlighting: loaded
OpenFilesList: loaded
Profiler: loaded
ProjectOptionsManipulator: loaded
ProjectsImporter: loaded
RegExTestbed: loaded
ReopenEditor: loaded
rndgen: loaded
ScriptedWizard: loaded
SmartIndentCpp: loaded
SmartIndentFortran: loaded
SmartIndentHDL: loaded
SmartIndentLua: loaded
SmartIndentPascal: loaded
SmartIndentPython: loaded
SmartIndentXML: loaded
SpellChecker: loaded
SymTab: loaded
ThreadSearch: loaded
ToDoList: loaded
ToolsPlus: loaded
The plugin name "wxSmithMime" does not match the name in the "wxSmith" file.
wxSmith: loaded
wxSmithMime: loaded
wxSmithAui: loaded
wxSmithContribItems: loaded
WindowsXPLookNFeel: loaded
Abbreviations plugin activated
Source code formatter (AStyle) plugin activated
Autosave plugin activated
Automatic versioning plugin activated
BrowseTracker plugin activated
BYO Games plugin activated
Koders query plugin activated
Cccc plugin activated
Class wizard plugin activated
Code completion plugin activated
Code snippets plugin activated
Code statistics plugin activated
Added compiler "GNU GCC Compiler"
ClassBrowser::UpdateClassBrowserView(): No active project available.
Updating class browser...
Class browser updated (452 msec)
Added compiler "Microsoft Visual C++ Toolkit 2003"
Added compiler "Microsoft Visual C++ 2005/2008"
Added compiler "Microsoft Visual C++ 2010"
Added compiler "Microsoft Visual C++ 2017"
Added compiler "OpenWatcom (W32) Compiler"
Added compiler "Cygwin GCC"
Added compiler "LCC Compiler"
Added compiler "Keil C51 Compiler"
Added compiler "Keil CX51 Compiler"
Added compiler "IAR 8051 Compiler"
Added compiler "IAR ARM Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for Android"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "Borland C++ Compiler (5.5, 5.82)"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "LLVM Clang Compiler"
Added compiler "Digital Mars Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU GCC MinGW Compiler"
Added compiler "GNU GCC MinGW64 Compiler"
Added compiler "GNU GCC MSYS MinGW32 Compiler"
Added compiler "GNU GCC MSYS MinGW64 Compiler"
Added compiler "GNU GCC TDM-32 Compiler"
Added compiler "GNU GCC TDM-64 Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "Code Warrior Compiler for PowerPC"
Added compiler "*No Compiler*"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "Small Device C Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "GNU GCC Compiler for ZPU"
Master path of compiler ID "gcc" is empty -> triggers auto-detection.
Master path of compiler ID "msvctk" is empty -> triggers auto-detection.
Master path of compiler ID "msvc8" is empty -> triggers auto-detection.
Master path of compiler ID "mTerminate batch job (Y/N)?
Error: The operation was canceled.
codeblocks.exe --no-associative --no-dde --target="Release" --build test.cbp#!/bin/bash
set -e
# Required packages
sudo apt update
sudo apt install -y build-essential libtool pkg-config libglib2.0-dev libgtk-3-dev libwxgtk3.2-dev subversion
# Get the source
cd "$(xdg-user-dir DOCUMENTS)"
svn checkout svn://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-code
cd codeblocks-code
# Build & install
./bootstrap
./configure --with-contrib-plugins=all,-NassiShneiderman --prefix=/opt/codeblocks
make -j $(nproc)
sudo make install
# Desktop integration
mkdir -p ~/.local/share/applications
cat /opt/codeblocks/share/applications/codeblocks.desktop | \
sed 's/^Exec=.*/Exec=\/opt\/codeblocks\/bin\/codeblocks \%F/' | \
sed 's/^Icon=.*/Icon=application-x-codeblocks/' > ~/.local/share/applications/codeblocks.desktop
mkdir -p ~/.local/share/icons/hicolor/48x48/mimetypes
ln -s /opt/codeblocks/share/icons/hicolor/48x48/mimetypes/* ~/.local/share/icons/hicolor/48x48/mimetypes/
mkdir -p ~/.local/share/mime/packages
ln -s /opt/codeblocks/share/mime/packages/* ~/.local/share/mime/packages/
# Test if pkg-config/pkgconf exists or else PKG_CHECK_MODULES(..) is not generated
if test -z "`which pkg-config`" && test -z "`which pkgconf`"; then
echo "pkg-config or pkgconf is required. Aborting build..."
exit 1
fi
AC_CHECK_LIB([z], [compress2], [], [AC_MSG_ERROR([ZLib (libz) was not found!])])#wxWidgets install
sudo apt install libwxgtk3.2-dev
#Alternatively wxWidgets build from source
git clone https://github.com/wxWidgets/wxWidgets.git
cd wxWidgets
git checkout v3.3.3
git submodule update --init
mkdir build-v3.3.3/
cd build-v3.3.3/
CC=/usr/local/bin/gcc-15.2.0 CPP=/usr/local/bin/cpp-15.2.0 CXX=/usr/local/bin/g++-15.2.0 ../configure --enable-xrc --enable-monolithic --enable-debug --enable-stc --enable-webview
make -j$(( $(nproc) - 1 ))
sudo make install
#install deps
sudo apt install libtool cmake
#Build C::B
cd ~/codeblocks-code
ACLOCAL_FLAGS="-I /usr/local/share/aclocal" ./bootstrap #ACLOCAL_FLAGS required only when installed wxwidgets from source
./configure --with-contrib-plugins=all --prefix=/opt/codeblocks/
make -j$(( $(nproc) - 1 )) install -k
Hi Danois, could you please check if AppImage detailed in https://forums.codeblocks.org/index.php/topic,26313.msg178904.html#msg178904 works?