Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 12-03-2018, 12:19   #1
Registered User

Join Date: Aug 2016
Posts: 51
OpenCPN vs Ubuntu 18.04 ( Bionic)

Hi all,

i'm trying to install OpenCPN in upcoming Ubuntu 18.04 ( ok, I know it's beta, but in two month it will be reality)
1. Add PPA
Works!
2. Which packages are available?
Code:
$ sudo apt search opencpn
Sorting... Done
Full Text Search... Done
opencpn/bionic 4.8.2-0~bionic1 amd64
  Concise chartplotter and navigation software

opencpn-doc/bionic,bionic 4.8.2.0-0~bionic1 all
  Documentation for OpenCPN Navigation software

opencpn-plugin-iacfleet/bionic 0.10.0-0~bionic1 amd64
  Plugin for OpenCPN

opencpn-plugin-objsearch/bionic 0.8.0-0~bionic1 amd64
  Plugin for OpenCPN
Hm, not much
3. Trying to install
Code:
$ sudo apt install opencpn
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 opencpn : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed
           Depends: opencpn-tcdata but it is not installable
           Depends: opencpn-gshhs-low but it is not installable
           Recommends: xcalib but it is not going to be installed
           Recommends: opencpn-doc but it is not going to be installed
           Recommends: opencpn-gshhs-crude but it is not installable
E: Unable to correct problems, you have held broken packages.
There are few packages missing
Is not that better to compile against libcurl4?

Ok.... Next Step self compiling from GIT
All deps are satisfied
Code:
~/test/OpenCPN/build$ cmake ../
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting C++11 standard via cmake standard mecahnism
-- *** Build Architecture is amd64
-- *** Staging to build opencpn 4.99.0 ***
-- *** Package will NOT include documentation ***
-- *** Package will include GSHHS basechart level: NONE ***
-- *** Package will NOT include tide and current data ***
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found OpenGL....
--     GL Lib: /usr/lib/x86_64-linux-gnu/libGL.so/usr/lib/x86_64-linux-gnu/libGLU.so
--     GL Include: /usr/include
--     Revised GL Lib: /usr/lib/x86_64-linux-gnu/libGL.so
--     Adding local GLU
-- Found wxWidgets: -L/usr/lib/x86_64-linux-gnu;-pthread;;;-lwx_gtk2u_gl-3.0;-lwx_baseu_net-3.0;-lwx_baseu_xml-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_aui-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0 (found version "3.0.3") 
-- Found wxWidgets...
--  wxWidgets Includ: /usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0;/usr/include/wx-3.0
--  wxWidgets Libraries: -L/usr/lib/x86_64-linux-gnu;-pthread;;;-lwx_gtk2u_gl-3.0;-lwx_baseu_net-3.0;-lwx_baseu_xml-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_aui-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0
--  Revised wxWidgets Libraries: -L/usr/lib/x86_64-linux-gnu;-pthread;-lwx_gtk2u_gl-3.0;-lwx_baseu_net-3.0;-lwx_baseu_xml-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_aui-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0
-- 
-- *** Staging to build opencpn  ***
-- Build type: Release
-- *** Will install to /usr/local  ***
-- Crash reporting enabled
-- Using Linux crash reporting
-- Found Portaudio: /usr/lib/x86_64-linux-gnu/libportaudio.so
-- Portaudio Found
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.58.0") 
-- wxCurl configured...
-- CURL_LIBRARIES:/usr/lib/x86_64-linux-gnu/libcurl.so
-- SVG support enabled...
--  Cairo include directory found: /usr/include/cairo
--  Cairo library found: /usr/lib/x86_64-linux-gnu/libcairo.so
-- Found CAIRO: /usr/include/cairo  
-- Found CAIRO_EXTRAS: /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so  
-- Cairo Extra Libraries: /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so/usr/lib/x86_64-linux-gnu/libpangoxft-1.0.so/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so
-- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version "2.2.5") 
-- Found EXIF: /usr/lib/x86_64-linux-gnu/libexif.so (found version "") 
-- Found GTK2_GTK: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so  
-- Building against GTK2...
--  SQLite3 include directory found: /usr/include
--  SQLite3 runtime library: /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- Found SQLite3 dev environment.
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found TinyXML: /usr/include  
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Found LibLZMA: /usr/include (found version "5.2.2") 
-- Building with lzma support
-- Building with tinyxml includes
-- S57 ENC support: enabled
-- Garmin Host Mode support: enabled
-- Compiling texture compression library with sse support
-- Found LibELF...
--     ELF Lib: /usr/include
--     ELF Include: /usr/lib/x86_64-linux-gnu/libelf.so
-- 
-- *** Staging to build PlugIns ***
-- Build type: Release
-- *** Staging to build chartdldr_pi ***
-- Found OpenGL...
--     Lib: /usr/lib/x86_64-linux-gnu/libGL.so/usr/lib/x86_64-linux-gnu/libGLU.so
--     Include: /usr/include
-- Found LibArchive: /usr/lib/x86_64-linux-gnu/libarchive.so (found version "3.2.2") 
-- Chartdldr_pi going to use LibArchive...
-- Chartdldr_pi building with system tinyxml
-- *** Added plugin: /home/oleg/test/OpenCPN/plugins/chartdldr_pi
-- 
-- *** Staging to build dashboard_pi ***
-- *** Added plugin: /home/oleg/test/OpenCPN/plugins/dashboard_pi
-- *** Staging to build grib_pi ***
-- *** Added plugin: /home/oleg/test/OpenCPN/plugins/grib_pi
-- Build type: Release
-- *** Staging to build wmm_pi ***
-- Found OpenGL...
--     Lib: /usr/lib/x86_64-linux-gnu/libGL.so/usr/lib/x86_64-linux-gnu/libGLU.so
--     Include: /usr/include
-- Found OpenGL...
--     Lib: /usr/lib/x86_64-linux-gnu/libGL.so/usr/lib/x86_64-linux-gnu/libGLU.so
--     Include: /usr/include
-- *** Added plugin: /home/oleg/test/OpenCPN/plugins/wmm_pi
-- Writing spec file...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/oleg/test/OpenCPN/build
Code:
~/test/OpenCPN/build$ make
.....
[ 15%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/SQLiteCpp/src/Backup.cpp.o
/usr/bin/c++  -DLINUX_CRASHRPT -DOCPN_HAVE_X11 -DOCPN_USE_PORTAUDIO -DSQLITE_USE_LEGACY_STRUCT -DTIXML_USE_STL -DUSE_GARMINHOST -DUSE_LZMA -DUSE_RENDER_CAIRO -DUSE_S57 -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__OCPN_USE_CURL__ -D__WXGTK__ -DocpnUSE_GL -DocpnUSE_SVG -DwxsvgUSE_EXIF -I/home/oleg/test/OpenCPN/src/mygdal -isystem /usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0 -I/home/oleg/test/OpenCPN/include -I/home/oleg/test/OpenCPN/src -I/usr/include/x86_64-linux-gnu -I/home/oleg/test/OpenCPN/src/wxcurl -I/usr/include/cairo -I/home/oleg/test/OpenCPN/src/wxsvg/include/wxSVG -I/home/oleg/test/OpenCPN/src/wxsvg/include/wxSVGXML -I/home/oleg/test/OpenCPN/src/wxsvg/include -I/home/oleg/test/OpenCPN/src/wxsvg/src -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/home/oleg/test/OpenCPN/src/SQLiteCpp/include -I/home/oleg/test/OpenCPN/src/nmea0183 -I/home/oleg/test/OpenCPN/src/garmin/jeeps -I/home/oleg/test/OpenCPN/src/texcmp/lz4 -I/home/oleg/test/OpenCPN/src/texcmp/squish -I/home/oleg/test/OpenCPN/build/CMakeFiles/include  -pthread -O3 -DNDEBUG   -Wall -Wno-unused -fexceptions -rdynamic  -g -fno-strict-aliasing  -DPREFIX=\"/usr/local\" -std=gnu++11 -o CMakeFiles/SQLiteCpp.dir/src/SQLiteCpp/src/Backup.cpp.o -c /home/oleg/test/OpenCPN/src/SQLiteCpp/src/Backup.cpp
In file included from /home/oleg/test/OpenCPN/src/SQLiteCpp/src/Backup.cpp:16:0:
/usr/include/sqlite3.h:3847:16: error: using typedef-name ‘sqlite3_value’ after ‘struct’
 typedef struct sqlite3_value sqlite3_value;
                ^~~~~~~~~~~~~
In file included from /home/oleg/test/OpenCPN/src/SQLiteCpp/include/SQLiteCpp/Backup.h:14:0,
                 from /home/oleg/test/OpenCPN/src/SQLiteCpp/src/Backup.cpp:12:
/home/oleg/test/OpenCPN/src/SQLiteCpp/include/SQLiteCpp/Database.h:27:20: note: ‘sqlite3_value’ has a previous declaration here
 typedef struct Mem sqlite3_value;
                    ^~~~~~~~~~~~~
In file included from /home/oleg/test/OpenCPN/src/SQLiteCpp/src/Backup.cpp:16:0:
/usr/include/sqlite3.h:3847:30: error: conflicting declaration ‘typedef int sqlite3_value’
 typedef struct sqlite3_value sqlite3_value;
                              ^~~~~~~~~~~~~
In file included from /home/oleg/test/OpenCPN/src/SQLiteCpp/include/SQLiteCpp/Backup.h:14:0,
                 from /home/oleg/test/OpenCPN/src/SQLiteCpp/src/Backup.cpp:12:
/home/oleg/test/OpenCPN/src/SQLiteCpp/include/SQLiteCpp/Database.h:27:20: note: previous declaration as ‘typedef struct Mem sqlite3_value’
 typedef struct Mem sqlite3_value;
                    ^~~~~~~~~~~~~
CMakeFiles/SQLiteCpp.dir/build.make:65: recipe for target 'CMakeFiles/SQLiteCpp.dir/src/SQLiteCpp/src/Backup.cpp.o' failed
make[2]: *** [CMakeFiles/SQLiteCpp.dir/src/SQLiteCpp/src/Backup.cpp.o] Error 1
make[2]: Leaving directory '/home/oleg/test/OpenCPN/build'
CMakeFiles/Makefile2:191: recipe for target 'CMakeFiles/SQLiteCpp.dir/all' failed
make[1]: *** [CMakeFiles/SQLiteCpp.dir/all] Error 2
make[1]: Leaving directory '/home/oleg/test/OpenCPN/build'
Makefile:154: recipe for target 'all' failed
make: *** [all] Error 2
Is libsqlite3 to new? 3.22.0

Any Ideas
Regards
BlackSea
__________________

BlackSea is offline   Reply With Quote
Old 12-03-2018, 14:25   #2
Registered User

Join Date: Mar 2017
Location: Perros-Guirec, France
Boat: Dufour 31
Posts: 254
Re: OpenCPN vs Ubuntu 18.04 ( Bionic)

Quote:
Originally Posted by BlackSea View Post
Code:
 typedef struct Mem sqlite3_value;
                    ^~~~~~~~~~~~~
Is libsqlite3 to new? 3.22.0
Yes, exactly. Edit CMakeLists.txt and remove the following line:

Code:
add_definitions(-DSQLITE_USE_LEGACY_STRUCT)
__________________

stelian is offline   Reply With Quote
Old 12-03-2018, 17:33   #3
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,325
Re: OpenCPN vs Ubuntu 18.04 ( Bionic)

BlackSea....

For everyday practical, at-sea use of OpenCPN today, you probably do not want to build at HEAD of github branch "master". This branch is under active development, and a pretty fast moving target. Just because it builds, does not make it "right".

Better to fetch branch master at git tag "4.8.2", which marks the master branch at the time of release of 4.8.2 to Production. This build will not have the sqlite3 issues, for example.

Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 12-03-2018, 21:29   #4
Registered User

Join Date: Aug 2016
Posts: 51
Re: OpenCPN vs Ubuntu 18.04 ( Bionic)

@stelian
Thank you. It works

@bdbcat
It's not yet for production. I have time before the season starts
BlackSea is offline   Reply With Quote
Old 14-03-2018, 05:14   #5
Registered User

Join Date: Aug 2016
Posts: 51
Re: OpenCPN vs Ubuntu 18.04 ( Bionic)

@nohal

Thank you for uploading of opencpn-gshhs & opencpn-tcdata.
Now it's easier to install core opencpn from official PPA ( without many plugins )
BlackSea is offline   Reply With Quote
Reply

Tags
enc, opencpn

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
OpenCPN Linux / Ubuntu Issues and Questions yachtmanforfun OpenCPN 65 24-01-2018 09:06
Ubuntu 10.10 and OpenCPN cagney OpenCPN 11 10-09-2011 11:40
OpenCPN 2.1.624 with Ubuntu 10.10 Gypsy23 OpenCPN 4 15-04-2011 01:46
Ubuntu 10.4 and OpenCPN cagney OpenCPN 24 07-01-2011 13:16
Opencpn 2.2 Build 823 Crashes when Dashboard Is Opened in Ubuntu tebsin OpenCPN 1 24-08-2010 15:16



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 20:45.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.