Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 10-03-2017, 06:46   #1
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Base map

Version 4.5.307 Build 2017-03-07

Been way from opencpn for a while so build the above version from source. The problem I ran into is that there does not seem to be a base map. Was wondering what I did wrong. There were no reported errors with the build other then the following


chris123@Odin:~$ opencpn
10:44:16: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).
ALSA lib pcm.c:2450snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2450snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2450snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867find_matching_chmap) Found no matching channel map

this is a fresh build from git hub

many thanks for any insights

/ch
sailias is offline   Reply With Quote
Old 10-03-2017, 11:10   #2
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Base map

Nowadays you have to tell Cmake to include the base map before you compile.
Read this https://opencpn.org/wiki/dokuwiki/do...ized_packaging

Thomas
cagney is offline   Reply With Quote
Old 10-03-2017, 14:00   #3
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Base map

Thanks

/ch
sailias is offline   Reply With Quote
Old 11-03-2017, 11:58   #4
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Base map

Seem to run into a problem that I can replicate.

1. Downloaded the GSHHS data

2. issued the command:

cmake ../ -DBUNDLE_DOCS=OFF -DBUNDLE_TCDATA=ON -DBUNDLE_GSHHS=INTERMEDIATE ..

3. sudo make install shows the following error:


Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Up-to-date: /usr/local/bin/opencpn
-- Up-to-date: /usr/local/share/opencpn/gshhs/poly-c-1.dat
-- Up-to-date: /usr/local/share/opencpn/gshhs/wdb_borders_c.b
-- Up-to-date: /usr/local/share/opencpn/gshhs/wdb_rivers_c.b
CMake Error at cmake_install.cmake:52 (file):
file INSTALL cannot find "/home/chris123/OpenCPN/data/gshhs/poly-l-1.dat".

4. so no base map is produced.

Was wondering what Im doing wrong. The source is from
git clone https://github.com/OpenCPN/OpenCPN.git

System is Ubuntu 16.10 with all updates and development environment

Many thanks for any clues.

Best regards

/ch
sailias is offline   Reply With Quote
Old 11-03-2017, 16:14   #5
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: Base map

sailias...

Hmmm...
A bug, for sure.

Seems the INTERMEDIATE GSHHS data files are neither in the github repo, nor in the downloadable GSHHS.zip file.

I will add them to the github repo. Check back tomorrow, and they should come down with a standard clone or pull. Then your build recipe should work.

Dave
bdbcat is offline   Reply With Quote
Old 11-03-2017, 17:14   #6
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Base map

Dave...
The error is in the documentation, probably copied from a very old backup, the correct GSHHS data are for example in Launchpad at https://launchpad.net/~opencpn/+arch....4.orig.tar.xz, please do not commit these enormous binaries back to the repository.

Pavel
nohal is online now   Reply With Quote
Old 11-03-2017, 18:20   #7
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: Base map

Pavel...

Ha! I thought this might wake you up....

The file you reference has all the GSHHS files a builder would need. So we just need to fix the ref in the docs.

I will revert my proposed change.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 11-03-2017, 18:52   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: Base map

Pavel...

Doc fixed.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 12-03-2017, 15:43   #9
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Base map

Quote:
Originally Posted by nohal View Post
Dave...
The error is in the documentation, probably copied from a very old backup, the correct GSHHS data are for example in Launchpad at https://launchpad.net/~opencpn/+arch....4.orig.tar.xz, please do not commit these enormous binaries back to the repository.

Pavel
You may want to check that link. I get a page not found error on the link.

On very slow bandwidth link so downloading the code now. Will take an hr or two...

Then will test the build...and will grab the map data from the home site.

Best regards

/ch
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2016-12-30 15-43-23.jpg
Views:	72
Size:	318.3 KB
ID:	143007  
sailias is offline   Reply With Quote
Old 12-03-2017, 15:49   #10
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Base map

sailias...
The link is correct, certainly not retuning a 404 or the Canadian site on your screenshot, but a 67MB archive with the charts..

Code:
$ curl -I https://launchpad.net/~opencpn/+archive/ubuntu/opencpn/+files/opencpn-gshhs_2.2.4.orig.tar.xz
HTTP/1.1 302 Moved Temporarily
Date: Sun, 12 Mar 2017 22:45:31 GMT
Server: zope.server.http (HTTP)
X-Powered-By: Zope (www.zope.org), Python (www.python.org)
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=15552000
Vary: Cookie,Authorization,Accept-Encoding
X-Content-Type-Warning: guessed from content
X-Launchpad-Revision: 18331
Location: https://launchpadlibrarian.net/181415653/opencpn-gshhs_2.2.4.orig.tar.xz
X-Frame-Options: SAMEORIGIN
Content-Type: text/plain;charset=utf-8
X-Cache: MISS from nutmeg.canonical.com
X-Cache-Lookup: MISS from nutmeg.canonical.com:3128
Via: 1.0 nutmeg.canonical.com:3128 (squid/2.7.STABLE7)

$ curl -I https://launchpadlibrarian.net/181415653/opencpn-gshhs_2.2.4.orig.tar.xz
HTTP/1.1 200 OK
Date: Sun, 12 Mar 2017 22:48:44 GMT
Server: TwistedWeb/13.0.0-p2
Content-Length: 70644960
Accept-Ranges: bytes
Last-Modified: Sun, 03 Aug 2014 02:24:12 GMT
Cache-Control: max-age=31536000, public
Content-Type: application/octet-stream
Pavel
nohal is online now   Reply With Quote
Old 12-03-2017, 17:01   #11
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Base map

yup its there is I use a private window in Firefox. Many be an issue with my service provider. Im in a last mile scenario working on a 900 mghz antenna if you can believe it to get access. How many ways can you spell slow..


Best regards

/ch
sailias is offline   Reply With Quote
Old 13-03-2017, 10:08   #12
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Base map

Downloaded the code overnight and ran it again. Downloaded the map code and installed it in the OpenCPN dir, Then ran the command:

cmake ../ -DBUNDLE_DOCS=OFF -DBUNDLE_TCDATA=ON -DBUNDLE_GSHHS=INTERMEDIATE ..

from the build directory and tested opencpn

with the resulting error

chris123@Odin:~/OpenCPN/build$ opencpn
14:06:12: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).
ALSA lib pcm.c:2450snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2450snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2450snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867find_matching_chmap) Found no matching channel map

So Im at a loss as to how to compile this thing with a base map. Any clues would helpful.

Best regards

ch
sailias is offline   Reply With Quote
Old 13-03-2017, 10:16   #13
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: Base map

ch...

This is a problem with your wxWidgets libraries. Not related to basemap, nor to ALSA, despite the warnings.

So, where did your wxWidgets come from?

Dave
bdbcat is offline   Reply With Quote
Old 13-03-2017, 11:13   #14
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Base map

stock ubuntu 16.10 with all updates. Yes noticed that warning too. What is the correct version that should be used. Thanks for pointing that out.

Kind regards and apologies for the confusion.

/ch
sailias is offline   Reply With Quote
Old 13-03-2017, 11:43   #15
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: Base map

2.8 is the version I see form the error message. Now to figure out how to downgrade as it appears to be not removable with synaptic.

/ch
sailias is offline   Reply With Quote
Reply


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
Want To Buy: C Map NT+ (not C Map Max) ianca Classifieds Archive 0 21-02-2013 04:10
C-Map NT+ Vs C-Map Max River Cruiser Marine Electronics 2 28-06-2012 09:19
Where should we make home base? dianajh73 Flotsam & Sailing Miscellany 8 27-08-2006 14:21

Advertise Here


All times are GMT -7. The time now is 14:41.


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.