
$ update-alternatives -install /usr/bin/wx-config wx-config /opt/wx/2.8/bin/wx-config 50 Getting wxGTK sources To see which version of libwx is there or not and currently active.Īnd, Debian and Ubuntu user can use this to add a value to the list of choices Note for Debian and Ubuntu users: You can use
#CODE BLOCKS WXWIDGETS INSTALL#
If you don't find any packages you must install the library from source as described below, and you can redo this check afterwards to verify that the installation worked correctly. $ ls /usr/lib/libwx_gtk* //to verify the presence If you find the libraries uninstalled, just install them and go directly to Code::Blocks installation.Īlternatively you can do the same in the command line (the following is an example, there may be more than two packages): In your package manager, look for 'libwxgtk' keyword and verify that all libwxgtk2.8 stuffs are installed. Library wxGTK installation Checking the presence of libwxGTK library If you don't want to loose time, you can even forget this check since there is a good probability that everything is already installed. Alternatively, do a search with your package manager or go to your Linux distribution forum for help.

Have a look in /usr/lib ( /usr/lib/x86_64-linux-gnu for 64 bits) for something like "libgtk-x11-2.0.so" (Note the library must be 2.0 minimum). Mkdir ~/devel Checking the presence of GTK+ library If you 'll be using a different one, adjust the path to match. Note: All the instructions below, assume an existing directory named ~/devel. GTK+ is probably installed on your Linux anyway, so don't worry ) This document helps you to install libwxGTK if necessary but does not cover the installation of GTK+. This creates an additional dependency on GTK+, consider the following:Ī possible implementation which does not exist:Ĭode::Blocks -> wxWidgets (libwxX11) -> XĬode::Blocks -> wxWidgets (> libwxGTK2.8) -> GTK+ (> libgtk-x11-2.0) -> X The exact requirement is libwxGTK-2.8.0 or later (2.8.3 is not recommended because of some troubles). Hence Code::Blocks uses wxGTK, the version of wxWidget based on GTK+. However this library is sub-par compared to other toolkits and unstable. wxWidget can be used directly on top of the X server, in this case the variant of the wxWidget library is called wxX11. For most Linux users, this is maybe the only dependency not already installed.

In order to successfully compile Code::Blocks, the wxWidgets User Interface library must be installed. 3.1 Checking the presence of libwxGTK library.

