Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-02-2015, 11:06   #1
Registered User

Join Date: Feb 2015
Posts: 2
OpenCPN on Raspberry PI2

Recently i bought a Raspberry Pi 2, i've followed the following guide to install OpenCPN 4.0 on the RPI2: Pi Chart

The installation isn't the problem, the starting up is. After i launched opencpn it opens a split second and immediately closes, without giving an error.

The following log file is generated:

-------------------------------------------------------------------------------------
17:24:58 UTC: 2015-02-08
17:24:58 UTC: ------- Starting OpenCPN -------
17:24:58 UTC: Version 4.0.0 Build 2015-01-08
17:24:58 UTC: wxWidgets version: wxWidgets 2.8.12
17:24:58 UTC: MemoryStatus: mem_total: 744 mb, mem_initial: 18 mb
17:24:58 UTC: SData_Locn is /usr/local/share/opencpn/
17:24:58 UTC: Creating new Config_File: /home/pi/.opencpn/opencpn.conf
17:24:58 UTC: Styles loading from /usr/local/share/opencpn/uidata/styles.xml
17:24:58 UTC: No styles found at: /home/pi/
17:24:58 UTC: No styles found at: /home/pi/.opencpn/
17:24:58 UTC: Detected display size: 483 mm
17:24:58 UTC: Detected display size: 483 mm
17:24:58 UTC: Setting Viewpoint Lat/Lon 33.358, -79.282
17:24:58 UTC: Setting Ownship Lat/Lon 33.358, -79.282
17:24:58 UTC: Loading navobjects from navobj.xml
17:24:58 UTC: Done loading navobjects
17:24:58 UTC: System default Language: en_GB
17:24:58 UTC: Error: Cannot set locale to 'en_US'.
17:24:58 UTC: Error: Cannot set locale to 'en_US'.
17:24:58 UTC: Error: Cannot set locale to 'en_US'.
17:24:58 UTC: Opencpn language set to: en_US
17:25:01 UTC: ChartSymbols loaded from /usr/local/share/opencpn/s57data/chartsymbols.xml
17:25:02 UTC: Using s57data in /usr/local/share/opencpn/s57data
17:25:02 UTC: Setting Viewpoint Lat/Lon 33.358, -79.282
17:25:02 UTC: Setting Ownship Lat/Lon 33.358, -79.282
17:25:02 UTC: Creating glChartCanvas
17:25:02 UTC: PlugInManager searching for PlugIns in location /usr/local/lib/opencpn

-------------------------------------------------------------------------------------

Am I missing something?
__________________

__________________
starnakel is offline   Reply With Quote
Old 08-02-2015, 12:13   #2
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 78
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by starnakel View Post
Recently i bought a Raspberry Pi 2, i've followed the following guide to install OpenCPN 4.0 on the RPI2: Pi Chart

The installation isn't the problem, the starting up is. After i launched opencpn it opens a split second and immediately closes, without giving an error.

The following log file is generated:

-------------------------------------------------------------------------------------
17:24:58 UTC: 2015-02-08
17:24:58 UTC: ------- Starting OpenCPN -------
17:24:58 UTC: Version 4.0.0 Build 2015-01-08
17:24:58 UTC: wxWidgets version: wxWidgets 2.8.12
17:24:58 UTC: MemoryStatus: mem_total: 744 mb, mem_initial: 18 mb
17:24:58 UTC: SData_Locn is /usr/local/share/opencpn/
17:24:58 UTC: Creating new Config_File: /home/pi/.opencpn/opencpn.conf
17:24:58 UTC: Styles loading from /usr/local/share/opencpn/uidata/styles.xml
17:24:58 UTC: No styles found at: /home/pi/
17:24:58 UTC: No styles found at: /home/pi/.opencpn/
17:24:58 UTC: Detected display size: 483 mm
17:24:58 UTC: Detected display size: 483 mm
17:24:58 UTC: Setting Viewpoint Lat/Lon 33.358, -79.282
17:24:58 UTC: Setting Ownship Lat/Lon 33.358, -79.282
17:24:58 UTC: Loading navobjects from navobj.xml
17:24:58 UTC: Done loading navobjects
17:24:58 UTC: System default Language: en_GB
17:24:58 UTC: Error: Cannot set locale to 'en_US'.
17:24:58 UTC: Error: Cannot set locale to 'en_US'.
17:24:58 UTC: Error: Cannot set locale to 'en_US'.
17:24:58 UTC: Opencpn language set to: en_US
17:25:01 UTC: ChartSymbols loaded from /usr/local/share/opencpn/s57data/chartsymbols.xml
17:25:02 UTC: Using s57data in /usr/local/share/opencpn/s57data
17:25:02 UTC: Setting Viewpoint Lat/Lon 33.358, -79.282
17:25:02 UTC: Setting Ownship Lat/Lon 33.358, -79.282
17:25:02 UTC: Creating glChartCanvas
17:25:02 UTC: PlugInManager searching for PlugIns in location /usr/local/lib/opencpn

-------------------------------------------------------------------------------------

Am I missing something?
Yes, you missed this bit:

Add a couple of lines to the /boot/config.txt file; use any text editor such as vi or leafpad.

These changes will be effective following the next reboot and are required to resolve problems that the Pi/armhf has with vector charts.
$ vi /boot/config.txt
framebuffer_depth=32
framebuffer_ignore_alpha=1
__________________

__________________
Alisdair is offline   Reply With Quote
Old 08-02-2015, 12:16   #3
Registered User

Join Date: Feb 2015
Posts: 2
Re: OpenCPN on Raspberry PI2

Thank you Alisdair, that fixed the problem.
I indeed forgot to add the phrases in the config file

many thanks
__________________
starnakel is offline   Reply With Quote
Old 08-02-2015, 12:29   #4
Registered User

Join Date: May 2011
Location: Toronto
Boat: Sandpiper 565
Posts: 2,655
Re: OpenCPN on Raspberry PI2

Please keep us posted about how OpenCPN is working on your Pi 2. This new model could be ideal as a low-cost dedicated boat computer.
__________________
Lake-Effect is offline   Reply With Quote
Old 09-02-2015, 05:56   #5
Registered User

Join Date: Sep 2010
Posts: 117
Re: OpenCPN on Raspberry PI2

Hi,

On web page Pi Chart these is missing one depedency "wx2.8-i18n" needed by opencpn see below.

"pi@raspberrypi2 ~/opencpn $ sudo dpkg -i opencpn_4.0.0-1_armhf.deb
Selecting previously unselected package opencpn.
(Reading database ... 81315 files and directories currently installed.)
Unpacking opencpn (from opencpn_4.0.0-1_armhf.deb) ...
dpkg: dependency problems prevent configuration of opencpn:
opencpn depends on wx2.8-i18n; however:
Package wx2.8-i18n is not installed.

dpkg: error processing opencpn (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
opencpn"

Kubek
__________________
kubek is offline   Reply With Quote
Old 10-02-2015, 00:11   #6
Registered User

Join Date: Oct 2010
Location: Vancouver
Boat: Oyster 39
Posts: 51
Re: OpenCPN on Raspberry PI2

I've gotten my RPI 2 to run OpenCPN, no problem using the Pi Chart package, but I can't get either the USB "puck" nor the ahem...2011 Vector charts to work.

I've checked permissions on the /dev/ttyUSB0 and can see the NEMA messages in the debug log, but the gps satellite .i| satellite "bars" never arrive, it instead just stays at the red ball.

On the maps front, the screen is painted a lovely pale blue colour but the maps don't load at all. I know these maps have worked prior with others laptops I've ran OpenCPN on. Anyone having similar experiences, and lastly has anyone got an active AIS TCP feed to test with?

Thanks,
Jayson
__________________
Deep6 is offline   Reply With Quote
Old 10-02-2015, 16:04   #7
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,514
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by Deep6 View Post
I've gotten my RPI 2 to run OpenCPN, no problem using the Pi Chart package, but I can't get either the USB "puck" nor the ahem...2011 Vector charts to work.
ENC or cm93 or? Did you compile from source or?
Quote:
I've checked permissions on the /dev/ttyUSB0 and can see the NEMA messages in the debug log, but the gps satellite .i| satellite "bars" never arrive, it instead just stays at the red ball.
Did you try cgps?
Quote:
On the maps front, the screen is painted a lovely pale blue colour but the maps don't load at all. I know these maps have worked prior with others laptops I've ran OpenCPN on. Anyone having similar experiences, and lastly has anyone got an active AIS TCP feed to test with?

Thanks,
Jayson
Please post log file
__________________
boat_alexandra is offline   Reply With Quote
Old 10-02-2015, 16:56   #8
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 78
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by Deep6 View Post
On the maps front, the screen is painted a lovely pale blue colour but the maps don't load at all. I know these maps have worked prior with others laptops I've ran OpenCPN on. Anyone having similar experiences, and lastly has anyone got an active AIS TCP feed to test with?

Thanks,
Jayson

A couple of options are:
- You can recompile using make -DBUNDLE_GSHHS=MIN or
- install my package file (that also includes tides) http://agurney.com/raspi/opencpn_4.0..._tides_map.deb
__________________
Alisdair is offline   Reply With Quote
Old 10-02-2015, 17:01   #9
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,514
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by Alisdair View Post
Yes, you missed this bit:

Add a couple of lines to the /boot/config.txt file; use any text editor such as vi or leafpad.

These changes will be effective following the next reboot and are required to resolve problems that the Pi/armhf has with vector charts.
$ vi /boot/config.txt
framebuffer_depth=32
framebuffer_ignore_alpha=1
Which of these options is needed? Are both required or? Does this affect opengl mode, or even without opengl? The program actually crashes?!? Do you have a backtrace?
__________________
boat_alexandra is offline   Reply With Quote
Old 12-02-2015, 00:39   #10
Registered User

Join Date: Oct 2010
Location: Vancouver
Boat: Oyster 39
Posts: 51
Re: OpenCPN on Raspberry PI2

Charts are CM93 2011, as I mentioned working in other installations of Open CPN.

Installed the other package that was recommended in the thread and I have the large vector map now of the entire world, but the cm93 charts never seem to appear.

The relevant lines in the opencpn.log file seem to be here:

23:30:50 PST: Loading chart db version: V018
23:30:50 PST: Chartdb: Chart directory list follows
23:30:50 PST: Chart directory #0: /home/pi/opencpn/CM93January2011
23:30:50 PST: GPS Watchdog Timeout is: 6 sec.
23:30:50 PST: Unable to initialize background world map. No GSHHS datafiles found in /usr/local/share/opencpn/gshhs/
23:30:50 PST: Loading World Chart Q=0 in 0 ms.
23:30:50 PST: Background world map loaded from GSHHS datafiles found in: /usr/local/share/opencpn/gshhs/



I now have gps working via gpsd, but I've never had need of running gpsd before it was simply a matter of adding the user to dialout and specifying the /dev/ttyUSB0 after connecting the puck,


What are the advantages/disavantages of running it through gpsd instead of the /dev/ttyUSB0 device?
__________________
Deep6 is offline   Reply With Quote
Old 12-02-2015, 14:02   #11
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,645
Re: OpenCPN on Raspberry PI2

Hi all...
How I did to run OpenCPN 4.0 on Raspberry Pi version 2 B+.
My first attempt was to follow: KISS (Keep It Simple Stupid)
Here are my steps:
1) Bought me a Raspberry Pi2 and a 32 Mb SD card
2) Made a NOOBS (Raspbian) installation from WinXP on the SD card See: NOOBS Setup | Raspberry Pi
3) Connected a VDU via a HTML-VGA converter, keyboard, mouse, network cable and 5V from my power supply.
(The last was to be able to see the power consumption. >> So far no more then 0.52A. A 1A power plug will do)

4) Put the SD card on place and switched the power on. It just booted!
5) During installation I selected Raspbian desktop, keyboard and other similarities.
6) Restarted into Raspbian and opened the browser and could directly connect to Opencpn.org.
7) There I followed the advices on: Compiling - Linux | Official OpenCPN Homepage
I used the Debian/Ubuntu…
sudo apt-get install build-essential cmake gettext gi............................................
The first attempt wasn’t that successful so I did:
apt-get update, apt-get install, apt-get update and then again sudo apt-get install build-essential cmake gettext gi................
Now cmake and all other stuff were installed successfully.

8) Succeeding the rest, Git clone, cmake .., make and install.
9) Made me a desktop shortcut: Desktop Shortcuts – Raspberry Pi Projects
10) Started OpenCPN. >>> Welcome – No charts – studied the world map and closed OpenCPN
11) Copied some charts from my XP via network.
12) Installed the charts and after some struggle the charts are there! It’s slow but useable.
I think the struggling was due to a completely empty config file. I had for example to uncheck and check the charts bar to get it visible

13) I tried to switch OpenGl on and was working although very slow. At scale 21300 (1x) fps = 1.



I could need some advices:
The charts bar is not visible when I restart OCPN. I’ve to uncheck and check it in “User Interface” to get it visible. Hints please
The log files says: “Warning: Color not found CHDRD” Never seen before, what’s this?

OpenGL is not the best. From Log file:
Code:
21:42:22 CET: OpenGL-> Renderer String: Software Rasterizer   
21:42:22 CET: OpenGL-> Version reported:  2.1 Mesa 8.0.5
21:42:22 CET: OpenGL-> Texture rectangle format: de1
21:42:22 CET: OpenGL-> Using Vertexbuffer Objects
21:42:22 CET: OpenGL-> Using Framebuffer Objects
21:42:22 CET: OpenGL-> Using FBO Stencil buffer
21:42:22 CET: OpenGL-> Using Stencil buffer clipping
21:42:22 CET: OpenGL-> Using Scissor Clipping
21:42:22 CET: OpenGL-> Not Using compression
21:42:22 CET: OpenGL-> Minimum cartographic line width:  1.0
21:42:22 CET: OpenGL-> Minimum symbol line width:  1.0
Anything I can do?

Håkan
__________________
Hakan is offline   Reply With Quote
Old 12-02-2015, 14:27   #12
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,027
Re: OpenCPN on Raspberry PI2

Try installing GLshim to convert OpenGL to OpenGLes.

Find instructions on this page:
Building and installing on CubieTruck with Hardware Acceleration | Official OpenCPN Homepage

I don't know if it will work or not.

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 12-02-2015, 14:39   #13
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,645
Re: OpenCPN on Raspberry PI2

JM...
Thanks, looks interesting. I'll have a check tomorrow.
Håkan
__________________
Hakan is offline   Reply With Quote
Old 12-02-2015, 16:19   #14
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 78
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by Hakan View Post
Hi all...
How I did to run OpenCPN 4.0 on Raspberry Pi version 2 B+.
Which Pi do you have? The "Raspberry Pi 2" is the new four core version that is around six times faster than a B+
__________________
Alisdair is offline   Reply With Quote
Old 13-02-2015, 00:01   #15
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,645
Re: OpenCPN on Raspberry PI2

Allsdar..
Sorry for the extra "+". It should be version 2 B
Håkan
__________________

__________________
Hakan is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools
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 on Raspberry PI Raspbian Captain_Steve OpenCPN 12 08-02-2015 11:45
Comproblem on Raspberry Pi and OpenCPN vagspel OpenCPN 4 26-12-2012 06:01
Raspberry Pi and OpenCPN 3.1.915 spillemw OpenCPN 20 24-09-2012 03:30
Raspberry PI compiles OpenCPN monstads OpenCPN 7 15-03-2012 13:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 20:09


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 02:40.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.