wxwidgets gtk3 - alan-mushi/meta-opencpn GitHub Wiki
OpenCPN runs with wxWidgets so i needed to include it. I couldn't find any recipe for it so i made one my self. The first thing to take care of is the version we use, only the latests versions of wxWidgets runs with gtk3.
I made 2 recipes for wxWidgets : one for 2.9.5 and another for 3.0.0 versions. The use of 2.9.5 is based on "stability" whereas 3.0.0 (still in development at the time) made progress on the wayland implementation.
I had some hard time with the recipe because the yocto's autotools pattern was not usable in this particular case : autoreconf marked every wx
variable (e.g. wxUSE_GUI
) as "template not found". So i did the implementation of the autotools my self. I also replaced an old version of the macro used to check the openGL implementation because of cross build errors (the macro checked the path /usr/lib64/nvidia
which isn't portable at all). In the version 3.0.0 the configuration script does very nasty things from a cross-compilation point of view, this is fixed by a quite long sed that replace the expression by the 2.9.5 version line.
There is a problem with OpenCPN that forces to disable UTF8, see the dedicated issue #1.
The demos and samples are available for 2.9.5 only (there is many path problems at the compilation that I could only fix them manually) so try out one of : widgets
, minimal
, calendar
among many more.
By default bitbake will build the latest version of wxWidgets, so if you want to force a version for a recipe you need to add a line in the meta/conf/distro/include/default-versions.inc
file :
PREFERRED_VERSION_wxwidgets = "2.9.5"
Previous step : gpsd support
Next step : meta-opencpn in details