For future reference. I haven't tried a polar yet that didn't work. They should all work. Even the ones that are conic work if you enter the right coordinates manually.
mrm@stardust:~/work2/opencpn/OpenCPN/build$ rm -rf CMakeCache.txt CMakeFiles/
mrm@stardust:~/work2/opencpn/OpenCPN/build$ cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Build Architecture is i386
-- *** Staging to build opencpn 3.1.1417 ***
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found OpenGL...
-- Lib: /usr/lib/libGLU.so/usr/lib/libGL.so/usr/lib/libSM.so/usr/lib/libICE.so/usr/lib/libX11.so/usr/lib/libXext.so
-- Include: /usr/include
-- Found wxWidgets: TRUE
-- Found wxWidgets...
-- -pthread;-Wl,-Bsymbolic-functions;;-lwx_baseu-2.8;-lwx_gtk2u_core-2.8;-lwx_baseu_net-2.8;-lwx_baseu_xml-2.8;-lwx_gtk2u_html-2.8;-lwx_gtk2u_adv-2.8;-lwx_gtk2u_aui-2.8;-lwx_gtk2u_gl-2.8
--
-- *** Staging to build opencpn ***
-- *** Will install to /usr/local ***
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so
-- Found GTK2
-- Found Portaudio: /usr/lib/libportaudio.so
-- Portaudio Found
-- Found BZip2: /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
-- Found ZLIB: /usr/lib/libz.so
-- Found TinyXML: /usr/include
-- Building with tinyxml includes
-- S57 ENC support: enabled
-- Garmin Host Mode support: enabled
--
-- *** Staging to build PlugIns ***
-- *** Building weatherfax_pi ***
-- *** Staging to build grib_pi ***
--
-- *** Staging to build dashboard_pi ***
-- Writing spec file...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mrm/work2/opencpn/OpenCPN/build
and the compile:
Code:
...
Linking CXX executable opencpn
[ 49%] Built target opencpn
[ 49%] weatherfax-i18n: Done.
[ 50%] Built target weatherfax-i18n
[ 50%] Building CXX object plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/src/WeatherFaxUI.cpp.o
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp: In constructor ‘WeatherFaxWizardBase::WeatherFaxWizardBase(wxWindow*, wxWindowID, const wxString&, const wxBitmap&, const wxPoint&, long int)’:
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:592: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:593: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:594: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:595: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:596: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:597: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:598: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:599: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:600: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:601: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:602: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:603: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:604: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:605: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:606: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:607: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:608: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:609: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:610: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:611: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:622: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:623: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:624: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp: In destructor ‘virtual WeatherFaxWizardBase::~WeatherFaxWizardBase()’:
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:645: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:646: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:647: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:648: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:649: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:650: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:651: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:652: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:653: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:654: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:655: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:656: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:657: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:658: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:659: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:660: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:661: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:662: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:663: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:664: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:675: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:676: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:677: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&)’
make[2]: *** [plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/src/WeatherFaxUI.cpp.o] Error 1
make[1]: *** [plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/all] Error 2
make: *** [all] Error 2
Ok this morning I tried it again. This time I first made sure I was on the right branch, 'origin/master' with the HEAD pointing properly. I had had problems with NO HEAD (see this post for more detail)
Then I deleted weatherfax_pi and complied it, then copied the debug weatherfax.dll into the build/plugins directory. Then MSCV to compile Debug.
Opencpn settings shows WxFx 0.5. I started Weatherfax, it opened okay, but again any file, polar or mercator that I opened, came up with image.cpp errors.
Please see attached files. I know this is a bit frustrating. Sorry.
PS: This time I did not have MSCV open with cmake etc.
mrm@stardust:~/work2/opencpn/OpenCPN/build$ rm -rf CMakeCache.txt CMakeFiles/
mrm@stardust:~/work2/opencpn/OpenCPN/build$ cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Build Architecture is i386
-- *** Staging to build opencpn 3.1.1417 ***
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found OpenGL...
-- Lib: /usr/lib/libGLU.so/usr/lib/libGL.so/usr/lib/libSM.so/usr/lib/libICE.so/usr/lib/libX11.so/usr/lib/libXext.so
-- Include: /usr/include
-- Found wxWidgets: TRUE
-- Found wxWidgets...
-- -pthread;-Wl,-Bsymbolic-functions;;-lwx_baseu-2.8;-lwx_gtk2u_core-2.8;-lwx_baseu_net-2.8;-lwx_baseu_xml-2.8;-lwx_gtk2u_html-2.8;-lwx_gtk2u_adv-2.8;-lwx_gtk2u_aui-2.8;-lwx_gtk2u_gl-2.8
--
-- *** Staging to build opencpn ***
-- *** Will install to /usr/local ***
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so
-- Found GTK2
-- Found Portaudio: /usr/lib/libportaudio.so
-- Portaudio Found
-- Found BZip2: /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found
-- Found ZLIB: /usr/lib/libz.so
-- Found TinyXML: /usr/include
-- Building with tinyxml includes
-- S57 ENC support: enabled
-- Garmin Host Mode support: enabled
--
-- *** Staging to build PlugIns ***
-- *** Building weatherfax_pi ***
-- *** Staging to build grib_pi ***
--
-- *** Staging to build dashboard_pi ***
-- Writing spec file...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mrm/work2/opencpn/OpenCPN/build
and the compile:
Code:
...
Linking CXX executable opencpn
[ 49%] Built target opencpn
[ 49%] weatherfax-i18n: Done.
[ 50%] Built target weatherfax-i18n
[ 50%] Building CXX object plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/src/WeatherFaxUI.cpp.o
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp: In constructor ‘WeatherFaxWizardBase::WeatherFaxWizardBase(wxWindow*, wxWindowID, const wxString&, const wxBitmap&, const wxPoint&, long int)’:
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:592: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:593: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:594: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:595: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:596: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:597: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:598: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:599: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:600: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:601: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:602: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:603: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:604: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:605: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:606: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:607: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:608: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:609: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:610: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:611: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:622: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:623: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:624: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp: In destructor ‘virtual WeatherFaxWizardBase::~WeatherFaxWizardBase()’:
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:645: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:646: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:647: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:648: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:649: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:650: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:651: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:652: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:653: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:654: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:655: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:656: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:657: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:658: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:659: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:660: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:661: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:662: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:663: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:664: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxScrollEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:675: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxCommandEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:676: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&)’
/home/mrm/work2/opencpn/OpenCPN/plugins/weatherfax_pi/src/WeatherFaxUI.cpp:677: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘void (wxEvtHandler::*)(wxSpinEvent&)’
make[2]: *** [plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/src/WeatherFaxUI.cpp.o] Error 1
make[1]: *** [plugins/weatherfax_pi/CMakeFiles/weatherfax_pi.dir/all] Error 2
make: *** [all] Error 2
yikes.. I think maybe you need a newer wx widgets. All of the errors occur in WeatherFaxUI.cpp which is generated by wxformbuilder, it is not written by me. This is newer than what opencpn mostly uses, but it is required for a lot of the plugins.. not only mine.
Can you run wxformbuilder 3.3.04 or newer?
Quote:
Originally Posted by rgleason
Ok this morning I tried it again. This time I first made sure I was on the right branch, 'origin/master' with the HEAD pointing properly. I had had problems with NO HEAD (see this post for more detail)
Then I deleted weatherfax_pi and complied it, then copied the debug weatherfax.dll into the build/plugins directory. Then MSCV to compile Debug.
Opencpn settings shows WxFx 0.5. I started Weatherfax, it opened okay, but again any file, polar or mercator that I opened, came up with image.cpp errors.
Please see attached files. I know this is a bit frustrating. Sorry.
PS: This time I did not have MSCV open with cmake etc.
Sorry, this is a legitimate bug you have reported. Not sure why it doesn't occur for me.. it should crash me as well. Try latest git.
Sean, this is going to be fairly long documentation, for your information, but the results are positive.
I will note some scaling and zooming slowness while in Debug. I used the plugin almost entirely with OpenGL off. Then restarted MSVC and tried it with OpenGL on. The transparency and contrast is diifferent with OpenGL on, and Zoom out is slower and less responsive and more limited (12316300 scale) vs (13092900) with openGL off. The polar operation works fine in both with the exception of the bottom transparency issue on the first sceen which we've noted before. Also I notice the CPU is working, and increases at times, but I am not getting the "High CPU Usage" warning as before, with it just churning. Your efforts to streamline it are being noticed!
I will end this with a DLL compiled for Windows with MSVC.
There will be a bunch of files and png attached in Sequence hopefully, probably in two posts. The PNG titles will explain a little what it is.
The MSVC Debug output compiled wxfx fine. Copied to dll opencpn-git/build/plugins. Then ran Debug.
Screen breakup. Can get screen functions by clicking in the area.
Polar finishes fine.
Breakpoints. Found that my ms-dos window being up caused this I think. I closed the window and "Continued" and the fax overlayed chart fine. Then edited it and messed around with it.. editing several times. - I checked that I had the wxWidgets files...
Zooming in and Out - slow. Some limits to 13092900 with opencpn off.
All of the errors occur in WeatherFaxUI.cpp which is generated by wxformbuilder, it is not written by me. This is newer than what opencpn mostly uses, but it is required for a lot of the plugins.. not only mine.
Can you run wxformbuilder 3.3.04 or newer?
Sorry, no, the latest version available for this Ubuntu distribution is 3.1.59.
Same goes for my nav PC, which has a slightly newer Ubuntu (10.10) but still not modern enough it seems.
Just out of curiosity: which 'latest and greatest' wx features are you using which are not there in older releases?
Ok this next set is with the first Polar file loaded, and then opening the second one, a polar (UK+Met...) that I have not been able to load for a number of reasons including user error. It loaded and displayed.
I must say, that you must be patient and wait for Zooming out/in, Scrolling and for clicking on the Zoom In + and Zoom out - buttons, the chart scaling F8 and F9 are similar. Let it load, wait, then click the button, wait, wait, finally something happens. For some reason scaling out limit is more restricted and even less responsive when openGL is on, this is while using Debug. Also included is MSVC build - release output file which may be overkill.
If you could let me know what documentation is helpful and when you need it, that might be helpful. I am erring on the too much side right now, I know.
The last file is the Windows DLL. Take the doc off and put in your plugins and give it a workout to test it for Sean please. See what you can figure out about the transparency on the first screen, that would be very helpful.
Sean has vastly improved the description "Information" for placing coords and using "Get mapping" "Get Equator" the "Blue Rings" adjustment and the "Width ratio" - so follow that closely it will really help with polars. n)
Sorry, no, the latest version available for this Ubuntu distribution is 3.1.59.
Same goes for my nav PC, which has a slightly newer Ubuntu (10.10) but still not modern enough it seems.
Just out of curiosity: which 'latest and greatest' wx features are you using which are not there in older releases?
The ones required by the new wxformbuilder. I honestly can't remember anymore.. it's crazy but ask nohal, he requires it for the wmm plugin, then...
You can't do a dist-upgrade? What about just upgrading wxwidgets?
Quote:
Originally Posted by rgleason
Ok this next set is with the first Polar file loaded, and then opening the second one, a polar (UK+Met...) that I have not been able to load for a number of reasons including user error. It loaded and displayed.
I must say, that you must be patient and wait for Zooming out/in, Scrolling and for clicking on the Zoom In + and Zoom out - buttons, the chart scaling F8 and F9 are similar. Let it load, wait, then click the button, wait, wait, finally something happens. For some reason scaling out limit is more restricted and even less responsive when openGL is on, this is while using Debug. Also included is MSVC build - release output file which may be overkill.
If you could let me know what documentation is helpful and when you need it, that might be helpful. I am erring on the too much side right now, I know.
The last file is the Windows DLL. Take the doc off and put in your plugins and give it a workout to test it for Sean please. See what you can figure out about the transparency on the first screen, that would be very helpful.
Sean has vastly improved the description "Information" for placing coords and using "Get mapping" "Get Equator" the "Blue Rings" adjustment and the "Width ratio" - so follow that closely it will really help with polars. n)
Thank you Sean
ok, so no more crashes! great. The zooming thing is going to be slow with opengl off. One possible solution is to decrease the mapping scale to less than 1 (try with .5) and see if it's any faster. This will also decrease resolution.
I'm not really sure how to deal with this since it runs fast with all images large or small opengl or not, and I have a netbook.
How is panning?
Could you try the new version in git to see if it fixes the transparency issue? It's a blind shot, but maybe it works.
The guy anchored next to me decided to raise a sail, not sheet it, then leave on his dingy (it was calm then) so it's flogging away now...
Ok this next set is with the first Polar file loaded, and then opening the second one, a polar (UK+Met...) that I have not been able to load for a number of reasons including user error. It loaded and displayed.
I must say, that you must be patient and wait for Zooming out/in, Scrolling and for clicking on the Zoom In + and Zoom out - buttons, the chart scaling F8 and F9 are similar. Let it load, wait, then click the button, wait, wait, finally something happens. For some reason scaling out limit is more restricted and even less responsive when openGL is on, this is while using Debug. Also included is MSVC build - release output file which may be overkill.
If you could let me know what documentation is helpful and when you need it, that might be helpful. I am erring on the too much side right now, I know.
The last file is the Windows DLL. Take the doc off and put in your plugins and give it a workout to test it for Sean please. See what you can figure out about the transparency on the first screen, that would be very helpful.
Sean has vastly improved the description "Information" for placing coords and using "Get mapping" "Get Equator" the "Blue Rings" adjustment and the "Width ratio" - so follow that closely it will really help with polars. n)
Thank you Sean
Following the instructions helps you refine the image position nicely. With GL on and three polar faxes loaded the scrolling in an out was only slightly delayed. I was playing around a bit. The attachment has the lower fax inverted and the upper fax normal. You can see the difference between the two forecasts nicely (white > black)
The image Correction panel on the first screen is still not showing properly. Other than that it was working nicely for me (W7 64 bit, GL on NVIVIA GTX560)
__________________
CRYA Yachtmaster Ocean Instructor Evaluator, Sail
IYT Yachtmaster Coastal Instructor As I sail, I praise God, and care not. (Luke Foxe)
There is glitch on the first screen that comes up when you open a fax. Re-size the window slightly and an Image Correction panel will show up below the image. Voila the rotation button.
This glitch is only on the first screen correct? I wonder if my last change fixed it, probably not.. This seems to be only on windows. Could someone try commenting out lines in the paint routine in weatherfaxwizard.cpp to try to narrow it down?
Any other issues besides the glitch on the first screen?