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 26-07-2020, 06:59   #1
Registered User

Join Date: Mar 2020
Posts: 17
Plugin dont show up after manual install (ubuntu)

Hello, I have just complied and installed a plugin for OpenCPN (RTL SDR). Now, there is a .so file in /usr/local/lib/opencpn called librtlsdrpi.so.



I did the exact same thing on a different computer earlier, and it worked. But this time around it doesnt show up in the settings->plugins in openCPN.



I have been trying to locate some log files, without luck. The only log file documentation online is for windows and mac.




TLDR
Installed rtlsdr for opencpn manually, but dont show up in openCPN.
Eublem is offline   Reply With Quote
Old 27-07-2020, 11:03   #2
Registered User

Join Date: Mar 2020
Posts: 17
Re: Plugin dont show up after manual install (ubuntu)

Does someone know if downgrading openCPN to 5.0 might do the trick? And if so, is there a simple way to download an older version? I tried doing it from source, but got errors i couldnt solve.
Eublem is offline   Reply With Quote
Old 27-07-2020, 14:24   #3
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 242
Re: Plugin dont show up after manual install (ubuntu)

I can confirm a similar behaviour with 5.2.0 on Fedora 32 (whereas 5.0.0 works correctly as expected).
I did compile from source (as there is no package for Fedora 32/5.2.0 yet) and ran O in "portable mode" (commandline option -p), as it is my development environment.
O 5.2.0 starts, but no plugins were visible at all, although the plugin .so files were in the usual plugin subdirectory...

opencpn.log showed the reason :
It says it's using LD_LIBRARY_PATH to determine the plugin directory now (since 5.2.0), and ends up in searching in /home/tom/opencpn/plugins/lib.
(In 5.0.0 my plugins were placed in /home/tom/opencpn/plugins)

This is no way part of my LD_LIBRARY_PATH, so it's probably a bug.

But anyway, adding a subdirectory lib to the plugins directory and moving the .so files there did the trick ...

So maybe give it a quick try and add a lib-subdirectory to the plugins dir and place the .so there ...

BR,
Thomas
tom_BigSpeedy is offline   Reply With Quote
Old 27-07-2020, 14:30   #4
Registered User

Join Date: Mar 2020
Posts: 17
Re: Plugin dont show up after manual install (ubuntu)

Thats awesome Thomas! So glad for you reply! Cant wait to check if that does the trick. Will let you know
Eublem is offline   Reply With Quote
Old 28-07-2020, 07:54   #5
Registered User

Join Date: Mar 2020
Posts: 17
Re: Plugin dont show up after manual install (ubuntu)

Unfortunately, that didn't help. I tried placing the .so file inside the other plugin folder as well, without luck.



sudo mv /usr/local/lib/opencpn/lib/librtlsdr_pi.so /usr/lib/opencpn/lib/librtlsdr_pi.so




I am trying to downgrade to opencpn 5.0 but I keep getting this error:
Quote:
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS)
-- Could not find wxWidgets webview add-on
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindwxWidgets.cmake:953 (find_package_handle_standard_args)
CMakeLists.txt:1063 (FIND_PACKAGE)
Eublem is offline   Reply With Quote
Old 28-07-2020, 08:37   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: Plugin dont show up after manual install (ubuntu)

Eublem...
May we see the logfile from the OCPN 5.2 installation?


Thanks
Dave
bdbcat is online now   Reply With Quote
Old 29-07-2020, 07:59   #7
Registered User

Join Date: Mar 2020
Posts: 17
Re: Plugin dont show up after manual install (ubuntu)

I cant find the log file anywhere...?
Eublem is offline   Reply With Quote
Old 29-07-2020, 08:02   #8
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Plugin dont show up after manual install (ubuntu)

Quote:
Originally Posted by Eublem View Post
I cant find the log file anywhere...?
What about RTFM?
CarCode is offline   Reply With Quote
Old 29-07-2020, 08:06   #9
Registered User

Join Date: Mar 2020
Posts: 17
Re: Plugin dont show up after manual install (ubuntu)

Quote:
Originally Posted by CarCode View Post
What about RTFM?
When I say anywhere, I mean literally anywhere.




The manual says the file is within the home directory, but thats not the case for me:
Quote:
$gedit `echo $HOME/opencpn.log`
Eublem is offline   Reply With Quote
Old 29-07-2020, 09:13   #10
Registered User

Join Date: Mar 2020
Posts: 17
Re: Plugin dont show up after manual install (ubuntu)

Ok. So I figured there is a hidden opencpn folder inside the home directory. I tried moving the plugin both in a new lib and the original plugin folder... It didnt solve it

Quote:

$HOME/.opencpn/plugins/lib/
$HOME/.opencpn/plugins/
Eublem is offline   Reply With Quote
Old 29-07-2020, 11:05   #11
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Plugin dont show up after manual install (ubuntu)

Quote:
Originally Posted by Eublem View Post
Ok. So I figured there is a hidden opencpn folder inside the home directory. I tried moving the plugin both in a new lib and the original plugin folder... It didnt solve it

Look in the log file. It tells you exactly the folders in which it searches for plugins. Log file is found easily by clicking the help icon and there you find a link to the log file.
transmitterdan is offline   Reply With Quote
Old 30-07-2020, 04:54   #12
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Plugin dont show up after manual install (ubuntu)

@Eublem

I have had some problems with the rtlsdr plugin as well (Ubuntu Focal).
A log message such as this
Quote:
11:59:51.222 ERROR pluginmanager.cpp:2027 Plugin "/usr/lib/opencpn/librtlsdr_pi.so" is of another binary flavor than the main module.
Which of course stopped the plugin from running.
But...... a day or so ago, this was corrected and a new version of O was installed. Now this plugin works as expected.
I have rtlsdr version 1.4.

It's not clear exactly how you installed your plugin....
To be consistent and for ease of use, I always run "make package" and install the resulting .deb package.

Bottom line....update your system and try again!

Thomas
cagney is offline   Reply With Quote
Old 30-07-2020, 09:34   #13
Registered User

Join Date: Mar 2020
Posts: 17
Re: Plugin dont show up after manual install (ubuntu)

Quote:
Originally Posted by cagney View Post
@Eublem

I have had some problems with the rtlsdr plugin as well (Ubuntu Focal).
A log message such as this


Which of course stopped the plugin from running.
But...... a day or so ago, this was corrected and a new version of O was installed. Now this plugin works as expected.
I have rtlsdr version 1.4.

It's not clear exactly how you installed your plugin....
To be consistent and for ease of use, I always run "make package" and install the resulting .deb package.

Bottom line....update your system and try again!

Thomas

Thanks. So I finally found the log file, moved the plugin to the correct location, and this is the error I get:
Quote:
14:07:42.290 MESSAGE pluginmanager.cpp:1145 Checking plugin candidate: /home/ubuntu/.local/lib/opencpn/librtlsdr_pi.so
14:07:42.466 MESSAGE pluginmanager.cpp:2098 Plugin is compatible: false


16:31:31.201 MESSAGE pluginmanager.cpp:1145 Checking plugin candidate: /home/ubuntu/.local/lib/opencpn/librtlsdr_pi.so
16:31:31.201 MESSAGE pluginmanager.cpp:1193 Skipping not enabled candidate.

I have the latest PPA download of OpenCPN.. So I figured trying downloading the master from github. 'cmake ..' worked, but make gave this error:
Quote:
[/home/ubuntu/Downloads/OpenCPN-master/src/glChartCanvas.cpp:318:36: error: ‘glXGetProcAddress’ was not declared in this scope
#define systemGetProcAddress(ADDR) glXGetProcAddress((const GLubyte*)ADDR)
^
/home/ubuntu/Downloads/OpenCPN-master/src/glChartCanvas.cpp:318:36: note: in definition of macro ‘systemGetProcAddress’
#define systemGetProcAddress(ADDR) glXGetProcAddress((const GLubyte*)ADDR)
^~~~~~~~~~~~~~~~~
/home/ubuntu/Downloads/OpenCPN-master/src/glChartCanvas.cpp:318:36: note: suggested alternative: ‘ocpnGetProcAddress’
#define systemGetProcAddress(ADDR) glXGetProcAddress((const GLubyte*)ADDR)
^
/home/ubuntu/Downloads/OpenCPN-master/src/glChartCanvas.cpp:318:36: note: in definition of macro ‘systemGetProcAddress’
#define systemGetProcAddress(ADDR) glXGetProcAddress((const GLubyte*)ADDR)
^~~~~~~~~~~~~~~~~
CMakeFiles/opencpn.dir/build.make:2873: recipe for target 'CMakeFiles/opencpn.dir/src/glChartCanvas.cpp.o' failed
make[2]: *** [CMakeFiles/opencpn.dir/src/glChartCanvas.cpp.o] Error 1
make[2]: Leaving directory '/home/ubuntu/Downloads/OpenCPN-master/build'
CMakeFiles/Makefile2:191: recipe for target 'CMakeFiles/opencpn.dir/all' failed
make[1]: *** [CMakeFiles/opencpn.dir/all] Error 2
make[1]: Leaving directory '/home/ubuntu/Downloads/OpenCPN-master/build'
Makefile:154: recipe for target 'all' failed
make: *** [all] Error 2
Eublem is offline   Reply With Quote
Old 30-07-2020, 09:42   #14
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Plugin dont show up after manual install (ubuntu)

Quote:

Originally Posted by Eublem
I cant find the log file anywhere...?
Quote:
Originally Posted by CarCode
What about RTFM?
Quote:
Originally Posted by Eublem View Post
When I say anywhere, I mean literally anywhere.
The manual says the file is within the home directory, but thats not the case for me:
Please try to read the manual.
This is from the manual:
Attached Thumbnails
Click image for larger version

Name:	manual.png
Views:	50
Size:	105.2 KB
ID:	220360  
CarCode is offline   Reply With Quote
Old 30-07-2020, 10:47   #15
Registered User

Join Date: Mar 2020
Posts: 17
Re: Plugin dont show up after manual install (ubuntu)

Quote:
Originally Posted by CarCode View Post
Please try to read the manual.
This is from the manual:
Thanks CarCode. I finally located the log file and posted parts of it above.
Eublem is offline   Reply With Quote
Reply

Tags
plug


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
Plugin repository for Ubuntu 19.10 svspirited OpenCPN 1 09-12-2019 06:50
Ubuntu - install oeSENC plugin - Opencpn.org petter5 OpenCPN 9 25-10-2019 06:10
weather routing plugin (Ubuntu) v5.0 crayiii OpenCPN 11 07-05-2019 06:13
s63-plugin for ubuntu 17.04 zesty Kurt T OpenCPN 3 28-08-2017 06:50
Weatherrouting plugin Not workin in OpenCPN 4.4.0 (ubuntu 16.04) DomH OpenCPN 3 02-01-2017 12:42

Advertise Here


All times are GMT -7. The time now is 06:51.


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.