Tag Archives: wxgtk2

wx-config missing in FreeBSD

It is required by many applications dependent on wxWidgets to determine which version exactly (wxgtk24, wxgtk26, wxgtk28…) is being used. It also allows specifiying diretly which version to use.

To be precise, wx-config is a wrapper/redirect to the real wx*-config script. So check if you have that:

%ll /usr/local/bin/wx*
-r-xr-xr-x 1 root wheel 42259 Apr 27 13:06 /usr/local/bin/wxgtk2-2.8-config
-r-xr-xr-x 1 root wheel 42246 Apr 6 02:35 /usr/local/bin/wxgtk2u-2.8-config
-r-xr-xr-x 1 root wheel 66188 Apr 27 13:06 /usr/local/bin/wxrc-gtk2-2.8
-r-xr-xr-x 1 root wheel 77156 Apr 6 02:35 /usr/local/bin/wxrc-gtk2u-2.8

As you can see, wxgtk2-2.8-config is present. (If not, add wxgtk28 port. I built it from source.)

You can now do:

%sudo ln -s /usr/local/bin/wxgtk2-2.8-config /usr/local/bin/wx-config

You need to link this and not just copy the wx-config from wxgtk28’s work directory, since the latter file also references $wxgtk28_work_dir/lib/wx/config/gtk2-ansi-release-2.8 and not /usr/local/bin/wxgtk2u-2.8-config.

I can now build boinc-client, which was reporting wxWidgets as missing.