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 03-03-2020, 12:29   #16
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Linux Plugin Installation -need VDR_pi

I find this in the build output:


Quote:
-- Found OpenGL....
-- GL Lib: /usr/lib/x86_64-linux-gnu/libGL.so/usr/lib/x86_64-linux-gnu/libGLU.so
-- GL Include: /usr/include
-- Revised GL Lib: /usr/lib/x86_64-linux-gnu/libGL.so
-- Main: gl;net;xml;html;adv;aui;core;base;webview
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES)
-- Could not find wxWidgets webview add-on

-- Found wxWidgets...
-- wxWidgets Include: /usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0;/usr/include/wx-3.0
-- wxWidgets Libraries: -L/usr/lib/x86_64-linux-gnu;-pthread;;;-lwx_gtk2u_gl-3.0;-lwx_baseu_net-3.0;-lwx_baseu_xml-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_aui-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0
-- Revised wxWidgets Libraries: -L/usr/lib/x86_64-linux-gnu;-pthread;-lwx_gtk2u_gl-3.0;-lwx_baseu_net-3.0;-lwx_baseu_xml-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_aui-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0
--
-- *** Staging to build opencpn ***
and I find


Quote:
-- Building with lzma support
-- Checking for one of the modules 'libwxcurl;wxcurl'
-- Building with bundled wxcurl
-- SVG support enabled...
-- Cairo library found: /usr/lib/x86_64-linux-gnu/libcairo.so
-- Checking for one of the modules 'libwxsvg;wxsvg'
-- Using new serial library...
-- Adding local GLU
Quote:
-- Checking for module 'sndfile'
-- No package 'sndfile' found
-- Could NOT find LibSndFile (missing: LIBSNDFILE_LIBRA
RY LIBSNDFILE_INCLUDE_DIR)
-- ENABLE_LIBSNDFILE is set but I cannot find libsndfile
-- HAVE_SNDFILE =
-- Building with system tinyxml
Quote:
-- *** Staging to build grib_pi ***
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR JPEG_LIBRARIES)

-- Using bundled jasper library...
-- Building against GTK2...

Quote:
-- *** Added plugin: /home/rgleason/OpenCPN/plugins/wmm_pi
-- *** Package will NOT include tide and current data ***
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rgleason/OpenCPN/build
rgleason is offline   Reply With Quote
Old 03-03-2020, 12:36   #17
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Linux Plugin Installation -need VDR_pi

I do not find anywhere near the same number of directories under Ubuntu

home/opencpn/src

as under my windows opencpn/src directory where I find the "wxsvg" directory.

So how do I fix this error and the other ones in red?


Quote:
/home/rgleason/OpenCPN/plugins/vdr_pi/src/ocpn_plugin.h:48:10: fatal error: wxSVG/svg.h: No such file or directory
#include "wxSVG/svg.h"
rgleason is offline   Reply With Quote
Old 03-03-2020, 12:59   #18
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Linux Plugin Installation -need VDR_pi

In my github windows install I find

C:\Users\Rick\Documents\GitHub\OpenCPN\libs\wxsvg\ include\wxSVG\svg.h

In Ubuntu 18.04 I find

Home\OpenCPN\libs\wxsvg\include\wxSVG\svg.h

As well, so what is the likely problem? VDR_pi does not show up in PI Manager.
rgleason is offline   Reply With Quote
Old 03-03-2020, 13:57   #19
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Linux Plugin Installation -need VDR_pi

Maybe there is something wrong with that version of
/home/rgleason/OpenCPN/plugins/vdr_pi/src/ocpn_plugin.h

I am going to replace it with the current version of that file because we are using Opencpn v5.0.522. Maybe that will help.
Updating ocpn_plugin.h did not fix it.


/home/rgleason/OpenCPN/plugins/vdr_pi/src/ocpn-plugin.h
Quote:
#ifdef ocpnUSE_SVG
#include "wxSVG/svg.h" <---Line 48 error
#endif // ocpnUSE_SVG
/home/rgleason/OpenCPN/plugins/vdr_pi/src/vdr.cpp
Quote:
#include <typeinfo>
#include "vdr_pi.h" <-----Line 37 Error
#include "icons.h"
/home/rgleason/OpenCPN/plugins/vdr_pi/src/vdr.h
Quote:
#include <wx/file.h>
#include <wx/aui/aui.h>
#include "ocpn_plugin.h" <----Line 48 Error
I think the paths may need to be changed to point at the files that are being used by the entire OpenCPN program, since we are not building standalone plugins now.


But the problem is actually worse, I think this should work both as standalone build and with Opencpn without changing anything.
rgleason is offline   Reply With Quote
Old 03-03-2020, 16:08   #20
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Linux Plugin Installation -need VDR_pi

The right answer is to delete src/opcn-plugin.h because it is unnecessary when the plugin is built in-line with Opencpn.


Have found /home/rgleason/OpenCPN/build/plugins/vdr_pi/libvdr.so
but no sure where I copy this to in Ubuntu.
Will try Opencpn/plugin/vdr_pi - Nope


New managed Plugins location for Ubuntu

/home/rgleason/.local/lib/opencpn/



And that is the exact same location that libvdr_pi.so is placed in order to work!
Hurray.


There must be an easier way!
rgleason is offline   Reply With Quote
Old 03-03-2020, 16:24   #21
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: Linux Plugin Installation -need VDR_pi

Rick....


And there is:
It is called "Managed plugins".
I could not resist


Dave
bdbcat is offline   Reply With Quote
Old 03-03-2020, 17:38   #22
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Linux Plugin Installation -need VDR_pi

I do look forward to that day!
rgleason is offline   Reply With Quote
Reply

Tags
installation, linux, 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
VDR_pi Enhanced -? rgleason OpenCPN 9 14-06-2018 09:34
Does the findit plugin work in the 4.8 Linux release? Firestorm OpenCPN 1 19-10-2017 19:16
BsB4 plugin for Linux? jakobcornelis OpenCPN 6 01-06-2017 09:12
Google Earth plugin for Linux abinp12 OpenCPN 4 30-06-2016 05:38
New Plugin Development on Linux globalkeith OpenCPN 5 03-05-2012 07:16

Advertise Here


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


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.