Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 05-09-2019, 07:41   #1
Registered User

Join Date: Sep 2019
Posts: 2
Windows 10 OpenCPN PlugIn Development problem

Hello,
I'am novice on OpenCPN plugin development. I'am following this tutorial from opencpn to learn how to develop a plugin (https://opencpn.org/wiki/dokuwiki/do..._build_windows).



I did all the steps and a generate the plugin. The problem is when i try to add it to OCPN 5.0.0 it does not work. I move the DR_pi.dll to the plugins folder and it does not appers in the software's plugins tab. I tried to use it in a old version of the OCPN 4.4.0 and an compatibility error shows up when i open the plugins tab.


I'am using the windows 10, Visual Studio 2015 and the CMAKE V3.15.0-rc1 to build the tutorial project.



1 - I did the download of the missing resources:

- wxWidgets-3.1.2 (Latest version at the time)
- opencpn.lib (from the tutoral page)
- DR_pi project (https://github.com/Rasbats/DR_pi)



2 - I did the configuration of the CMAKE, generate the visual studio project and add the opencpn.lib to the build folder. During this step i realize that the visual studio libraries for wxwidgets were missing. Then, i did the download of them from wxwidgets website:


(IMAGE: https://drive.google.com/open?id=160...kpuvu_-jMimUub)



(IMAGE: https://drive.google.com/open?id=1Uo...iAcsBPMK1W0stb)




(IMAGE: https://drive.google.com/open?id=17c...3CDUkbm_XvCaYK)


3 - I open the project on VS2015 and i add the opencpn.lib to the additional dependencies:


(IMAGE: https://drive.google.com/open?id=1KL...DFKMQDeQ-RMXn7)


4 - After the deployment of the plugin, i add it to OpenCPN5.0.0 plugins folder and launch the software. The plugin does not shows on plugins TAB. I tried to use different version of the opencpn.lib and nothing:
(IMAGE: https://drive.google.com/open?id=12s...td_NZyn_yBPQ9j)


I even tried a diffrent version of VS wxwidgets and nothing...

(IMAGE: https://drive.google.com/open?id=1dd...ku0bzkP--MyX7G)



When i open this plugin on the opencpn 4.4.0 this errors occurs:
(IMAGE: https://drive.google.com/open?id=1uh...8xe5TBUswZboVs)


which is expectable once it is a old version and the wxwidgets is the new one.


i'am running out of solutions....



What am i doing wrong? Can you help me?
__________________

danielopes02 is offline   Reply With Quote
Old 06-09-2019, 17:53   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,955
Re: Windows 10 OpenCPN PlugIn Development problem

danielopes02...


You first resource is the OCPN logfile.
What does it say when trying to load your plugin?


Dave
__________________

bdbcat is online now   Reply With Quote
Old 06-09-2019, 17:53   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,931
Re: Windows 10 OpenCPN PlugIn Development problem

Daniel,
You've provided very good description for what you have done. I am on a cell right now and will look at this in the morning with the computer.

However my first question is, and you may have answered it, did you use the prebuilt version of widgets or did you compile it?

I am sure others will have some suggestions.

Nite
rgleason is offline   Reply With Quote
Old 07-09-2019, 03:16   #4
Registered User

Join Date: May 2012
Posts: 740
Re: Windows 10 OpenCPN PlugIn Development problem

Daniel ...

I posted a copy of 'opencpn.lib' for OpenCPN 5.0 on GitHub when you raised this issue. You can find it here:

https://github.com/Rasbats/DR_pi/issues/7

Hope this helps.

Mike
Rasbats is offline   Reply With Quote
Reply

Tags
enc, men, opencpn, plug, wind

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
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
APRS Plugin Development alawatsakima OpenCPN 8 21-09-2015 12:21
Plugin Development Question pelle2004 OpenCPN 3 04-07-2012 01:00
New Plugin Development on Linux globalkeith OpenCPN 5 03-05-2012 07:16

Advertise Here


All times are GMT -7. The time now is 17:39.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.