Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Code
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.


I see it just hangs. Maybe some message box jumps out, and it is waiting for user input or click.

see:

https://github.com/asmwarrior/image-label-gui/actions/runs/36129683779/job/108053833030
32
Using Code::Blocks / how to let github action to run codeblocks.exe to build cbp project
« Last post by ollydbg on September 25, 2026, 03:32:41 am »
Any one has such experience before? I mean I have a cbp project, and I'd like to run something like:

Code
codeblocks.exe --no-associative --no-dde --target="Release" --build test.cbp

Thanks.

I found one discussion 6 years ago, but this is on a linux build, see this: github action [Resolved]

33
Help / Re: wxSmith has a blackout!
« Last post by Danois on September 24, 2026, 07:26:49 pm »
Thank you for your suggestion. I spun up a VM with a clean instance of Kubuntu 26.04 (I assume the following works for any *buntu), and this is what worked:

Code
#!/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/

There are a couple of things, though.. Whilst running "configure .." i got an error that seemed to be related to a missing library (zlib), but after a lot of investigation I found out that the macro "PKG_CHECK_MODULES( .. )" was unavailable because the package "pkg-config" was not installed. I would suggest to either check for the presence of this package during bootstrap:

Code
# 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

The portability of this approach is unknown, though.. You could also use AC_CHECK_LIB in configure.ac instead:

Code
AC_CHECK_LIB([z], [compress2], [], [AC_MSG_ERROR([ZLib (libz) was not found!])])

Which is portable.

During the first launch of C::B, i created a new wxWidgets project and landed on wxSmith which took up all the space of the main window and from there I had to go to the View menu and show the "Manager" before I could find the headers / sources. If you are not familiar with C::B, that is not very intuitive and I would suggest that the Manager showing the "Projects" tab is always displayed when C::B is launched for the first time.

EDIT: I posted the wrong "bootstrap" snippet, "pkg-config --version" should have been "which pkg-config" which is corrected now.
34
Development / Re: Change to C++17?
« Last post by gd_on on September 24, 2026, 09:23:51 am »
I usually build CB with gnu++20 (even tests with gnu++26). No problems, except a few warnings concerning obsolete things which are not there with c++17. I have seen that the generated code is a little bit bigger.
35
Development / Re: Change to C++17?
« Last post by killerbot on September 23, 2026, 07:09:18 pm »
are there any objections to switch to c++20 or even c++23 ?

I think the winlibs gcc ports for windows also nicely support it, because I build CB (and wx) with it, and that goes fine.
36
I would be very interested to see such a feature and use it when distributing my software.
37
Help / Re: Building CB : cannot find -lexchndl.dll: No such file or directory
« Last post by charles5577 on September 22, 2026, 11:59:39 am »
I tried with the latest SVN code. It works.
Thanks everyone!
38
Help / Re: wxSmith has a blackout!
« Last post by christo on September 22, 2026, 03:58:44 am »
Please see the steps I use to build on my ubuntu 24.04, hope this is helpful for you

Code
#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
39
Help / Re: wxSmith has a blackout!
« Last post by Danois on September 21, 2026, 07:27:09 pm »
Hi Danois, could you please check if AppImage detailed in https://forums.codeblocks.org/index.php/topic,26313.msg178904.html#msg178904 works?

I have tested the AppImage, and the issues I have mentioned in this topic are not present with the AppImage version. I have also been looking at the "real" build guide and I'm goint to try to build C::B from sources and see how it goes. If the build succeeds, I'm using that and if not I'll use the AppImage.

Thanks so far! :-)
40
Plugins development / Re: compiler patch
« Last post by Miguel Gimenez on September 21, 2026, 11:16:54 am »
Applied in r14038, thanks.

I have added also silent.png with the different resolutions needed for wxWidgets 3.0.
Pages: 1 2 3 [4] 5 6 7 8 9 10