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 28-06-2021, 06:12   #1
Registered User
 
sbrady's Avatar

Join Date: Jun 2021
Location: Fredericksburg
Posts: 2
Plug-in API help

Where can I get help with plug-in development? Is there an API? I would like to develop a stand-alone plug-in to plot a bearing line with some informative text. I do not need to build the entire OpenCPN application. I am a software developer.
sbrady is offline   Reply With Quote
Old 28-06-2021, 08:40   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,295
Re: Plug-in API help

API: https://github.com/OpenCPN/OpenCPN/b.../ocpn_plugin.h
Look at any existing plugin to see how to use it. As you want to draw on the chart canvas, some that does that is a better choice. For example https://github.com/nohal/iacfleet_pi does.
nohal is offline   Reply With Quote
Old 28-06-2021, 12:32   #3
Registered User
 
sbrady's Avatar

Join Date: Jun 2021
Location: Fredericksburg
Posts: 2
Re: Plug-in API help

Thank you for providing a link to a sample plugin that I could use. I can't seem to find some include files, particularly the wx directory. Also do I need an opencpn.lib file for version 5.2.4? I have only located up to version 4.2. My goal is just build a compatible dll and copy to the plugins folder and not build OpenCPN.
sbrady is offline   Reply With Quote
Old 28-06-2021, 12:55   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,295
Re: Plug-in API help

From what you write I asume you are trying to deveolp your plugin on Windows. You of course need the wx includes and libraries to link against, you also need the same toolchain as required to build OpenCPN core to build your plugin.
Follow the instructions t https://opencpn.org/wiki/dokuwiki/do...piling_windows (Please, try to save our time and do not take any shortcuts, simply follow them)
Then build OpenCPN - it will not only validate that you installed everything correctly, but will also give you a custom opencpn.lib in case you need a newer one than https://downloads.sourceforge.net/pr...xp/opencpn.lib (which is good for building plugins compatible with OpenCPN 5.x)
nohal is offline   Reply With Quote
Reply

Tags
plug

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
Want To Buy: Dri-Plug connector- old autopilot/tiller pilot plug sanibel sailor General Classifieds (no boats) 4 01-05-2020 07:34
Map API - WMS Support? moyd OpenCPN 15 17-01-2017 08:16
Changes on the Plug-in Download page & new plug-in packages nohal OpenCPN 8 04-07-2014 08:15
Technical: API to query heading(s)? bushtor OpenCPN 4 03-06-2013 08:38
Plugin api coding rooiedirk OpenCPN 6 03-04-2013 09:49

Advertise Here


All times are GMT -7. The time now is 20:09.


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.