Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Help / Re: wxSmith has a blackout!
« Last post by Danois on Yesterday at 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/

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 "`pkg-config --version`" && test -z "`pkgconf --version`"; 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.
2
Development / Re: Change to C++17?
« Last post by gd_on on Yesterday at 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.
3
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.
4
I would be very interested to see such a feature and use it when distributing my software.
5
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!
6
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
7
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! :-)
8
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.
9
Development / Re: Change to C++17?
« Last post by LETARTARE on September 21, 2026, 10:03:05 am »
I use 'https://codeberg.org/' which has a translation service : 'https://translate.codeberg.org/'
10
Plugins development / compiler patch
« Last post by stahta01 on September 20, 2026, 10:06:10 pm »
I have not yet tested this patch.

Tim S.

Code
Index: src/plugins/compilergcc/resources/Makefile.am
===================================================================
--- src/plugins/compilergcc/resources/Makefile.am       (revision 14037)
+++ src/plugins/compilergcc/resources/Makefile.am       (working copy)
@@ -56,7 +56,8 @@
        images/svg/compilerun.svg \
        images/svg/rebuild.svg \
        images/svg/run.svg \
-       images/svg/stop.svg
+       images/svg/stop.svg \
+       images/svg/silent.svg

Message on shutdown (I do not see the startup messages till I exist CB so this might be a startup message)
Code
Loading toolbar...
cbLoadBitmapBundleFromSVG: Cannot load 'C:\msys64_SDL_testing\opt\codeblocks\bin\..\share\codeblocks/compiler.zip#zip:/images/svg/silent.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'C:\msys64_SDL_testing\opt\codeblocks\bin\..\share\codeblocks/compiler.zip#zip:/images/svg/silent.svg'
Pages: [1] 2 3 4 5 6 ... 10