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 31-01-2017, 04:11   #226
Registered User

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

Quote:
Originally Posted by LeaseOnLife View Post
fturbo shall never confuse me again:
Code:
apt-get remove --purge xserver-xorg-video-fbturbo
and it still works
Having used my Raspberry Pi3 for a short time with OpenCPN 4.5.127,
and the latest large UK testversion of oeSenc.

With Wayland, the latest updates plus kernel 4.9.5-V7+. (now 4.9.6)

VC3 experimental driver switched on. And the 99-fbturbo file removed.

All seems to work very well with fast screen movement.

Dirk, thanks for the update details,

Regards,

Bram
verkerkbr is offline   Reply With Quote
Old 31-01-2017, 08:48   #227
Registered User

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

could you please make a guide to the steps taken starting with a specific raspbian image? I think it would be useful for the wiki
seandepagnier is offline   Reply With Quote
Old 31-01-2017, 09:53   #228
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by boat_alexandra View Post
could you please make a guide to the steps taken starting with a specific raspbian image? I think it would be useful for the wiki

conachair is offline   Reply With Quote
Old 01-02-2017, 02:11   #229
Registered User

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

Quote:
Originally Posted by boat_alexandra View Post
could you please make a guide to the steps taken starting with a specific raspbian image? I think it would be useful for the wiki
Hi B-A,

are you writing this to me ? English is not my native language.

And the kernel version to 4.9.6 etc. are not yet the official versions.

But it works great here in combination with the OpenCPN beta and the Oesenc chart system.

Progress all around.

Regards,


Bram

So the Thames Estuary looks like with the Oesenc charts.
Attached Thumbnails
Click image for larger version

Name:	2017-02-01-110606_1680x1050_scrot.jpg
Views:	1032
Size:	439.0 KB
ID:	140488  
verkerkbr is offline   Reply With Quote
Old 01-02-2017, 03:05   #230
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: OpenCPN on Raspberry PI2

Some info about updating to kernel 4.9. Here..

https://www.raspberrypi.org/forums/v...c.php?t=167934
conachair is offline   Reply With Quote
Old 05-02-2017, 09:23   #231
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,474
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by boat_alexandra View Post
yes I'm hoping that etc1 is in the near future.

As for the broadcom itself is very limited compared to other mobile gpu
With the latest Kernel, 4.9.8 as of today, I see something ETC related, output of glxinfo:

Code:
OpenGL ES profile extensions:
    GL_APPLE_texture_max_level, GL_EXT_blend_minmax, 
    GL_EXT_discard_framebuffer, GL_EXT_draw_buffers, 
    GL_EXT_draw_elements_base_vertex, GL_EXT_map_buffer_range, 
    GL_EXT_multi_draw_arrays, GL_EXT_read_format_bgra, 
    GL_EXT_separate_shader_objects, GL_EXT_texture_border_clamp, 
    GL_EXT_texture_format_BGRA8888, GL_EXT_texture_type_2_10_10_10_REV, 
    GL_EXT_unpack_subimage, GL_KHR_context_flush_control, GL_KHR_debug,
    GL_NV_draw_buffers, GL_NV_fbo_color_attachments, GL_NV_read_buffer,
    GL_NV_read_depth, GL_NV_read_depth_stencil, GL_NV_read_stencil,
    GL_OES_EGL_image, GL_OES_EGL_image_external, GL_OES_EGL_sync,
    GL_OES_compressed_ETC1_RGB8_texture, GL_OES_depth24, GL_OES_depth_texture,
    GL_OES_draw_elements_base_vertex, GL_OES_element_index_uint, 
    GL_OES_fbo_render_mipmap, GL_OES_get_program_binary, GL_OES_mapbuffer,
    GL_OES_packed_depth_stencil, GL_OES_rgb8_rgba8, GL_OES_stencil8, 
    GL_OES_surfaceless_context, GL_OES_texture_3D,   
    GL_OES_texture_border_clamp, GL_OES_texture_npot, 
    GL_OES_vertex_array_object
Is this what you are looking for?

Dirk
LeaseOnLife is offline   Reply With Quote
Old 05-02-2017, 16:44   #232
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,474
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by boat_alexandra View Post
could you please make a guide to the steps taken starting with a specific raspbian image? I think it would be useful for the wiki
OK, I started from scratch, with a fresh, full Debian Jessie. Here is my log:

From a fresh 2017/01 Debian Jessie to OpenCPN


Enable the SSH server
I like to access the PI3 via ssh for easier copy/paste
On the Raspberry run:
$ sudo touch /boot/ssh
After reboot you can connect to the PI via ethernet cable (or configure wireless)

Update Debian Jessie and Linux kernel
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get autoremove --purge
$ sudo apt-get install rpi-update
$ sudo BRANCH=next rpi-update
$ sudo reboot

Use RASPI-CONFIG to enable OpenGL, etc

Use
$ sudo raspi-config
=> Advanced Options, “GL Driver”, enable
This also installs a couple packages the first time used (compton libconfig9).
=> localisation Options
Select timezone, keyboard, etc

Remove obsolete config files
$ sudo dpkg --purge $(COLUMNS=200 dpkg -l | grep "^rc" | tr -s ' ' | cut -d ' ' -f 2)

Tools I like to use
$ sudo apt-get install htop joe

Prerequisite packages for OpenCPN

Per OpenCPN doc, these are the required packages:
$ sudo apt-get install build-essential cmake gettext git-core libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev

I have no use for GPSD, so I omitted “gpsd gpsd-clients” above.

Also needed for OpenCPN (detected when opencpn cmake couldn’t find these)
$ sudo apt-get install liblzma-dev libelf-dev


Get source code for OpenCPN and compile

$ mkdir ~/CODING/
$ cd ~/CODING
$ git clone https://github.com/OpenCPN/OpenCPN
$ cd OpenCPN
$ mkdir build
$ cd build
$ cmake ../
$ sudo make install

Remarks:
  • I couldn't get "Jessie light" plus X, lightdm, ldxe ... to work so I went with the full Raspian Jessie distribution.
  • Above made opencpn work with opengl and vblank_mode=0 glxgears
    shows ~650 fps. I can get it to ~750fps by uninstalling compton.


Cheers


Dirk






LeaseOnLife is offline   Reply With Quote
Old 06-02-2017, 01:54   #233
Registered User

Join Date: Feb 2017
Posts: 20
Re: OpenCPN on Raspberry PI2

To whom it may concern.
Trying to build OpenCPN from scratch as of yesterday, I am running into a few issues:

Linux pidev 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux
trying to get the source, I get the following error:
apt-cache search opencpn
opencpn - OpenSource Chart Plotter/Navigator
root@pidev:/home/pi# add-apt-repository ppapencpn/opencpn
You are about to add the following PPA to your system:
A Chartplotter and GPS Navigation Software.

OpenCPN is a free software (GPLv2) project to create a concise chartplotter and navigation software for use as an underway or planning tool. OpenCPN is developed by a team of active sailors using real world conditions for program testing and refinement.
More info: https://launchpad.net/~opencpn/+archive/ubuntu/opencpn
Press [ENTER] to continue or ctrl-c to cancel adding it

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 167, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 105, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 595, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/jessie

trying to clone from github works fine, but gives me Version 4.2.0
building it, following Allisdair's tutorial, gives me the following issues:
building with:
-DBUNDLE_DOCS=ON -DBUNDLE_TCDATA=ON -DBUNDLE_GSHHS=HIGH
The make file terminated after approx 2h! w/out any noticable error.

But then the sudo make install command failed as following:
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /usr/local/bin/opencpn
-- Installing: /usr/local/share/opencpn/gshhs/poly-c-1.dat
-- Installing: /usr/local/share/opencpn/gshhs/wdb_borders_c.b
-- Installing: /usr/local/share/opencpn/gshhs/wdb_rivers_c.b
CMake Error at cmake_install.cmake:52 (file):
file INSTALL cannot find
"/home/pi/usb_hdd/OpenCPN/data/gshhs/poly-l-1.dat".

subsequently, trying to run it, gave the following error:

opencpn

(opencpn:8223): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Trace/Breakpoint ausgelöst


I gave it another shot w/ GSHHS=CRUDE.

make it (again)
the sudo make install command then worked OK,

but the run time error about GTK2 and GTK3 mixture remained.
Allisdair's pre-compiled version 4.2.0 works like a charm.

This is my 1st post here, and I couild not find anything similar, searching this thread.
Best Regards
hk
lve0200 is offline   Reply With Quote
Old 06-02-2017, 07:45   #234
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,525
Re: OpenCPN on Raspberry PI2

hk...

Welcome aboard.

re:
trying to clone from github works fine, but gives me Version 4.2.0

Which github repo did you use?

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 06-02-2017, 07:51   #235
Registered User

Join Date: Feb 2017
Posts: 20
Re: OpenCPN on Raspberry PI2

Hi there,
Well I followed Alistair's tutorial and I used
git clone git://github.com/OpenCPN/OpenCPN.git
Rgds
hk
lve0200 is offline   Reply With Quote
Old 06-02-2017, 08:30   #236
Registered User

Join Date: Feb 2017
Posts: 20
Re: OpenCPN on Raspberry PI2

Sorry, I have to correct myself. Since I got no running version from my own compilation, as described above, the Version 4.2.0 is of course from Alisdair's precompiled package, which I installed. Hence, the statement, that github gave me Version 4.2. is wrong.- Sorry for the confusion.
hk
lve0200 is offline   Reply With Quote
Old 06-02-2017, 09:29   #237
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,525
Re: OpenCPN on Raspberry PI2

hk...

OK, no problem.

But, are you able to compile from the "official" OpenCPN github site?

$ git clone git://github.com/OpenCPN/OpenCPN.git

Dave
bdbcat is offline   Reply With Quote
Old 06-02-2017, 09:36   #238
Registered User

Join Date: Feb 2017
Posts: 20
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by bdbcat View Post
hk...

OK, no problem.

But, are you able to compile from the "official" OpenCPN github site?

$ git clone git://github.com/OpenCPN/OpenCPN.git

Dave
Hi Dave, I'm lost
I wrote
Well I followed Alistair's tutorial and I used
git clone git://github.com/OpenCPN/OpenCPN.git

so where is the difference ?

git clone git://github.com/OpenCPN/OpenCPN.git
git clone git://github.com/OpenCPN/OpenCPN.git

I did a git pull 2b sure that I have the latest version. It says "up to date"
I CAN compile/link, but I am still getting the run time error about the mixture of GTK2 and GTK3
Rgds
hk

lve0200 is offline   Reply With Quote
Old 06-02-2017, 10:55   #239
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by lve0200 View Post
Hi Dave, I'm lost
I wrote
Well I followed Alistair's tutorial and I used
git clone git://github.com/OpenCPN/OpenCPN.git

so where is the difference ?

git clone git://github.com/OpenCPN/OpenCPN.git
git clone git://github.com/OpenCPN/OpenCPN.git

I did a git pull 2b sure that I have the latest version. It says "up to date"
I CAN compile/link, but I am still getting the run time error about the mixture of GTK2 and GTK3
Rgds
hk

Why not just load openplotter?

Everything is done for you then, kplex on there, signalk, Opencpn plus all the plugins & much more.

OpenPlotter RPI | Sailoog
conachair is offline   Reply With Quote
Old 06-02-2017, 11:03   #240
Registered User

Join Date: Feb 2017
Posts: 20
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by conachair View Post
Why not just load openplotter?

Everything is done for you then, kplex on there, signalk, Opencpn plus all the plugins & much more.

OpenPlotter RPI | Sailoog
Yep,
I definitely have OpenPlotter on the radar, but ..

"Everything is done for you then"

...that's the issue. I don't like ready made things (blackboxes), because they make me fully dependant on what others have made, or might abandon at some moment in time... I have built 95% of what OpenPlotter does by myself and I want now to finish up by getting an own compiled version of OpenCPN. Then I'm done for it, and I can decide whenever I want to change something in my setup, or not. IT's about being connected to the root of the things and mastering it yourself... if you know, what I mean...
Anyway, thank's for the recommendation.
Best Regards
hk
lve0200 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 PI Raspbian Captain_Steve OpenCPN 12 08-02-2015 10:45
Comproblem on Raspberry Pi and OpenCPN vagspel OpenCPN 4 26-12-2012 05:01
Raspberry Pi and OpenCPN 3.1.915 spillemw OpenCPN 20 24-09-2012 02:30
Raspberry PI compiles OpenCPN monstads OpenCPN 7 15-03-2012 12:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here
  Vendor Spotlight
No Threads to Display.


All times are GMT -7. The time now is 23:53.


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.