Code::Blocks Forums

User forums => Help => Topic started by: Pecan on February 06, 2020, 08:10:29 pm

Title: How to compile CodeBlocks with wxWidgets 3.1.3
Post by: Pecan on February 06, 2020, 08:10:29 pm
How do you compile wxWidgets 3.1.3 and CodeBlocks source for Linux.

On Linux Mint 19.2 I have compiled wxWidgets 3.1.3 with the following script.
./configure --prefix=/opt/wx/3.1.3 \
       --enable-xrc \
       --enable-monolithic \
       --enable-shared \
       --enable-unicode

How do I now compile CodeBlocks source with the the resulting wxWidgets?
Title: Re: How to compile CodeBlocks with wxWidgets 3.1.3
Post by: sodev on February 06, 2020, 09:50:21 pm
I don't know if CodeBlocks can use the monolithic library out-of-the-box or how to make it use it, so far i was always using the individual libraries because that is how the systems i used provided wxWidgets, but basically you have to supply the path of the wx-config script to the configure script of CodeBlocks. With your setup this would be something like this:

Code
./configure --with-wx-config=/opt/wx/3.1.3/bin/wx-config