150 | | * Finally you need to install the WX libraries. In order to do so you need to find the current "best" set of versions for the WX libraries that are available on the repos. Run the command |
151 | | `sudo apt policy wx3.0-headers` |
152 | | and the command |
153 | | `sudo apt policy libwxgtk3.0-dev` |
154 | | take note of the version that is available for _both_ of them (at time of writing on my system it's `3.0.4+dfsg-8` and then install the following packages using the format `package=version`, so for |
155 | | example run |
156 | | {{{ |
157 | | #!sh |
158 | | sudo apt install wx3.0-headers=3.0.4+dfsg-8 libwxbase3.0-dev=3.0.4+dfsg-8 libwxgtk3.0-dev=3.0.4+dfsg-8 libwxbase3.0-0v5=3.0.4+dfsg-8 libwxgtk3.0-0v5=3.0.4+dfsg-8 |
159 | | }}} |
160 | | to make sure the required packages are all installed at the same version, or you _will_ get build errors. |
161 | | |
162 | | With Ubuntu 20.04 the package names changed getting an additional "-gtk3" so install e.g. `libwxgtk3.0-gtk3-dev` instead of `libwxgtk3.0-dev`. |
| 150 | * Finally you need to install the WX libraries. |
| 151 | {{{ |
| 152 | #!sh |
| 153 | sudo apt install wx3.0-headers libwxbase3.0-dev libwxgtk3.0-dev libwxbase3.0-0v5 libwxgtk3.0-0v5 |
| 154 | }}} |
| 155 | |
| 156 | With Ubuntu 20.04 some package names changed getting an additional "-gtk3" so install e.g. `libwxgtk3.0-gtk3-dev` instead of `libwxgtk3.0-dev`. (You can use "Tab" auto completion to see what packages are available for your distribution) |