apparently file attacment did not
work. so here is a past of contents:
================================================== =============================
1.
OpenCPN build and install
================================================== =============================
Install all Debian packages needed to build an run OpenCPN (and opional plugins mentioned below)
apt update && apt upgrade
apt install `cat package_list.txt`
where the contents of the file pacage_list.txt must be as follows :
git
cmake
libc6
libc6-dev
build-essential
libgl1-mesa-dev
libgl1-mesa-dri
libgl1-mesa-glx
libglapi-mesa
libglu1-mesa
libglu1-mesa-dev
freeglut3
freeglut3-dev
libwxgtk3.0-0v5
libwxgtk3.0-dev
libtinyxml2.6.2v5
libtinyxml2-dev
libtinyxml-dev
libcurl3
libcurl3-dev
libcairo2
libcairo2-dev
libpango1.0-dev
libgdk-pixbuf2.0-dev
libgtk2.0-dev
lbzip2
libghc-bzlib-dev
libelf-dev
liblzma-dev
wx3.0-i18n
wx3.0-headers
zlib1g
zlib1g-dev
libportaudio2
portaudio19-dev
Download latest OpenCPN source code:
cd ~/Downloads
git clone
https://github.com/OpenCPN/OpenCPN.git
cd OpenCPN
change library settings to enable Debian 9 build:
edit CMakeLists.txt
replace libwxgtk3.0-0 with libwxgtk3.0-0v5
replace libtinyxml2.6.2 with libtinyxml2.6.2v5
Download a high-resolution set of world wide background maps from the following link:
https://opencpn.org/wiki/dokuwiki/li...gshhshires.zip, and extract the files to ~/Downloads/OpenCPN/data/gshhs )
cd ~/Downloads/OpenCPN
mkdir build
cd build
cmake ../
check for error messages and install any missing packages not included in the list above
edit CMakeCache.txt to make the following changes:
replace BUNDLE_DOCS:BOOL=OFF with BUNDLE_DOCS:BOOL=ON (include
documentation in build)
replace BUNDLE_GSHHS:STRING=NONE with BUNDLE_GSHHS:STRING=FULL (this will include the hi-res background maps downloaded above in the build. If maps are unavailable the build will fail)
replace CMAKE_INSTALL_PREFIX:PATH=/usr/local with CMAKE_INSTALL_PREFIX:PATH=/usr ( this is needed to
work properly with 3rd-party plugins such as s63_pi, oesenc_pi, and some utilities without various soft links. )
Compile and build OpenCPN resulting in Debian package opencpn.deb :
make -j2 package (-j2 option uses two compile threads to speed up the build)
sudo dpgk --install opencpn.deb
================================================== =======
2. Build and install chart
plugin for oeSENC O-Charts
================================================== =======
If not done so, install the packages mentioned above under OpenCPN build
Download latest version of source code:
cd ~/Downloads
git clone
https://github.com/bdbcat/oesenc_pi.git
Compile and build Debian package oesenc_pi_1.2.0-1_amd64.deb :
cd oesenc_pi
mkdir build
cd build
cmake ../ (check error messages)
make -j2 package
Install package :
dpkg --install oesenc_pi_1.2.0-1_amd64.deb
================================================== ==============
2. Build and install chart
plugin for S63 Encrypted
ENC Charts
================================================== ==============
If not done so, install the packages mentioned above under OpenCPN build
Download latest version of source code:
cd ~/Downloads
git clone
https://github.com/bdbcat/s63_pi.git
Compile and build Debian package oesenc_pi_1.2.0-1_amd64.deb :
cd os63_pi
mkdir build
cd build
cmake ../ (check error messages)
make -j2 package
Install package :
dpkg --install s63_pi_1.6.0-1_amd64.deb