Recent Changes - Search:

Home Page


Main

Downloads
Windows
macOS
Linux (via apt / rpm )
Linux wxWidgets
Release Notes

Wiki
Documentation
FAQ

Build CodeLite
Linux
Windows
macOS

Devs
Debug CodeLite Linux
Building Clang
Build wxWidgets (MSW)
Coding Guidelines
Create a Plugin

WxWidgets314Binaries

wxWidgets 3.1 Packages and Repositories


This page is for the latest development release, wx3.1.4. For the previous development release, wx3.1.3, see WxWidgets313Binaries. For the latest stable release, wx3.0.5, see WxWidgets30Binaries.

The CodeLite packages for Linux now use wxWidgets 3.1. As wx3.1 is a development branch, few distros will supply it. I've therefore built 3.1.4 packages for the commonest ones.

Starting with wx3.1.1 I've built debs against GTK+3 in addition to GTK+2. You should be able to install either or both sorts without conflict. If you install both sets you should (on most distros) be able to choose between them using update-alternatives: #>update-alternatives --config wx-config

Also starting with wx3.1.1, there are openSUSE rpms built against GTK+3 in addition to GTK+2. The fedora ones remain GTK+3, as they were in wx3.1.0.

The packages are signed with the CodeLite public key so, if you haven't done so before, you should tell apt or rpm about this by doing as superuser (su or sudo depending on your distro):


 apt-key adv --fetch-keys https://repos.codelite.org/CodeLite.asc

or


 rpm --import https://repos.codelite.org/CodeLite.asc

Ubuntu and debian

  • I've changed the name used for the gtk3 media dev package to be consistent with the other unofficial3-dev ones. Previously it was libwxgtk-media3.1-unofficial3-dev; now it's libwxgtk-media3.1unofficial3-dev.
  • I had previously assumed that the gtk2 and gtk3 wx3.1-headers packages had the same contents. In fact they install files to different subdirs and, as the two packages could not be installed at once, that made it impossible to compile using both libwxgtk3.1-dev and libwxgtk3.1unofficial3-dev, even though both were installed. So I've now renamed the gtk2 package to wx3.1gtk2-headers. If the wx3.1.3 wx3.1-headers is currently installed, you should first update (or uninstall) it as it will prevent wx3.1gtk2-headers from installing cleanly.
    UPDATE: This is still broken for gtk3: see this wxForum thread. The quick-fix is to install wx3.1gtk2-headers too. I'll try to get it right in the next wx release...

If you use a debian-based distro there are the following wxWidgets repositories available:

 RepositoryAvailable VersionsComponent
debianhttps://repos.codelite.org/wx3.1.4/debian/busterlibs
ubuntuhttps://repos.codelite.org/wx3.1.4/ubuntu/bionic focal groovyuniverse

The repositories also contain wx3.1.0 to wx3.1.3 builds (including some i386 ones) for debian stretch, and ubuntu trusty, wily to artful and cosmic to eoan. These are also available via WxWidgets313Binaries and earlier.

The ubuntu ones should also work on other *buntus of the same version, and on derivatives e.g. Mint.

For Mint 20 the ubuntu focal dev packages don't work. That is because Mint puts its grep and egrep in /bin/ instead of /usr/bin/. As a result the wx-config script doesn't work properly. See this wxForum thread for possible workarounds.

Now let apt know that the repository exits. If you use an apt front-end e.g. synaptic, tell it to Add a repository, using as data the appropriate entry in the table above.

If you do things by hand, add the appropriate url to /etc/apt/sources.list. Become superuser and either use a text editor to edit /etc/apt/sources.list, adding a line similar to:


deb https://repos.codelite.org/wx3.1.4/debian/ buster libs

or, in a terminal, do something like:


sudo apt-add-repository 'deb https://repos.codelite.org/wx3.1.4/ubuntu/ groovy universe'

The line to add is different for different distros/versions; choose the appropriate one:

Distro/releaseLine to append
debian busterdeb https://repos.codelite.org/wx3.1.4/debian/ buster libs
ubuntu bionicdeb https://repos.codelite.org/wx3.1.4/ubuntu/ bionic universe
ubuntu focaldeb https://repos.codelite.org/wx3.1.4/ubuntu/ focal universe
ubuntu groovydeb https://repos.codelite.org/wx3.1.4/ubuntu/ groovy universe

You then need update the repositories. In synaptic, click the Reload button. If you're doing things by hand, do:


 apt-get update

Synaptic users can then select and install as usual. By hand you can do, for GTK+2 debs:


 apt-get install libwxbase3.1-0-unofficial \
                 libwxbase3.1-dev \
                 libwxgtk3.1-0-unofficial \
                 libwxgtk3.1-dev \
                 wx3.1gtk2-headers \
                 wx-common \
                 libwxgtk-media3.1-0-unofficial \
                 libwxgtk-media3.1-dev \
                 libwxbase3.1-0-unofficial-dbg \
                 libwxgtk3.1-0-unofficial-dbg \
                 libwxgtk-media3.1-0-unofficial-dbg \
                 wx3.1-i18n \
                 wx3.1-examples

The equivalent command for the GTK+3 debs is:


 apt-get install libwxbase3.1-0-unofficial3 \
                 libwxbase3.1unofficial3-dev \
                 libwxgtk3.1-0-unofficial3 \
                 libwxgtk3.1unofficial3-dev \
                 wx3.1-headers \
                 wx-common \
                 libwxgtk-media3.1-0-unofficial3 \
                 libwxgtk-media3.1unofficial3-dev \
                 libwxgtk-webview3.1-0-unofficial3 \
                 libwxgtk-webview3.1unofficial3-dev \
                 libwxbase3.1-0-unofficial3-dbg \
                 libwxgtk3.1-0-unofficial3-dbg \
                 libwxgtk-webview3.1-0-unofficial3-dbg \
                 libwxgtk-media3.1-0-unofficial3-dbg \
                 wx3.1-i18n \
                 wx3.1-examples

The first 6 of the debs are required; the others optional (and of decreasing importance).

wx-common and wx3.1-i18n will conflict with the distro's wx2.8 equivalents. That is unlikely to matter too much; but wx-common contains wxrc so, if you use this, be aware that there may be differences after upgrading.

Note: The wxGTK2 builds do not include the wxWebview libraries. That is because recent distro releases don't provide the necessary dependencies; IIUC that is because webkitgtk2 is no longer being updated and is considered a security risk. wx3.1.4 can utilise its successor, webkit2gtk, but only for GTK+3 builds.

Fedora and openSUSE

There are currently rpms available for fedora 32 and 33. openSUSE 15 provides its own wxWidgets 3.1.1 but is unlikely to update that to 3.1.4 so I've provided these too. For previous versions of these distros (including i386 ones) see WxWidgets313Binaries.

DistroReleasex86_64
fedora32 & 33wx-base-unicode wxGTK31 wxGTK31-devel wxGTK31-gl wxGTK31-media wxGTK31-debuginfo
openSUSE GTK+215.2libwx_baseu_net libwx_baseu libwx_baseu_xml libwx_gtk2u_adv libwx_gtk2u_aui libwx_gtk2u_core libwx_gtk2u_gl libwx_gtk2u_html libwx_gtk2u_media libwx_gtk2u_propgrid libwx_gtk2u_qa libwx_gtk2u_ribbon libwx_gtk2u_richtext libwx_gtk2u_stc libwx_gtk2u_webview libwx_gtk2u_xrc wxWidgets2-3_1-devel wxWidgets2-3_1-plugin-sound_sdlu
openSUSE GTK+315.2libwx_baseu_net libwx_baseu libwx_baseu_xml libwx_gtk3u_adv libwx_gtk3u_aui libwx_gtk3u_core libwx_gtk3u_gl libwx_gtk3u_html libwx_gtk3u_media libwx_gtk3u_propgrid libwx_gtk3u_qa libwx_gtk3u_ribbon libwx_gtk3u_richtext libwx_gtk3u_stc libwx_gtk3u_webview libwx_gtk2u_xrc wxWidgets-3_1-devel wxWidgets-3_1-plugin-sound_sdlu

There are also source rpms for Fedora, and openSUSE GTK+2 and openSUSE GTK+3. The fedora srpm should also build on CentOS 8.

Either download the required rpms and install them as usual, or download and install in one step; e.g.


rpm -Uvh https://repos.codelite.org/wx3.1.4/wx3.1-packages/suse/wxWidgets3-3_1-3.1.4-0.src.rpm

Note that some of these rpms may conflict with the wx2.8 devel ones.

Edit - History - Print - Recent Changes - Search
Page last modified on April 20, 2021, at 05:08 PM