Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 05-11-2020, 18:58   #1
Registered User

Join Date: Jun 2017
Posts: 66
CircleCi builds for arm OpenCPN

Iíve set up circleci builds for arm 32/64 OpenCPN.
with latest gtk3 and latest wxWidgets 3.1

The build deploys into cloudsmith.

Iíve made my fork of OpenCPN to support touch gestures.

Cloudsmith URL


https://cloudsmith.io/~bbn-projects/...repo/packages/

And CircleCi scripts are available in respective repositories under


https://github.com/bareboat-necessities

I had to setup CircleCi arm builds for
gdk-pixbuf
gtk3
wxWidgets
evdev-rce
wxsvg3
OpenCPN

Iíve also set up CircleCi builds
for
KPlex arm32/64

and lysmarine OS

Please take a look.

OpenCPN does have some issues with
few dialogs and dark themes in grids and tabs but works much better on raspberry pi with touchscreen.

Right click is emulated via long touch using evdev-rce (which I had to fork too)

and OpenCPN finger zoom works
in my fork requiring wxWidgets 3.1.x

I can finally use OpenCPN with a touch screen in cockpit without keyboard.

LysMarine installs onscreen keyboard called Ďonboardí

and overall looks nice on raspberry pi 4 with 64 bit version.


Thanks,
óMG
mgrouch is offline   Reply With Quote
Old 05-11-2020, 19:33   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 6,214
Re: CircleCi builds for arm OpenCPN

MG....


Nice work. Very comprehensive.
There are some ideas here (e.g. expansion into more modern cross-platform docker images) that could be usefully migrated to OCPN mainline master build. I welcome your ideas on this.


Of course, with this approach, we lose the opportunity for simple:


Code:
$sudo apt-get install opencpn.
But on the other hand, for those willing to do "sudo dpkg...", one can get wx3.1, gtk3, touch screen, etc. for various interesting platforms.


Anyways, kudos on the great work!
Dave
bdbcat is offline   Reply With Quote
Old 05-11-2020, 19:42   #3
Registered User

Join Date: Jun 2017
Posts: 66
Re: CircleCi builds for arm OpenCPN

You do not lose ability to do

sudo apt-get install opencpn

This is exactly how you would install it.

Docker is used only at build time. There is no any change for users.
mgrouch is offline   Reply With Quote
Old 05-11-2020, 20:02   #4
Registered User

Join Date: Jun 2017
Posts: 66
Re: CircleCi builds for arm OpenCPN

The idea is that every time you do push into git of OpenCPN source code you will get a build of Debian or whatever binaries packages. If your commits broke the build you get notified via email. I canít set up builds for all platforms cause I run out of my allowance on CircleCi and cloudsmith but several people could do it cooperatively. Letís say one focuses on Windows another on Mac and another on Debian intel and another on Debian arm and another on rpm Fedora and there is BSD as well. Delivery chain has to be automated. Itís not right now. And not for plugins. And it can be done
mgrouch is offline   Reply With Quote
Old 06-11-2020, 08:48   #5
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 6,214
Re: CircleCi builds for arm OpenCPN

mgrouch...


Currently we use Ubuntu launchpad repos ( or, in some cases, generic debian repos) for deployment to linux when using "apt-get".
In order to use a cloudsmith repo with "apt-get", some specific setup must be done by the user. This is documented here:


https://help.cloudsmith.io/docs/debian-repository


This part is not (yet) documented for OpenCPN, and may be unfamiliar/uncomfortable for some users. But it is certainly do-able, and opens up lots more possibilities.


Thanks for the clarification
Dave
bdbcat is offline   Reply With Quote
Old 06-11-2020, 08:51   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 6,214
Re: CircleCi builds for arm OpenCPN

mgrouch...


re:
"And not for plugins...."


OpenCPN managed plugins have a fully implemented CI/CD chain now. This was one of the reasons for pulling this functionality into base OCPN. Agreed, some plugins are not yet available as "managed" variety. This is a work-in-process.



Thanks
Dave
bdbcat is offline   Reply With Quote
Old 06-11-2020, 09:11   #7
Registered User

Join Date: Jun 2017
Posts: 66
Re: CircleCi builds for arm OpenCPN

In cloudsmith you can just go to the repository page and click ďSet me upĒ. It gives couple commands needed to be run to register that repository on users machine.
mgrouch is offline   Reply With Quote
Old 06-11-2020, 10:04   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 6,214
Re: CircleCi builds for arm OpenCPN

Good to know.
Thanks
Dave
bdbcat is offline   Reply With Quote
Old 16-11-2020, 09:56   #9
Registered User

Join Date: Jun 2017
Posts: 66
CircleCi builds for arm OpenCPN

I compiled using GTK2 and GTK3 on Ubuntu and on Debian arm32, arm 64
There are quite a few issues with touch in every build.
I used wxWidgets 3.1.*

The builds are here:

GTK2 Debian arm32/64, wxWidgets 3.1.*
https://cloudsmith.io/~bbn-projects/...repo/packages/
(Click "Set me up")

GTK3 Debian arm32/64, wxWidgets 3.1.*
https://cloudsmith.io/~bbn-projects/...repo/packages/
(Click "Set me up")

GTK3 Ubuntu (all platforms), wxWidgets 3.1.*
https://launchpad.net/~bbn-projects/...ncpn/+packages

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 24A4598E769C8C51 # bbn-opencpn on launchpad

and put

deb http://ppa.launchpad.net/bbn-project...opencpn/ubuntu bionic main
deb-src http://ppa.launchpad.net/bbn-project...opencpn/ubuntu bionic main
into /etc/apt/sources.list.d/bbn.list

Also for complete OS image you can download

lysmarine_0.9.1.2-raspios-arm64.img.zip from

https://cloudsmith.io/~bbn-projects/...ackages/?q=Lys

It is built by CircleCI from this code https://github.com/bareboat-necessities/lysmarine_gen
It showcases all the bugs I've reported recently. Try using it without mouse with touchscreen only.

Thanks,
--MG
mgrouch is offline   Reply With Quote
Old 22-11-2020, 02:36   #10
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 754
Re: CircleCi builds for arm OpenCPN

Hi MG,

tried the Lysmarine WIP image. It works well. What stands WIP for ?

Although I did not go it working with my GPS serial mouse. Not in SignalK and not direct in OpenCPN. I also had to change rights on some directories to get my maps working.

Not yet tried every new feature.


Bram
verkerkbr is offline   Reply With Quote
Old 24-11-2020, 12:17   #11
Registered User

Join Date: Jun 2017
Posts: 66
Re: CircleCi builds for arm OpenCPN

A new build is available. Lots of changes and fixes.
mgrouch is offline   Reply With Quote
Old 26-11-2020, 01:15   #12
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 754
Re: CircleCi builds for arm OpenCPN

Quote:
Originally Posted by mgrouch View Post
A new build is available. Lots of changes and fixes.

MC

indeed a lot of changes. However still no serial options out of the "box". OpenCPN works well here with SignalK input with AIS from another system.

OpenCPN now under Science ?


Bram
verkerkbr 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
71 Year-Old Builds 57' Boat Healer52 Construction, Maintenance & Refit 45 02-02-2012 09:16
Man Builds a Cruise Ship in His Backyard ! SarasotaYacht Off Topic Forum 7 08-11-2011 15:48
Who Builds the Best ? The Turners Multihull Sailboats 39 05-10-2011 07:00
Patch for OpenCPN to Work on Latest gpsd (2.96) and MeeGo builds arfoll OpenCPN 0 22-07-2011 11:04
Who Builds the Formosa Ketch? btyson18 Monohull Sailboats 4 11-12-2009 14:49

Advertise Here


All times are GMT -7. The time now is 00:48.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.