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 11-05-2024, 10:02   #1
Registered User

Join Date: Oct 2023
Location: Virginia, USA
Boat: NEEL 43
Posts: 12
Can't install OpenCPN on RPi5

Just got a Raspberry Pi 5 with a 10" touchscreen from EdaTech and trying to install OpenCPN, but getting an error when I try. I've checked my sources.list file and updated my repositories (debian bookworm, debian security, bookworm-updates. It also has an edatech repo that I see getting updated but isn't in the sources.list file.)

Code:
sudo apt install opencpn
which returns:

Code:
Package opencpn is not available, but is referred to by another package. ...
E: Package 'opencpn' has no installation candidate
Any ideas?

TIA!
oshinnvoyages is offline   Reply With Quote
Old 11-05-2024, 10:09   #2
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,419
Re: Can't install OpenCPN on RPi5

are you sure this has anything to do specifically with the pi 5? It seems like a software issue.

Consider compiling opencpn from source.
seandepagnier is offline   Reply With Quote
Old 11-05-2024, 12:24   #3
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 3,103
Re: Can't install OpenCPN on RPi5

Oh gawd, don't try compiling it from source unless you are a masochist.

Try starting with Openplotter. You can download it form here (it isn't obvious where the rpi5 version is from the main Openplotter page) https://forum.openmarine.net/showthread.php?tid=5060

If you want to install it without Openplotter, for some unknown reason the instructions to do so have been removed from the documentation.

But they can still be found here:
https://opencpn.org/wiki/dokuwiki/do...rev=1711119923
__________________
-Warren
wholybee is offline   Reply With Quote
Old 12-05-2024, 07:08   #4
Registered User

Join Date: Jun 2017
Posts: 454
Re: Can't install OpenCPN on RPi5

Quote:
Originally Posted by oshinnvoyages View Post
Just got a Raspberry Pi 5 with a 10" touchscreen from EdaTech and trying to install OpenCPN, but getting an error when I try. I've checked my sources.list file and updated my repositories (debian bookworm, debian security, bookworm-updates. It also has an edatech repo that I see getting updated but isn't in the sources.list file.)

Code:
sudo apt install opencpn
which returns:

Code:
Package opencpn is not available, but is referred to by another package. ...
E: Package 'opencpn' has no installation candidate
Any ideas?

TIA!
You can install BBN Marine OS (free and open source) which is released for pi5.
There are two images Lite and Full. OpenCPN is included and preconfigured.

https://bareboat-necessities.github.io

Is your edatec screen HDMI or DSI connected?
mgrouch is offline   Reply With Quote
Old 12-05-2024, 07:43   #5
Registered User

Join Date: Oct 2023
Location: Virginia, USA
Boat: NEEL 43
Posts: 12
Re: Can't install OpenCPN on RPi5

The screen is connected via DSI.

Thanks for the like to BBN Marine OS - I hadn't heard of it before and will check it out.

Quote:
Originally Posted by mgrouch View Post
You can install BBN Marine OS (free and open source) which is released for pi5.
There are two images Lite and Full. OpenCPN is included and preconfigured.

https://bareboat-necessities.github.io

Is your edatec screen HDMI or DSI connected?
oshinnvoyages is offline   Reply With Quote
Old 12-05-2024, 08:09   #6
Registered User

Join Date: Oct 2023
Location: Virginia, USA
Boat: NEEL 43
Posts: 12
Re: Can't install OpenCPN on RPi5

Thanks - maybe I tried the RPi 4 version, but will give this a go if the BBN Marine OS doesn't work.

Quote:
Originally Posted by wholybee View Post
Oh gawd, don't try compiling it from source unless you are a masochist.

Try starting with Openplotter. You can download it form here (it isn't obvious where the rpi5 version is from the main Openplotter page) https://forum.openmarine.net/showthread.php?tid=5060

If you want to install it without Openplotter, for some unknown reason the instructions to do so have been removed from the documentation.

But they can still be found here:
https://opencpn.org/wiki/dokuwiki/do...rev=1711119923
oshinnvoyages is offline   Reply With Quote
Old 12-05-2024, 08:17   #7
Registered User

Join Date: Mar 2024
Posts: 32
Re: Can't install OpenCPN on RPi5

I got openCPN installed on a Pi5 recently. I expect I followed the instructions on the web site and pulled an install from there. I'm running it as an app on a standard Pi build, not Marine OS.

However, it's buggy. I have v5.8.4 and if the app actually starts without a crash, the toolbars act badly: the main toolbar stays on top of any windows open, so trying to read web bug lists is irritating.

The toolbar buttons are currently inoperative (they have worked earlier, although maybe that was on my Pi4 build), although I see tooltips in the center of the screen.

The chart toolbar doesn't sit at bottom right, it starts in the center and moves around the chart if the main app window is moved.

All in all, I want to stick with it because I like the chart updates and it can make a good backup tool, but the UI issues are rather annoying. Is there an earlier version that's more stable?
bill424 is offline   Reply With Quote
Old 12-05-2024, 10:35   #8
Registered User

Join Date: Oct 2023
Location: Virginia, USA
Boat: NEEL 43
Posts: 12
Re: Can't install OpenCPN on RPi5

FYI - I got OpenCPN installed via Flatpak but it is a smidge buggy. Toolbars don't drag to where they're supposed to be & stuff like that. But, this is the backup to the backup, so all good.

https://opencpn.org/OpenCPN/info/downloadopencpn.html
oshinnvoyages is offline   Reply With Quote
Old 12-05-2024, 20:15   #9
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 3,103
Re: Can't install OpenCPN on RPi5

Quote:
Originally Posted by oshinnvoyages View Post
FYI - I got OpenCPN installed via Flatpak but it is a smidge buggy. Toolbars don't drag to where they're supposed to be & stuff like that. But, this is the backup to the backup, so all good.

https://opencpn.org/OpenCPN/info/downloadopencpn.html
I believe this is related to Wayland. Rpi now defaults to Wayland instead of X11. Some things in OpenCPN go wonky with Wayland, toolbar positions being one of them.

I recommended OpenPlotter in my earlier post. Aside from having a working version of OpenCPN, the OS is configured correctly as well. Unless you have a compelling reason to Not use OpenPlotter (or BBN if you prefer), it is the better way to run OpenCPN on an Rpi.

To switch from Wayland to X11:
https://www.geeks3d.com/20240509/how...i-os-bookworm/
__________________
-Warren
wholybee is offline   Reply With Quote
Old 13-05-2024, 05:55   #10
Registered User

Join Date: Oct 2023
Location: Virginia, USA
Boat: NEEL 43
Posts: 12
Re: Can't install OpenCPN on RPi5

The Edatech touchscreen I have doesn't work on OpenPlotter currently and I don't have another monitor to use until this weekend.

Thanks for the X11 vs Wayland tip - I'll try that out this evening.


Quote:
Originally Posted by wholybee View Post
I believe this is related to Wayland. Rpi now defaults to Wayland instead of X11. Some things in OpenCPN go wonky with Wayland, toolbar positions being one of them.

I recommended OpenPlotter in my earlier post. Aside from having a working version of OpenCPN, the OS is configured correctly as well. Unless you have a compelling reason to Not use OpenPlotter (or BBN if you prefer), it is the better way to run OpenCPN on an Rpi.

To switch from Wayland to X11:
https://www.geeks3d.com/20240509/how...i-os-bookworm/
oshinnvoyages is offline   Reply With Quote
Old 13-05-2024, 06:30   #11
Registered User

Join Date: Jun 2017
Posts: 454
Re: Can't install OpenCPN on RPi5

Quote:
Originally Posted by oshinnvoyages View Post
The Edatech touchscreen I have doesn't work on OpenPlotter currently and I don't have another monitor to use until this weekend.

Thanks for the X11 vs Wayland tip - I'll try that out this evening.
If you contact edatec support Support@edatec.cn they should be able to help.

BTW here is a review of edatec pi5

https://youtu.be/ZUKtfwAzv_8?feature=shared

There is useful tip on improving pci speed for faster SSD access
mgrouch is offline   Reply With Quote
Old 14-05-2024, 10:54   #12
Registered User

Join Date: Oct 2023
Location: Virginia, USA
Boat: NEEL 43
Posts: 12
Re: Can't install OpenCPN on RPi5

Thanks for the email address - I reached out and Ray, their software engineer, is going to get in touch with me tomorrow.

Quote:
Originally Posted by mgrouch View Post
If you contact edatec support Support@edatec.cn they should be able to help.

BTW here is a review of edatec pi5

https://youtu.be/ZUKtfwAzv_8?feature=shared

There is useful tip on improving pci speed for faster SSD access
oshinnvoyages is offline   Reply With Quote
Old 15-05-2024, 11:24   #13
Registered User

Join Date: Oct 2023
Location: Virginia, USA
Boat: NEEL 43
Posts: 12
Re: Can't install OpenCPN on RPi5

Ray from Edatec support has been great - I was able to update the kernel using the instructions he provided in this PDF:

After installing OpenPlotter 4, the orientation was in Portrait mode, but I was able to get that rotated 270deg; however, the touch coordinate transformation matrix didn't update along with it. Since the RP4 is on Wayland, I can't use xinput to re-map it in xorg.conf.d.

Any thoughts on how to fix this? I'm cross-posting this in a few RPi forums so if one of them chimes in with a fix, I'll provide it here too.


Quote:
Originally Posted by mgrouch View Post
If you contact edatec support Support@edatec.cn they should be able to help.

BTW here is a review of edatec pi5

https://youtu.be/ZUKtfwAzv_8?feature=shared

There is useful tip on improving pci speed for faster SSD access
oshinnvoyages is offline   Reply With Quote
Old 15-05-2024, 18:20   #14
Registered User

Join Date: Oct 2023
Location: Virginia, USA
Boat: NEEL 43
Posts: 12
Re: Can't install OpenCPN on RPi5

Ray from Edatec again was an absolute CHAMP...

Here are the instructions:

1. Open the 40-libinput.conf configuration file
Code:
sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf
2. Modify the touchscreen section and add the following information, depending on your desired orientation (operating clockwise):

90º rotation:
Code:
Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"
180º rotation:
Code:
Option "CalibrationMatrix" "-1 0 1 0 -1 1 0 0 1"
270º rotation:
Code:
Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"
3. Save the file, reboot, and voila!
oshinnvoyages 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
RPi5 - BareBoat Necessities OS - o-chart error Mogur OpenCPN 6 30-03-2024 05:36
RaspiOS (Bookworm) 2 x SignalK input rpi5. verkerkbr OpenCPN 2 13-03-2024 07:54
rpi5 and qtVLM cliaco Navigation 1 14-01-2024 09:28
Can't install OpenCpn 5.2 on Mac 10.13 Clem.Almarita OpenCPN 30 11-10-2020 00:10
I Wonder - If You Install a Wind Gennie or Solar Panels, Can You Get a Tax Credit? chuck711 General Sailing Forum 4 09-01-2010 07:09

Advertise Here


All times are GMT -7. The time now is 12:32.


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.