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 06-01-2025, 02:29   #1
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 192
O-Chart Plugin 2.0.25: issues on Raspberry

Just upgraded to 2.0.25 on the PI and have issues loading o-charts.
O-charts plugin can't load chart files, even though they are installed.
.
Please find attached the logfile (renamed to pdf).Attachment 297434

Below is one line from the logfile and two lines from the terminal, as proof that the chart files exist

Code:
15:50:42.104 MESSAGE eSENCChart.cpp:1108    Cannot load SENC file /home/pi/Charts/oeuSENC-DE/OC-49-000ON1.oesu

pi@openplotter:~/Charts/oeuSENC-DE $ ls -l OC-49-000ON1.oesu
-rw-r--r-- 1 pi pi 363696 15. Apr 2024  OC-49-000ON1.oesu
OpenCPN 10.5.2
o-charts 2.0.25
Raspberry Pi5 Bookworm.
USB-dongle

BTW: same version of the plugin runs smoothly on MacOS

Best,

Manfred
Aldebaran17 is offline   Reply With Quote
Old 06-01-2025, 04:55   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,430
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Manfred..
I works fine on my Rp5 Bookworm.

Did your system identified the sg dongle?
Hakan is offline   Reply With Quote
Old 06-01-2025, 09:25   #3
Registered User

Join Date: May 2012
Posts: 1,274
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Quote:
Originally Posted by Hakan View Post
Manfred..
I works fine on my Rp5 Bookworm.

Did your system identified the sg dongle?
In Preferences:

If no System Name then:
"Create USB key dongle System ID file"

Mike
Rasbats is offline   Reply With Quote
Old 06-01-2025, 16:28   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,207
Images: 2
Re: O-Chart Plugin 2.0.25: issues on Raspberry

If any of you are using flatpak or untested debian, I would really appreciate a test or two of some plugins, see

https://www.cruisersforum.com/forums...ml#post3962287
rgleason is offline   Reply With Quote
Old 07-01-2025, 01:28   #5
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 192
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Dear all,

thanks for your comments. It turned out to be a corrupted sd-card. Using another sd-card and updating the plugin, all worked fine.


I apologize for raising this issue here. I should have trusted the message from the plugin: it could actually not read the file, even though it was supposed to be there.

Best,

Manfred
Aldebaran17 is offline   Reply With Quote
Old 08-01-2025, 08:33   #6
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 192
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Help, it's me again.

Sorry, but I have to come back here, since there is an issue, despite my message yesterday. However, I needed to sort out things first and test everything systematically. I have two Pis (a Pi4 and a Pi5), both using OpenCPN 5.10.2, both have Bookworm installed, and on both machines I can run Flatpak or "normal" OpenCPN.

In the Flatpack version O-chart works on both systems, but in "normal mode" the o-charts plugin has issues.

On Pi 5, it cannot be installed. It says in the logfile:

Code:
16:08:55.142 MESSAGE plugin_loader.cpp:1390 PluginLoader: Loading PlugIn: /home/fatuiva/.local/lib/opencpn/libo-charts_pi.so
16:08:55.144   ERROR dlunix.cpp:120 Failed to load shared library '/home/fatuiva/.local/lib/opencpn/libo-charts_pi.so': libGLEW.so.2.1: cannot open shared object file: No such file or directory
16:08:55.144 MESSAGE plugin_loader.cpp:1445    PluginLoader: Cannot load library: /home/fatuiva/.local/lib/opencpn/libo-charts_pi.so
On Pi4, the plugin does run, but it does not see the dongle, even though Flatpak on the same hardware sees the dongle and can read the charts.

So, again, I am asking for help.

Manfred
Aldebaran17 is offline   Reply With Quote
Old 18-01-2025, 01:27   #7
Registered User

Join Date: Aug 2016
Posts: 171
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Quote:
On Pi4, the plugin does run, but it does not see the dongle,
just install "libusb-0.1-4" package and create file "/etc/udev/rules.d/98-sglock.rules"
with content
Code:
ATTRS{idVendor}=="1547", ATTRS{idProduct}=="1000", MODE="666"

Quote:
16:08:55.142 MESSAGE plugin_loader.cpp:1390 PluginLoader: Loading PlugIn: /home/fatuiva/.local/lib/opencpn/libo-charts_pi.so 16:08:55.144 ERROR dlunix.cpp:120 Failed to load shared library '/home/fatuiva/.local/lib/opencpn/libo-charts_pi.so': libGLEW.so.2.1: cannot open shared object file: No such file or directory 16:08:55.144 MESSAGE plugin_loader.cpp:1445 PluginLoader: Cannot load library: /home/fatuiva/.local/lib/opencpn/libo-charts_pi.so

seems wrong linking of library. On bookworm is libglew-2.2 available ...not 2.1
How did you install your OpenCPN and Plugin?
BlackSea is offline   Reply With Quote
Old 18-01-2025, 09:24   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,207
Images: 2
Re: O-Chart Plugin 2.0.25: issues on Raspberry

@Aldebaran17 Manfred

Can you please respond to this question?

How did you install your OpenCPN and Plugin?

It will help us all regarding need to do something with libs.
rgleason is offline   Reply With Quote
Old 19-01-2025, 00:49   #9
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 192
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Quote:
Originally Posted by BlackSea View Post
just install "libusb-0.1-4" package and create file "/etc/udev/rules.d/98-sglock.rules"
with content
Code:
ATTRS{idVendor}=="1547", ATTRS{idProduct}=="1000", MODE="666"




seems wrong linking of library. On bookworm is libglew-2.2 available ...not 2.1
How did you install your OpenCPN and Plugin?
Dear BlackSea,

thanks for your comments. Libusb-0.1-4 is installed. Trying to install it, produced the following output:

Code:
sudo apt-get install libusb-0.1-4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libusb-0.1-4 is already the newest version (2:0.1.12-32).
libusb-0.1-4 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 265 not upgraded.
in the folder /etc/udev/rules.d/, there was a file 65-ocpn-dongle.rules with a similar content:

Code:
ATTRS{idVendor}=="1547", ATTRS{idProduct}=="1000", MODE="0666"
The error persists. From the current log:
Code:
08:41:46.589 MESSAGE plugin_loader.cpp:1374 Plugin is compatible: true
08:41:46.590 MESSAGE plugin_loader.cpp:1390 PluginLoader: Loading PlugIn: /home/fatuiva/.local/lib/opencpn/libo-charts_pi.so
08:41:46.594   ERROR dlunix.cpp:120 Failed to load shared library '/home/fatuiva/.local/lib/opencpn/libo-charts_pi.so': libGLEW.so.2.1: cannot open shared object file: No such file or directory
08:41:46.595 MESSAGE plugin_loader.cpp:1435 Ignoring blacklisted plugin libo-charts_pi
08:41:46.595 MESSAGE plugin_loader.cpp:1445    PluginLoader: Cannot load library: /home/fatuiva/.local/lib/opencpn/libo-charts_pi.so
08:41:46.595 MESSAGE plugin_loader.cpp:442 Checking plugin candidate: /home/fatuiva/.local/lib/opencpn/libvdr_pi.so
08:41:46.595 MESSAGE plugin_loader.cpp:508 Checking plugin compatibility: /home/fatuiva/.local/lib/opencpn/libvdr_pi.so
On the install: beats me long history. I started with openplotter, updated it a while ago to bookworm, and updated several times OpenCPN. Are you suggesting I shall start with a clean install?
Aldebaran17 is offline   Reply With Quote
Old 19-01-2025, 02:18   #10
Registered User

Join Date: Aug 2016
Posts: 171
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Hi Manfred aka Aldebaran17


I think we can repair.

I need some outputs
Code:
cat /etc/os-release
grep -r ppa /etc/apt
grep -r "backport" /etc/apt

gruß
BlackSea is offline   Reply With Quote
Old 19-01-2025, 03:38   #11
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 192
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Blacksea,

here it is:

Code:
 $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ grep -r ppa /etc/apt
/etc/apt/sources.list.d/opencpn-ppa.list:deb https://ppa.launchpadcontent.net/opencpn/opencpn/ubuntu jammy main
/etc/apt/sources.list:deb https://ppa.aunchpadcontent.net/opencpn/opencpn/ubuntu jammy main

 $ grep -r "backport" /etc/apt
/etc/apt/sources.list.d/opencpn-backports.list:deb http://deb.debian.org/debian bookworm-backports main contrib non-free
/etc/apt/sources.list:deb http://deb.debian.org/debian bookworm-backports main contrib non-free-firmware
fatuiva@NaviPlotter:~ $
Thanks,

Manfred
Aldebaran17 is offline   Reply With Quote
Old 19-01-2025, 08:55   #12
Registered User

Join Date: Aug 2016
Posts: 171
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Moin Manfred,


1. Delete /etc/apt/sources.list.d/opencpn-ppa.list
Code:
sudo rm /etc/apt/sources.list.d/opencpn-ppa.list

2. Delete from /etc/apt/sources.list this line
Code:
deb https://ppa.aunchpadcontent.net/opencpn/opencpn/ubuntu jammy main

3. You could also delete /etc/apt/sources.list.d/opencpn-backports.list ( duplicate record from /etc/apt/source.list )


4. Purge installed OpenCPN Packages and Plugins

https://www.cruisersforum.com/forums...ml#post3965190

Step 2,3,4


5.

Code:
sudo apt update
sudo apt install -t bookworm-backports opencpn

6. Pull up plugins inside OpenCPN



good luck
BlackSea is offline   Reply With Quote
Old 20-01-2025, 00:40   #13
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 192
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Blacksea,

worked fine. OpenCPN is working again.

May I ask a question, in order to better understand what was going on: If I understand your suggestions correctly, there were multiple update sources, some of which outdated or conflicting each other. The result then, was an inconsistent install: some libraries outdated, which were, however, not updated by a normal update.

This could have happened, because I was involved in beta-testing of version 10.5.2 a while ago. Well, the real reason is that I do not have a real understanding, what's going on inside Linus.

Thanks a lot for your help.

Grüße,

Manfred
Aldebaran17 is offline   Reply With Quote
Old 20-01-2025, 04:15   #14
Registered User

Join Date: Aug 2016
Posts: 171
Re: O-Chart Plugin 2.0.25: issues on Raspberry

Quote:
May I ask a question, in order to better understand what was going on: If I understand your suggestions correctly, there were multiple update sources, some of which outdated or conflicting each other. The result then, was an inconsistent install: some libraries outdated, which were, however, not updated by a normal update.

yes. right.
the worst mistake is to install the packages from ubuntu on the debian. Also to use the plugins that are compiled for ubuntu on debian and vice versa


actually the whole OpenCPN plugins universe is a nightmare. One example:
I am using a clone of Ubuntu 24.04 Noble and want to install o-charts. According to the catalog for x86_64 architecture it offers
o-charts-2.0.25.0-debian-x86_64-11
o-charts-2.0.25.0-debian-x86_64-12

But this does not fit my platform. It is neither debian nor 11 and 12. base-files is 13(!). What version does PluginManager load then?
Is this version linked correctly? Result undefined. Install&Pray
My way? I prefer to build myself
BlackSea is offline   Reply With Quote
Old 20-01-2025, 09:22   #15
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,708
Re: O-Chart Plugin 2.0.25: issues on Raspberry

BlackSea...


I think you will agree that a user running a modified clone of ubuntu Noble, calling itself (13), is a (bleeding) edge case, at least in respect to OCPN plugins matrix.
I agree, best to build from source in this case.


Thanks for the stretch testing.
Dave
bdbcat is offline   Reply With Quote
Reply

Tags
plug, plugin

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
No o-chart plugin in option/plugin Semich OpenCPN 1 16-05-2022 09:12
o-chart plugin update issues Kickin Bears OpenCPN 3 11-03-2020 11:41
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 01:56
Raspberry Pi3 Plugin Problems Luckbert OpenCPN 3 11-10-2016 11:16
OpenCPN plugin and raspberry Neitsabes OpenCPN 15 31-05-2015 15:39

Advertise Here


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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.