User forums > Help

Building C::B against different versions of wx & gtk


After having had some issues with the official Code::Blocks 20.03 (ubuntu) using gtk3, I have built some versions of wxWidgets using static and shared libraries with gtk2 and gtk3 (in theory the list could be much longer):

--- Code: ---/usr/local/bin/wx-config --list

    Default config is gtk2-unicode-3.0

  Default config will be used for output

  Alternate matches:
--- End code ---
After that my goal was to build Code::Blocks several times from source each time using a selected version of wxWidgets and gtk to see what worked best. Specifically I wanted to build with wx3.0 and gtk2, and "by luck" I managed to do that because it matched my default configuration of wx, I did:

./configure --with-contrib-plugins=all  --with-wx-config=/usr/local/bin/wx-config --prefix=/ssd1/cb/

But what if I want to build C::B against one of the other available combinations of wx/gtk, what is the proper syntax for doing that? wx-config has options to select wxWidgets version and toolkit (gtk) version:


But I can't quite figure out how to pass these options to wx-config when running Code::Blocks ./configure and thus control how C::B is built.

Can you enlighten me?

There are multiple wx-config scripts. One per configuration:

--- Code: ---> find /usr/lib/wx/config/

--- End code ---

It should be possible to use this path directly.

Ok, I didn't know that it worked that way, In my case I get

--- Code: ---> find /usr/local/lib/wx/config/*

--- End code ---
Now it all makes sense. Many thanks!


[0] Message Index

Go to full version