Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 04-12-2014, 13:49   #151
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Hakan...
Don't understand what you are trying to say. The all_lower property is a boolean saying "Blacklist also all lower versions"
As you can see the conditions can be TRUE only only if "name == PluginBlacklist[i].name"

Pavel
nohal is offline   Reply With Quote
Old 04-12-2014, 13:53   #152
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel..
Oops - I'm to fast?? "All_lower" is not that, right?
Logfile including the BR24radar_pi attempt.
(Dont care about my missing chart reading, I'm trying to reach the Windows partition chart directory, obviously not easy?)
Code:
21:16:38 CET: 2014-12-04
21:16:38 CET:  ------- Starting OpenCPN -------
21:16:38 CET: Version 3.3.2330 Build 2014-11-30
21:16:38 CET: wxWidgets version: wxWidgets 2.8.12
21:16:38 CET: MemoryStatus:  mem_total: 976 mb,  mem_initial: 12 mb
21:16:38 CET: SData_Locn is /usr/share/opencpn/
21:16:38 CET: Using existing Config_File: /home/hakan/.opencpn/opencpn.conf
21:16:38 CET: Styles loading from /usr/share/opencpn/uidata/styles.xml
21:16:38 CET: No styles found at: /home/hakan/
21:16:38 CET: No styles found at: /home/hakan/.opencpn/
21:16:38 CET: Setting Viewpoint Lat/Lon 58.0941, 11.7297
21:16:38 CET: Setting Ownship Lat/Lon 58.0939, 11.7321
21:16:38 CET: Loading navobjects from navobj.xml
21:16:38 CET: Done loading navobjects
21:16:38 CET: System default Language:  sv_SE
21:16:38 CET: looking for catalog 'wxstd' in path '/usr/share/locale/en_US.UTF-8/LC_MESSAGES:/usr/share/locale/en_US.UTF-8/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en_US.UTF-8:/usr/share/locale/en_US/LC_MESSAGES:/usr/share/locale/en_US/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en_US:/usr/share/locale/en/LC_MESSAGES:/usr/share/locale/en/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en'.
21:16:38 CET: catalog file for domain 'wxstd' not found.
21:16:38 CET: looking for catalog 'wxgtk' in path '/usr/share/locale/en_US.UTF-8/LC_MESSAGES:/usr/share/locale/en_US.UTF-8/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en_US.UTF-8:/usr/share/locale/en_US/LC_MESSAGES:/usr/share/locale/en_US/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en_US:/usr/share/locale/en/LC_MESSAGES:/usr/share/locale/en/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en'.
21:16:38 CET: catalog file for domain 'wxgtk' not found.
21:16:38 CET: Opencpn language set to:  en_US
21:16:38 CET: looking for catalog 'opencpn' in path '/usr/share/locale/en_US.UTF-8/LC_MESSAGES:/usr/share/locale/en_US.UTF-8/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en_US.UTF-8:/usr/share/locale/en_US/LC_MESSAGES:/usr/share/locale/en_US/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en_US:/usr/share/locale/en/LC_MESSAGES:/usr/share/locale/en/LC_MESSAGES:/usr/share/locale/:/usr/share/locale/en'.
21:16:38 CET: catalog file for domain 'opencpn' not found.
21:16:39 CET: ChartSymbols loaded from /usr/share/opencpn/s57data/chartsymbols.xml
21:16:39 CET: Using s57data in /usr/share/opencpn/s57data
21:16:39 CET: Setting Viewpoint Lat/Lon 58.0941, 11.7297
21:16:39 CET: Setting Ownship Lat/Lon 58.0939, 11.7321
21:16:39 CET: Creating glChartCanvas
21:16:39 CET: PlugInManager searching for PlugIns in location /usr/lib/opencpn
21:16:39 CET: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
21:16:39 CET:   /usr/lib/opencpn/libdashboard_pi.so
              API Version detected: 106
              PlugIn Version detected: 102
21:16:39 CET: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libvdr_i386_pi16_v03_pi.so
21:16:39 CET:   /usr/lib/opencpn/libvdr_i386_pi16_v03_pi.so
              API Version detected: 106
              PlugIn Version detected: 3
21:16:39 CET: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libwmm_pi.so
21:16:39 CET:   /usr/lib/opencpn/libwmm_pi.so
              API Version detected: 108
              PlugIn Version detected: 8
21:16:39 CET: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libgrib_pi.so
21:16:39 CET:   /usr/lib/opencpn/libgrib_pi.so
              API Version detected: 107
              PlugIn Version detected: 203
21:16:39 CET: OpenGL-> Renderer String: Mesa DRI Intel(R) 965GM x86/MMX/SSE2
21:16:39 CET: OpenGL-> Detected Intel renderer, disabling stencil buffer
21:16:39 CET: OpenGL-> Texture rectangle format: de1
21:16:39 CET: OpenGL-> Using Vertexbuffer Objects
21:16:39 CET: OpenGL-> Using Framebuffer Objects
21:16:39 CET: OpenGL-> Using FBO Stencil buffer
21:16:39 CET: OpenGL-> Using Depth buffer clipping
21:16:39 CET: OpenGL-> Not Using compression
21:16:39 CET: OpenGL-> Minimum cartographic line width:  1.0
21:16:39 CET: OpenGL-> Minimum symbol line width:  1.5
21:16:40 CET: ChartDB Cache policy:  Application target is 482 MBytes
21:16:40 CET: Loading chart db version: V018
21:16:40 CET: Chartdb: Chart directory list follows
21:16:40 CET:   Chart directory #0: /media/F4AEE398FC35EF02/Program/OziExplorer/Charts
21:16:40 CET:   Chart directory #1: /media/F4AEE398FC35EF02/Charts/CM93_2012
21:16:40 CET: GPS Watchdog Timeout is: 6 sec.
21:16:40 CET: Initializing Chart /media/F4AEE398FC35EF02/Program/OziExplorer/Charts/93_1.kap
21:16:40 CET: Error: can't open file '/media/F4AEE398FC35EF02/Program/OziExplorer/Charts/93_1.kap' (error 2: No such file or directory)
21:16:40 CET:    OpenChartFromStack...Error opening chart /media/F4AEE398FC35EF02/Program/OziExplorer/Charts/93_1.kap... return code 2
21:16:40 CET: Initializing Chart /media/F4AEE398FC35EF02/Program/OziExplorer/Charts/93_1.kap
21:16:40 CET: Error: can't open file '/media/F4AEE398FC35EF02/Program/OziExplorer/Charts/93_1.kap' (error 2: No such file or directory)
21:16:40 CET:    OpenChartFromStack...Error opening chart /media/F4AEE398FC35EF02/Program/OziExplorer/Charts/93_1.kap... return code 2
21:16:40 CET: Background world map loaded from GSHHS datafiles found in: /usr/share/opencpn/gshhs/
21:16:40 CET: Loading World Chart Q=4 in 0 ms.
21:17:11 CET: PlugInManager searching for PlugIns in location /usr/lib/opencpn
21:17:11 CET: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libbr24radar_pi.so
21:17:11 CET: Error: /usr/lib/opencpn/libbr24radar_pi.so: cannot open shared object file: Permission denied
21:17:25 CET:    PlugInManager: Cannot load library: /usr/lib/opencpn/libbr24radar_pi.so 
21:27:14 CET: Chart cache purge
21:27:14 CET:
Håkan
Hakan is offline   Reply With Quote
Old 04-12-2014, 14:02   #153
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Hakan...
Can you please post the output of
Code:
sudo ls -la /usr/lib/opencpn/
?

Pavel
nohal is offline   Reply With Quote
Old 04-12-2014, 14:03   #154
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel..
And here is the message, it's only referring to "radar_pi"
Håkan
Attached Thumbnails
Click image for larger version

Name:	Skärmbild från 2014-12-04 22_56_35.png
Views:	189
Size:	22.1 KB
ID:	92963  
Hakan is offline   Reply With Quote
Old 04-12-2014, 14:10   #155
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel..
We are Playing Ping-Pong??
Ok i see what you mean. Something could be wrong in the installation package?
Code:
totalt 1852
drwxr-xr-x   2 root root   4096 dec  4 20:35 .
drwxr-xr-x 175 root root  36864 dec  4 20:36 ..
-rwxrwx---   1 root root 305976 nov 16 00:06 libbr24radar_pi.so
-rw-r--r--   1 root root 489840 dec  1 05:59 libdashboard_pi.so
-rw-r--r--   1 root root 680496 dec  1 05:59 libgrib_pi.so
-rw-rw-r--   1 root root  59136 dec  4 20:23 libvdr_i386_pi16_v03_pi.so
-rw-r--r--   1 root root 310008 jun 30 00:47 libwmm_pi.so
I have to change the rights for radar_pi? There is for sure a nice command for that?
Håkan
Hakan is offline   Reply With Quote
Old 04-12-2014, 14:19   #156
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Hakan...
Yes, you do... What I don't exactly understand is why it was set as it was...
Code:
sudo chmod 644 /usr/lib/opencpn/libbr24radar_pi.so
How did you install the plugin? sudo dpkg -i? Some GUI? What Linux distribution is it?

Pavel
nohal is offline   Reply With Quote
Old 04-12-2014, 14:30   #157
Registered User

Join Date: Aug 2011
Location: On board
Boat: Rival 41C
Posts: 74
Send a message via Skype™ to RobbieW
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Quote:
Originally Posted by nohal View Post
Hakan...
Yes, you do... What I don't exactly understand is why it was set as it was...
Code:
sudo chmod 644 /usr/lib/opencpn/libbr24radar_pi.so
How did you install the plugin? sudo dpkg -i? Some GUI? What Linux distribution is it?

Pavel
Pavel / Hakan,
Just did the same thing as Pavel suggested to give the BR24 library the same permissions as other plugin libraries, it had installed as 770...
Code:
-rwxrwx---   1 root root  305976 Nov 15 23:06 libbr24radar_pi.so
OCPN 2330 now accepts the plugin as valid. My install was done using the Deb package installer, GDebi, that was the default action from my file manager, I'm using Mint 17.

Cheers ... Robbie
RobbieW is offline   Reply With Quote
Old 04-12-2014, 14:32   #158
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Quote:
Originally Posted by nohal View Post
Hakan...
Yes, you do... What I don't exactly understand is why it was set as it was...
Code:
sudo chmod 644 /usr/lib/opencpn/libbr24radar_pi.so
How did you install the plugin? sudo dpkg -i? Some GUI? What Linux distribution is it?

Pavel
Ok thanks for the command lesson. Works fine.

Plugin:
Download from opencpn-navico-radar-plugin.github.io
The Linux .deb for Debian/Ubuntu (x86) and then: "sudo dpkg -i <packagename>.deb"

Ubuntu:
I've Ubuntu 12.04
Hakan is offline   Reply With Quote
Old 04-12-2014, 15:06   #159
Registered User

Join Date: Aug 2011
Location: On board
Boat: Rival 41C
Posts: 74
Send a message via Skype™ to RobbieW
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Output from Lintian section of GDebi
Code:
W: br24radar_pi: hardening-no-relro usr/lib/opencpn/libbr24radar_pi.so
E: br24radar_pi: missing-dependency-on-libc needed by usr/lib/opencpn/libbr24radar_pi.so
E: br24radar_pi: changelog-file-missing-in-native-package
E: br24radar_pi: control-file-has-bad-permissions md5sums 0770 != 0644
E: br24radar_pi: no-copyright-file
E: br24radar_pi: description-starts-with-package-name
E: br24radar_pi: extended-description-is-empty
E: br24radar_pi: bad-package-name
E: br24radar_pi: maintainer-address-missing BR24 Radar Plugin authors
E: br24radar_pi: depends-on-essential-package-without-using-version depends: gzip
W: br24radar_pi: non-standard-dir-perm usr/ 0770 != 0755
W: br24radar_pi: non-standard-dir-perm usr/lib/ 0770 != 0755
W: br24radar_pi: non-standard-dir-perm usr/lib/opencpn/ 0770 != 0755
W: br24radar_pi: executable-is-not-world-readable usr/lib/opencpn/libbr24radar_pi.so 0770
W: br24radar_pi: non-standard-dir-perm usr/share/ 0770 != 0755
W: br24radar_pi: non-standard-dir-perm usr/share/locale/ 0770 != 0755...
Is this looking as if the packaging is in error ?
RobbieW is offline   Reply With Quote
Old 04-12-2014, 15:25   #160
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Yes, it is


Sent from my iPhone using Cruisers Sailing Forum
nohal is offline   Reply With Quote
Old 06-12-2014, 02:33   #161
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel.. To continue...
The GTK package has to be checked, I'll see what I or Kees can do.
But:
The false message box cheated me and others. (See: http://www.cruisersforum.com/forums/...ml#post1692967)
Since the OCPNMessageBox was now opened, because !IsLoaded()=True, I think there need to be some changes to the blacklist check here as well:
Pluginmanager.cpp:673
Code:
 int len = sizeof(PluginBlacklist) / sizeof(BlackListedPlugin);
        for (int i = 0; i < len; i++) {
            wxString candidate = PluginBlacklist[i].name.Lower();
            if( prob_pi_name.Lower().EndsWith(candidate)){
                wxString msg = _("Incompatible PlugIn detected:\n");
                msg += plugin_file;
                msg += _("\n\n");
                
                wxString msg1;
                msg1 = wxString::Format(_("PlugIn [ %s ] version %i.%i"),
                                        PluginBlacklist[i].name.c_str(),
                                        PluginBlacklist[i].version_major, PluginBlacklist[i].version_minor);
                msg += msg1;
                if(PluginBlacklist[i].all_lower)
                    msg += _(", and all previous versions,");
                msg += _(" is incompatible with this version of OpenCPN."),
                                        
                OCPNMessageBox ( NULL, msg, wxString( _("OpenCPN Info") ), wxICON_INFORMATION | wxOK, 20 );  // 5 second timeout
                break;
            }
        }
In the case we are handling now was the file not loaded due to incorrect rights and then we again check the blacklist and here is the file name end ("Radar_pi") also sufficient to match as it was before the change you did a week or two ago, from row 603.
Please have a check.
Thanks
Håkan
Hakan is offline   Reply With Quote
Old 06-12-2014, 05:20   #162
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Hakan...
Yes, that's a good catch. But the main problem is that this logic is applied at all on a library that can't be read. I'm at it.

Pavel
nohal is offline   Reply With Quote
Old 06-12-2014, 08:55   #163
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel..
Yes, why an additional blacklist check and especially here when the file isn't loaded anyhow?, I agree, the second check could probably be deleted.
The message box is however nice? Could it either be moved up to the first blacklist check or kept in the !IsLoaded part and combine the message to tell about blacklisting(>> transfer variables) or unsuccessful file opening?
Or just keep quiet and be satisfied with the logfile messages? >> You're the master!
Thanks
Håkan
Hakan is offline   Reply With Quote
Old 22-12-2014, 02:47   #164
Registered User

Join Date: Jan 2010
Location: Harlingen, NL
Boat: KMY Stadtship 56
Posts: 516
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Just a heads up that I am working on the reported issues

https://github.com/canboat/BR24radar_pi/issues

A beta to go with the latest 3.3.2410 OpenCPN beta will be released soon.

Once this hits, please all test the packaging (.deb, .pkg) in particular as there were some rough edges in the 1.0 release with the OSX (didn't actually install anything) and .deb packages (installed with the wrong privileges.)

Also, if you have any further issues please log them on Github ASAP and I may be able to work them in next week.
merrimac is offline   Reply With Quote
Old 26-12-2014, 11:47   #165
Registered User

Join Date: Jan 2010
Location: Harlingen, NL
Boat: KMY Stadtship 56
Posts: 516
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

The plugin has been updated to 1.1.

It is intended for use with OpenCPN 3.3.

The following bugs have been fixed:

#61 - GuardZone does not activate on dialog close (OSX)
#60 - OS X: cannot bind to port 6680
#59 - Linux: BR24RadarControl; Screen position and Radar type label.
#58 - Darwin package does not contain the library file
#57 - RadarAlertAudioFile; Load to config file and sound not working in Ubuntu
#56 - Dialogue box buttons. Second line is missing in O beta 3.3.2330
#55 - Guard zone alarm is repeated even if both guard zones are set to off
#54 - Double BR24Radar_pi icons on certain conditions.

The plugin can be downloaded at opencpn-navico-radar-plugin.github.io
merrimac is offline   Reply With Quote
Reply

Tags
enc, opencpn, plug, radar, simrad


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 Radar Overlay PlugIn bdbcat OpenCPN 900 21-09-2022 00:26
Simrad NSS7 and Simrad 3G radar gunkylump Marine Electronics 6 26-04-2015 12:15
KML Overlay Plugin SethDart OpenCPN 151 08-02-2015 06:55
Simrad 3G radar compatible wilth Lowrance HDS? andreas.mehlin Marine Electronics 6 28-05-2014 09:54
Newbie Impressions of Radar Overlay (Raymarine c80) Northeaster Marine Electronics 0 06-07-2009 06:06

Advertise Here


All times are GMT -7. The time now is 14:57.


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.