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 03-01-2016, 09:43   #121
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by bdbcat View Post
@jm...

Nothing too funny here. Lots of textures, but texture memory growing at the right rate. About 16 tiles (levels 2/3/4) per MByte of texture storage. Same as my system.


What size is your display?
After OCPN is "killed", does

Code:
$dmesg
give anything useful from the kernel log?

Dave
So it looks like OpenCPN is being killed by the OS for using up all the memory.

Is this a problem with OpenCPN or something in the OS ?

Thanks,
JM.
NahanniV is offline   Reply With Quote
Old 03-01-2016, 12:20   #122
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN on Raspberry Pi2

RP_pi - jessie, OCPN 4.1.1301
I have only language English US in tools-UI-Language
Why are not the whole list shown? All mo files are installed.
Probably my lack of Linux knowledge but please advise.
Thanks
Håkan
Hakan is offline   Reply With Quote
Old 03-01-2016, 12:34   #123
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by Hakan View Post
RP_pi - jessie, OCPN 4.1.1301
I have only language English US in tools-UI-Language
Why are not the whole list shown? All mo files are installed.
Probably my lack of Linux knowledge but please advise.
Thanks
Håkan
Maybe try to add the other languages to you rasperry
Code:
sudo raspi-config
and then option 4, Internationalisation Options.
petter5 is offline   Reply With Quote
Old 03-01-2016, 12:58   #124
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN on Raspberry Pi2

Petter..
Maybe but OCPN has its own translation files.
Tack
Håkan
Hakan is offline   Reply With Quote
Old 03-01-2016, 13:26   #125
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: OpenCPN on Raspberry Pi2

Håkan.

It seems to me that you need to have the actual language installed on your computer under Linux to make it possible to show the opencpn translation ? At least on my computer, If I change the language in opencpn to a language not installed in the operation system, Opencpn will stick to the previous displayed language even if the new language option in settings is used. My system has English and Norwegian language installed in the os. If trying to change opencpn to Danish, nothing happens ( still displays English) but if I try to change to Norwegian, Opencpn also shows Norwegian menus correctly.
petter5 is offline   Reply With Quote
Old 03-01-2016, 14:59   #126
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN on Raspberry Pi2

Petter
OK thanks I'll take a look later although I think at least Swedish is pointed to in .config.
But - I don't even have the language list in OCPN - UI. The list consists of one row - English (US).
Håkan
Hakan is offline   Reply With Quote
Old 03-01-2016, 15:03   #127
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: OpenCPN on Raspberry Pi2

Hakan...
Petter is correct, you have to have the locale installed on your Linux system, otherwise the language is not even offered by OpenCPN.
Try
Code:
sudo apt-get install locales
sudo dpkg-reconfigure locales
to enable the languages you are interested in.

Pavel
nohal is offline   Reply With Quote
Old 03-01-2016, 15:17   #128
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN on Raspberry Pi2

Ok - Many thanks to both of you.
Sorry for my persistence, but sometimes I trust to much in the simplicity of Linux.

Håkan /The poor old a native Windows.
Hakan is offline   Reply With Quote
Old 03-01-2016, 20:58   #129
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN on Raspberry Pi2

Pavel, Petter
I've checked my Pi and the locales are as this.
Code:
pi@raspberrypi ~/builds/OpenCPN/build $ sudo dpkg-reconfigure locales
Generating locales (this might take a while)...
  en_GB.UTF-8... done
  en_US.UTF-8... done
  sv_SE.UTF-8... done
Generation complete.
But still only one row in the UI-language selection list.
What more can I check?

Starting O from cmd gives this back:
Code:
pi@raspberrypi ~/builds/OpenCPN/build $ opencpn
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline

(opencpn:15335): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed
pi@raspberrypi ~/builds/OpenCPN/build $
Any hints from that?
Håkan
Hakan is offline   Reply With Quote
Old 04-01-2016, 00:54   #130
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by NahanniV View Post
Tried the latest from GIT on my CubieTruck.

The blurring with texture compression caching is gone and the performance for cached raster charts is fantastic.

However there are some new problems:
- on startup I get a black screen or garbled chart until I pan or zoom, then the display is correct.
What do you have in the log file? Did you build with wx 2.8 or 3.0? Can you try with 2.8 and see if the result is the same?
Quote:
- after changing configuration I get the same black or garbled screen till I pan or zoom.
- there is no progress screen for rebuilding the texture cache.
- CM93 charts seem much slower.
Slower than before or slower than without opengl. I"m guessing the FBO isn't working. My latest patch (which isn't merged) for raspberry pi gives good performance for cm93 and should in theory work on the cubie truck.

This problem remains:
With OpenGL=ON, TextureCompression=OFF, RasterCharts OpenCPN becomes unresponsive after panning and zooming a bit.
[/quote]

I quickly run out of texture memory with compression off on only 1280x800 resolution.

Quote:
I don't see the crosshatching when exiting the program, is that the polygon stipple? I don't notice any ill effect from that.

Cheers,
JM.
seandepagnier is offline   Reply With Quote
Old 04-01-2016, 02:09   #131
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,105
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by Hakan View Post
Pavel, Petter
I've checked my Pi and the locales are as this.
Code:
pi@raspberrypi ~/builds/OpenCPN/build $ sudo dpkg-reconfigure locales
Generating locales (this might take a while)...
  en_GB.UTF-8... done
  en_US.UTF-8... done
  sv_SE.UTF-8... done
Generation complete.
But still only one row in the UI-language selection list.
What more can I check?

Starting O from cmd gives this back:
Code:
pi@raspberrypi ~/builds/OpenCPN/build $ opencpn
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline

(opencpn:15335): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'width >= -1' failed
pi@raspberrypi ~/builds/OpenCPN/build $
Any hints from that?
Håkan
I'am using Raspian version on a Raspberry PI 2 . To get the Dutch language I downloaded locales-all with Synaptic. I just tried also the Swedisch language.

The result !
Attached Thumbnails
Click image for larger version

Name:	2016-01-02-231920_1024x768_scrot.png
Views:	306
Size:	132.0 KB
ID:	116109  
verkerkbr is offline   Reply With Quote
Old 04-01-2016, 02:45   #132
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN on Raspberry Pi2

verker....
I loaded locales with apt-get, shouldn't be a difference should it?
What other differences between our system?
-I've Raspbian on jessie.
-Build with "cmake .."
-English as "system" language.
I'll - Test the locale by switch to se-SV as system lang. - Check on another machine.
Thanks
Håkan
Hakan is offline   Reply With Quote
Old 04-01-2016, 03:19   #133
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN on Raspberry Pi2

RB_pi cont...
Tried to change local lang. but it didn't had any effect on the system, still Eng although sv_SE was selected.
Also tried to add nl_NL but no effect on OCPN languages list.
Concl: OCPN is not to blame (as usual?) My system can't change language or recognize those installed.
Next step??
Thanks/Håkan
Hakan is offline   Reply With Quote
Old 04-01-2016, 03:22   #134
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,105
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by Hakan View Post
verker....
I loaded locales with apt-get, shouldn't be a difference should it?
What other differences between our system?
-I've Raspbian on jessie.
-Build with "cmake .."
-English as "system" language.
I'll - Test the locale by switch to se-SV as system lang. - Check on another machine.
Thanks
Håkan
Hi Hakan,

my system Language is Dutch. But that does not matter for OpenCPN.

Apt-get or installing Packets via Synaptic is the same. Because i'am using a 32 Gig stick withj plenty space, I took also locales-all.

These seems to be allready precompiled language files. And then you can simply add the desired language to O. Restarting O and you have the Swedisch language.

Regards from the Delta area,


Bram
Attached Thumbnails
Click image for larger version

Name:	2016-01-04-120649_1024x768_scrot.png
Views:	154
Size:	105.8 KB
ID:	116111  
verkerkbr is offline   Reply With Quote
Old 04-01-2016, 04:06   #135
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,105
Re: OpenCPN on Raspberry Pi2

For your system you can switch the language with:

sudo dpkg-reconfigure locales

if the language file is allready available
verkerkbr is offline   Reply With Quote
Reply

Tags
enc, opencpn


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 PI2 starnakel OpenCPN 284 16-03-2017 13:58
Has anyone gotten any Plugins working on Raspberry Pi2 Uncle Augie OpenCPN 5 27-06-2015 06:19
Has anyone managed to get hardware supported OpenGL on Rasperry Pi2 to work? Gunnar1 OpenCPN 53 16-06-2015 02:10
Raspberry Pi2 ratsea OpenCPN 5 26-02-2015 08:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


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


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.