Downloading and installing wxWidgets

From WxWiki
Jump to: navigation, search

wxWidgets can be downloaded from here.

A screenshot of the download page at wxWidgets.org

Choosing the right package

The wxAll package includes the source for all supported platforms. Those wishing to develop for more than one platform might choose this option, and often extract it to a network share.

Otherwise, you can select a single package for your platform. On Linux, it is generally better to use wxGTK than wxX11.

Windows

Download and install

wxWidgets is available for download in multiple flavors for the Windows platform. You only need one of these downloads:

  • Installer - The wxMSW setup executable that will install wxWidgets for you.
  • Archive - Multiple archive formats (e.g. zip) containing everything needed in the wxMSW packages. If you downloaded one of the archive formats, installing it is as easy as unpacking it and moving the root folder where ever you want it to be installed.

Set the WXWIN environment variable

If you used the installer, in addition to installing the wxWidgets source files, it also automatically adds a WXWIN environment variable on your system pointing to the location where you installed wxWidgets. If you didn't use the installer, it is highly recommended that you do so by hand. You will need to setup WXWIN to the full location where you installed wxWidgets to (e.g. C:\wx\wx288). To do so see Adding an Environment Variable under Windows.

Latest version

You can also get the latest version of wxWidgets directly from Git repository where it is developed. This page contains more details but, basically, you just need to run

git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git

After doing this make sure to read the instructions for any special things to be done when using Git. Currently you just need to copy include\wx\msw\setup0.h to include\wx\msw\setup.h (this is only relevant when using MSW, of course), but this might change in the future, so please trust the file in Git rather than this page if they diverge.