Contents Up Previous Next

Environment variables

This section describes all environment variables that affect execution of wxWindows programs.

WXTRACE (Debug build only.) This variable can be set to comma-separated list of trace masks used in wxLogTrace calls; wxLog::AddTraceMask is called for every mask in the list during wxWindows initialization.
WXPREFIX (Unix only.) Overrides installation prefix. Normally, the prefix is hard-coded and is same as the value passed to configure via the --prefix switch when compiling the library (typically /usr/local or /usr). You can set WXPREFIX if you are for example distributing binary version of an application and you don't know in advance where it will be installed.
WXMODE (wxMGL only.) Sets MGL video mode. The value must be in form widthxheight-depth. The default is 640x480-16.
WXSTDERR (wxMGL only.) Redirects stderr output to a file.