seandepagnier / celestial_navigation_pi

celestial navigation plugin for opencpn
17 stars 21 forks source link

Celestial Navigation plugin won't work on Mac #43

Open lazarusblue opened 3 years ago

lazarusblue commented 3 years ago

Regarding the issue I posted in Cruisers Forum, here is the opencpn.log opencpn.log

bdbcat commented 3 years ago

So, here is the issue:

10:48:18.331   ERROR dlunix.cpp:162 dlopen(/Applications/OpenCPN.app/Contents/Plugins/celestial_navigation_pi/libcelestial_navigation_pi.dylib, 2): Symbol not found: __ZN12wxWindowBase19SetVirtualSizeHintsEiiii
  Referenced from: /Applications/OpenCPN.app/Contents/Plugins/celestial_navigation_pi/libcelestial_navigation_pi.dylib
  Expected in: flat namespace
 in /Applications/OpenCPN.app/Contents/Plugins/celestial_navigation_pi/libcelestial_navigation_pi.dylib

This means that the plugin needs to be rebuilt to avoid calling this method, (wxWindowBase::SetVirtualSizeHints), deprecated in MacOS wxWidgets libraries.

From the wx docs:

void wxSizer::SetVirtualSizeHints | (  wxWindow *  window | ) |
Deprecated:
    This is exactly the same as FitInside() in wxWidgets 2.9 and later, please replace calls to it with FitInside().
rgleason commented 1 year ago

Try the current version in PIM. I believe this has been fixed. OP @lazrusblue please close this Issue.

rgleason commented 1 year ago

@lazarusblue Please close this is fixed.