That bug you're messing with, I reported it a while back. I don't know why it happens, but I know how to solve it.
Just move or rename the folder where the source code after the install, off course, is and that's it.
By the way, tidal and current
data and contour map data are not incorporated by default into the opencpn installation
when you compile with the default configuration. The solution to this is to remove the old opencpn installation
sudo apt remove opencpn
Then you delete the attachments
sudo apt autoremove
Then you install your compiled package or make install, if you haven't already done so. And now you reinstall what's missing:
sudo apt install opencpn-tcdata opencpn-gshhs-full
This way you will have it working correctly and without risk that some update of the system deletes some file of base maps or tides.
By the way, to use opencpn with the fully functional sound it is essential to compile it with other parameters. The installation of opencpn for Raspberry pi from the official repositories does not work
properly in relation to sound. The sound is choppy and distorted.
cmake -DOCPN_ENABLE_PORTAUDIO=OFF -DOCPN_ENABLE_SNDFILE=OFF -DOCPN_ENABLE_SYSTEM_CMD_SOUND=ON ..
I already reported it here also in its day but I was told that it only gave problems with the test button but that it worked normally in normal use. That's not true. If you don't build with the right parameters for Raspberry pi.... It does not work