Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Using multiple version of wxWidgets with Linux

(1/1)

Pecan:
Can multiple versions of wxWidgets reside on Linux Mint?

If so, how can I install wxWidgets v2.8.12 and v3.1.1 on my Linux Mint 17.2 in order to do better validation of plugins. Mint currently contains wxWidgets 3.0 .

 

sodev:
In general, yes, the tricky part is to select which one is used.

CodeBlocks, at least when building with autotools, uses the wx-config script. Depending on how you install the wxWidgets versions installation source and/or order determine which one will be used by default: the one from /usr/bin or /usr/local/bin and to what real version the symlink points.

The CodeBlocks autotools don't supply the requested version to the wx-config script but you can tell it which script to use. In my case, my selfbuild wx-master installs wx-config into /usr/local/bin which points to /usr/local/lib64/wx/config/gtk3-unicode-3.1. If i want to make sure that CodeBlocks uses this version i would execute ./configure --with-wx-config=/usr/local/lib64/wx/config/gtk3-unicode-3.1

I don't use Linux Mint, i don't know what packages they offer, but you can always compile from source. You might need to figure out which packages you need to install to be able to compile, since it offers wxWidgets 3.0 a good start would be to install the dev-packages of the libraries this package depends on.

oBFusCATed:
Build wx manually and specify non-default prefix. Then use --with-wx-config=path-to-wx-config-in-non-default-prefix. This is what I use to test non-default versions of wx.

Navigation

[0] Message Index

Go to full version