Author Topic: wxSmith has a blackout!  (Read 1051 times)

Offline Danois

  • Multiple posting newcomer
  • *
  • Posts: 10
wxSmith has a blackout!
« on: September 19, 2026, 08:15:45 pm »
I am using C::B 25.03 from Kubuntu 26.04 (Wayland) repos. The first issue I had was the startup hanging which I temporarily fixed by renaming the wxSmith related zip's in "/usr/share/codeblocks". Since I have built Gdk-Pixbuf to version 2.42.12 and stored the libraries in "~/.local/lib" and used LD_LIBRARY_PATH to enable C::B to find those libraries. Now C::B starts as expected and there are no problems / errors when loading a wxSmith resources in the IDE, so I assume that wxSmith is (technically) working as it should. The issue is that whenever I load a resource, the wxFrame is displayed correctly for a brief moment whereafter the entire wxSmith area in the IDE goes black and stays like that.

Does anyone know a fix for this issue?

I have been looking at this build guide for building the entire C::B IDE from sources, but that looks.. Eherm.. Less palatable...... ;-)

Offline christo

  • Developer
  • Multiple posting newcomer
  • *****
  • Posts: 94
Re: wxSmith has a blackout!
« Reply #1 on: September 20, 2026, 05:05:49 am »
Hi Danois, could you please check if AppImage detailed in https://forums.codeblocks.org/index.php/topic,26313.msg178904.html#msg178904 works?

Offline Danois

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: wxSmith has a blackout!
« Reply #2 on: Yesterday at 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! :-)

Offline christo

  • Developer
  • Multiple posting newcomer
  • *****
  • Posts: 94
Re: wxSmith has a blackout!
« Reply #3 on: Today at 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