Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-09-2017, 18:16   #1
Registered User

Join Date: Oct 2010
Posts: 23
Installing on Debian 9.1

Which package is the right one for Debian 9.1 (Buster/Testing)?
zerubbabel is offline   Reply With Quote
Old 07-09-2017, 05:54   #2
Registered User

Join Date: Sep 2017
Location: Denmark
Boat: Ohlson 29
Posts: 40
Re: Installing on Debian 9.1

Please find the guide I made for myself when building OpenCPN as an attachment. There may be a few packages skipped but you should see which from error messages during cmake.

Jan
janth is offline   Reply With Quote
Old 07-09-2017, 06:02   #3
Registered User

Join Date: Sep 2017
Location: Denmark
Boat: Ohlson 29
Posts: 40
Re: Installing on Debian 9.1

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
janth is offline   Reply With Quote
Old 07-09-2017, 06:04   #4
Registered User

Join Date: Oct 2010
Posts: 23
Re: Installing on Debian 9.1

Thank you, but where is this guide? I did not see an attachment to your message.
zerubbabel is offline   Reply With Quote
Old 07-09-2017, 06:05   #5
Registered User

Join Date: Aug 2016
Posts: 149
Re: Installing on Debian 9.1

Quote:
Originally Posted by zerubbabel View Post
Which package is the right one for Debian 9.1 (Buster/Testing)?
Do you mean Stable 9.1 (Debian/Raspbian) Stretch?
Which Arch? RaspberryPI/armhf?
BlackSea is offline   Reply With Quote
Old 07-09-2017, 06:08   #6
Registered User

Join Date: Oct 2010
Posts: 23
Re: Installing on Debian 9.1

Debian 9.1 buster/sid (x86-64)
zerubbabel is offline   Reply With Quote
Old 07-09-2017, 06:16   #7
Registered User

Join Date: Oct 2010
Posts: 23
Re: Installing on Debian 9.1

Thank you, Jan, that is very helpful! I'll tackle it when we get back to land with a faster connection!
zerubbabel is offline   Reply With Quote
Old 07-09-2017, 06:18   #8
Registered User

Join Date: Aug 2016
Posts: 149
Re: Installing on Debian 9.1

Buster is not 9.1. It will be in future 10.x
https://wiki.debian.org/DebianBuster

You must compile yourself or try to install "zesty" packages from ppapencpn
Good luck
BlackSea is offline   Reply With Quote
Old 07-09-2017, 06:27   #9
Registered User

Join Date: Oct 2010
Posts: 23
Re: Installing on Debian 9.1

Right, but when you install Stretch, and upgrade to "Testing" it shows in the System info as "buster/sid"
zerubbabel is offline   Reply With Quote
Old 10-09-2017, 01:14   #10
Registered User

Join Date: Oct 2010
Posts: 23
Re: Installing on Debian 9.1

Well, the build went without error until this point:

CMake Error at /home/zerubbabel/bin/OpenCPN/build/cmake_install.cmake:52 (file):
file INSTALL cannot find
"/home/zerubbabel/bin/OpenCPN/data/gshhs/poly-l-1.dat".

What do I do now?
zerubbabel is offline   Reply With Quote
Old 11-09-2017, 09:04   #11
Registered User

Join Date: Oct 2010
Posts: 23
Re: Installing on Debian 9.1

Can anyone tell me where to find the file it's looking for?
zerubbabel is offline   Reply With Quote
Old 11-09-2017, 11:18   #12
Registered User

Join Date: Oct 2014
Posts: 274
Re: Installing on Debian 9.1

Quote:
Originally Posted by zerubbabel View Post
Well, the build went without error until this point:

CMake Error at /home/zerubbabel/bin/OpenCPN/build/cmake_install.cmake:52 (file):
file INSTALL cannot find
"/home/zerubbabel/bin/OpenCPN/data/gshhs/poly-l-1.dat".

What do I do now?
CMake should be looking for
Code:
poly-c-1.dat
It is part of the OpenCPN source files. Note the spelling of the filename.

This is one of the files that form the background map or chart. These should on your system in a folder such as
Code:
/home/zerubbabel/bin/OpenCPN/data/gshhs/
These three files should be in the folder
Code:
poly-c-1.dat
wdb_borders_c.b
wdb_rivers_c.b

Paul
.Paul. is offline   Reply With Quote
Old 11-09-2017, 11:26   #13
Registered User

Join Date: Oct 2010
Posts: 23
Re: Installing on Debian 9.1

No, it is looking for poly-l-1.dat, but the files in that folder are:

poly-c-1.dat
poly-f-1.dat
poly-h-1.dat
wdb_borders_c.b
wdb_borders_f.b
wdb_borders_h.b
wdb_rivers_c.b
wdb_rivers_f.b
wdb_rivers_h.b

So I was asking where else I can look for the missing file(s).
zerubbabel is offline   Reply With Quote
Old 11-09-2017, 11:47   #14
Registered User

Join Date: Sep 2017
Location: Denmark
Boat: Ohlson 29
Posts: 40
Re: Installing on Debian 9.1

Hi

you wrote:

Well, the build went without error until this point:

CMake Error at /home/zerubbabel/bin/OpenCPN/build/cmake_install.cmake:52 (file):
file INSTALL cannot find
"/home/zerubbabel/bin/OpenCPN/data/gshhs/poly-l-1.dat".

What do I do now?

---


This error is because it cannot find the world baground map. If you look at my original guide i set some world map parameter to "FULL". you could change it to NONE and it would compile. But the map would not be included in the package but can be added manuallhy. I belive I gave the url wher the world map is located.

Jan
janth is offline   Reply With Quote
Old 11-09-2017, 11:48   #15
Registered User

Join Date: Oct 2010
Posts: 23
Re: Installing on Debian 9.1

Ok, the compile worked and OpenCPN runs, but the world map is not there. I downloaded the file in you instructions and packed its contents into the gshhs directory, but still that file (poly-l-1.dat) is not there.
zerubbabel is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing on Debian Sid pcav OpenCPN 8 25-06-2017 23:51
Failed to compile 3.0.2 on Debian Squeeze rahra OpenCPN 13 15-05-2014 11:14
Opencpn Depedancies issues on Debian AlainT OpenCPN 6 22-01-2013 03:52
OpenCPN Build on Debian antonm OpenCPN 176 21-08-2012 08:40
Some More Copyright Things (based on Debian Inclusion Reject) antonm OpenCPN 15 10-06-2012 21:52

Advertise Here


All times are GMT -7. The time now is 07:54.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.