I have built OpenCPN
from source and then I built ocpn_draw_pi from the following git link.
worked fine right after installing this plug
But when I modified the code inside ocpn_draw_pi.cpp
just commented the following line
//dlg_return = OCPNMessageBox_PlugIn( m_parent_window, _("Use nearby Point?"),
_("OCPN Draw Point Create"),
(long) wxYES_NO | wxCANCEL | wxYES_DEFAULT );
Built it and installed. Then OpenCPN crashes with Segmentation fault (core dumped) error.
I removed the corresponding .so file from local/lib/opencpn , then OpenCPN works fine.
But when I removed the comment in ocpn_draw and built again or clone new copy of plugin , OpenCPN crashes every time,
Now I can not work
But I do work
with other pluins such as objSearch.
I could modify the code and see the changes in OpenCPN.
Anyone have solution to this problem.