FWIW, I'm seeing the same error on Fedora 24, fully updated as of 2/8:
[steve@tacopie gtk]$ uname -a
Linux tacopie.s2bj2.com 4.9.6-100.fc24.x86_64 #1 SMP Thu Jan 26 10:21:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
wxWidgets rpms:
wxBase-2.8.12-26.fc24.x86_64
wxGTK-2.8.12-26.fc24.x86_64
wxGTK-devel-2.8.12-26.fc24.x86_64
wxGTK-gl-2.8.12-26.fc24.x86_64
wxGTK-media-2.8.12-26.fc24.x86_64
[steve@tacopie OpenCPN]$ cat VERSION.cmake
SET(VERSION_MAJOR "4")
SET(VERSION_MINOR "5")
SET(VERSION_PATCH "204")
SET(VERSION_DATE "2017-02-04")
[ 14%] Building CXX object CMakeFiles/S57ENC.dir/src/s52plib.cpp.o
/usr/lib64/ccache/c++ -DLINUX_CRASHRPT -DOCPN_HAVE_X11 -DTIXML_USE_STL -DUSE_GARMINHOST -DUSE_LZMA -DUSE_RENDER_CAIRO -DUSE_S57 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__OCPN_USE_CURL__ -D__WXGTK__ -DocpnUSE_GL -DocpnUSE_SVG -isystem /usr/lib64/wx/include/gtk2-unicode-release-2.8 -isystem /usr/include/wx-2.8 -I/home/steve/project/opencpn-dev/OpenCPN/include -I/home/steve/project/opencpn-dev/OpenCPN/src -I/home/steve/project/opencpn-dev/OpenCPN/src/wxcurl -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/home/steve/project/opencpn-dev/OpenCPN/src/wxsvg/include/wxSVG -I/home/steve/project/opencpn-dev/OpenCPN/src/wxsvg/include/wxSVGXML -I/home/steve/project/opencpn-dev/OpenCPN/src/wxsvg/include -I/home/steve/project/opencpn-dev/OpenCPN/src/wxsvg/src -I/home/steve/project/opencpn-dev/OpenCPN/src/nmea0183 -I/home/steve/project/opencpn-dev/OpenCPN/src/mygdal -I/home/steve/project/opencpn-dev/OpenCPN/src/garmin/jeeps -I/home/steve/project/opencpn-dev/OpenCPN/src/texcmp/lz4 -I/home/steve/project/opencpn-dev/OpenCPN/src/texcmp/squish -I/home/steve/project/opencpn-dev/OpenCPN/build/CMakeFiles/include -pthread -O2 -DNDEBUG -Wall -Wno-unused -fexceptions -rdynamic -g -fno-strict-aliasing -DPREFIX=\"/usr/local\" -o CMakeFiles/S57ENC.dir/src/s52plib.cpp.o -c /home/steve/project/opencpn-dev/OpenCPN/src/s52plib.cpp
/home/steve/project/opencpn-dev/OpenCPN/src/s52plib.cpp: In member function ‘render_canvas_parms* s52plib::CreatePatternBufferSpec(ObjRazRules*, Rules*, ViewPort*, bool, bool)’:
/home/steve/project/opencpn-dev/OpenCPN/src/s52plib.cpp:8063:38: error: ‘class wxMemoryDC’ has no member named ‘GetGraphicsContext’
wxGraphicsContext* pgc = mdc.GetGraphicsContext();
^~~~~~~~~~~~~~~~~~
/home/steve/project/opencpn-dev/OpenCPN/src/s52plib.cpp:8065:18: error: ‘class wxGraphicsContext’ has no member named ‘SetAntialiasMode’
pgc->SetAntialiasMode(wxANTIALIAS_NONE);
^~~~~~~~~~~~~~~~
/home/steve/project/opencpn-dev/OpenCPN/src/s52plib.cpp:8065:35: error: ‘wxANTIALIAS_NONE’ was not declared in this
scope
pgc->SetAntialiasMode(wxANTIALIAS_NONE);
^~~~~~~~~~~~~~~~
CMakeFiles/S57ENC.dir/build.make:113: recipe for target 'CMakeFiles/S57ENC.dir/src/s52plib.cpp.o' failed