I've RPi 2 with Raspian by the box and built OCPN from source following this description:
Compiling - Linux | Official OpenCPN Homepage
for Debian. One system adaption though;
Add or change in the file /boot/config.txt
Note: I haven't yet tried to built for wxWidgets 3.0 as of the recent compiling description but foresees no trouble with that.