Hi,
I get the following compile error when trying to build
openCPN:
/usr/bin/c++ -DLINUX_CRASHRPT -DOCPN_HAVE_X11 -DOCPN_USE_PORTAUDIO -DTIXML_USE_STL -DUSE_GARMINHOST -DUSE_LZMA -DUSE_RENDER_CAIRO -DUSE_S57 -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__OCPN_USE_CURL__ -D__WXGTK__ -DocpnUSE_GL -DocpnUSE_SVG -DwxDEBUG_LEVEL=0 -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0 -I/git/OpenCPN/include -I/git/OpenCPN/src -I/git/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/git/OpenCPN/src/wxsvg/include/wxSVG -I/git/OpenCPN/src/wxsvg/include/wxSVGXML -I/git/OpenCPN/src/wxsvg/include -I/git/OpenCPN/src/wxsvg/src -I/git/OpenCPN/src/nmea0183 -I/git/OpenCPN/src/mygdal -I/git/OpenCPN/src/garmin/jeeps -I/git/OpenCPN/src/texcmp/lz4 -I/git/OpenCPN/src/texcmp/squish -I/git/OpenCPN/build/CMakeFiles/include -pthread -O3 -DNDEBUG -Wall -Wno-unused -fexceptions -rdynamic -g -fno-strict-aliasing -DPREFIX=\"/usr/local\" -o CMakeFiles/NMEA0183.dir/src/nmea0183/nmea0183.cpp.o -c /git/OpenCPN/src/nmea0183/nmea0183.cpp
/git/OpenCPN/src/nmea0183/nmea0183.cpp: In
member function ‘virtual bool NMEA0183::Parse()’:
/git/OpenCPN/src/nmea0183/nmea0183.cpp:302:8: error: ‘wxMRLNode’ was not declared in this
scope
wxMRLNode *node = response_table.GetFirst();
^~~~~~~~~
/git/OpenCPN/src/nmea0183/nmea0183.cpp:302:19: error: ‘node’ was not declared in this
scope
wxMRLNode *node = response_table.GetFirst();
^~~~
/git/OpenCPN/src/nmea0183/nmea0183.cpp: In
member function ‘wxArrayString NMEA0183::GetRecognizedArray()’:
/git/OpenCPN/src/nmea0183/nmea0183.cpp:352:5: error: ‘wxMRLNode’ was not declared in this scope
wxMRLNode *node = response_table.GetFirst();
^~~~~~~~~
/git/OpenCPN/src/nmea0183/nmea0183.cpp:352:16: error: ‘node’ was not declared in this scope
wxMRLNode *node = response_table.GetFirst();
^~~~
make[2]: *** [CMakeFiles/NMEA0183.dir/build.make:114: CMakeFiles/NMEA0183.dir/src/nmea0183/nmea0183.cpp.o] Error 1
I use openSUSE
Linux, have cloned the repository from github, added the neccesary extra packages with
$ zypper install git cmake gcc-c++ libstdc++-devel gtk2-devel wxWidgets-wxcontainer-devel gettext-runtime gettext-tools libbz2-devel gpsd-devel portaudio-devel tinyxml-devel libcurl-devel freeglut-devel rpm-build
(many were already installed),
ran cmake and started make with the mentioned error as result.
I checked for wxWidgets, I have wxWidgets-3_0-devel installed, with the header files in /usr/include/wx-3.0/wx, but grep did not produce any wxMRLNode in the files there.
Any suggestion on how to get rid of this error and complete the build?