Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 14-04-2015, 16:26   #1
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,382
RotationCtrl Plugin

I am trying to compile Sean's new RotationCtrl plugin which seems to still have some errors when compiling with current v4.1 of opencpn.lib.

This plugin is a reasonable solution to issues we were having with the options interface during the final hours of issuing version 4.0.

Bdcat resolved the issues by removing the option of rotating charts, which was a reasonable call at the time given that feature was not a high priority for many users.

However I believe it is a feature that could be very useful for some, provided it did does not confuse new users and logjam development.

To that end, Sean has made a RotationCtrl Plugin which was paired with an Opencpn pull request.

I have not been able to find Sean's pull request on github.com in either Sean's pull requests or under outstanding Opencpn repository pull requests (still learning). This leads me to believe that the pull request was merged but I have not found it yet.

1. Has Sean's pull request been merged with the current 4.1 Opencpn?
2. If so, I am getting this error when I compile rotationctrl with the current v4.1 opencpn.lib.

--It is possible I have overlooked something.

Code:
Build FAILED.

"C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\rotationctrl_pi.vcxproj" (default target) (3) ->
(Link target) ->
  rotationctrl_pi.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall opencpn_plugin_113::OnToolbarToolDownCallback(int)" (?OnToolbarToolDownCallback@opencpn_plugin_113@@UAEXH@Z) [C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\rotationctrl_pi.vcxproj]
  PreferencesDialog.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall opencpn_plugin_113::OnToolbarToolDownCallback(int)" (?OnToolbarToolDownCallback@opencpn_plugin_113@@UAEXH@Z) [C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\rotationctrl_pi.vcxproj]
  rotationctrl_pi.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall opencpn_plugin_113::OnToolbarToolUpCallback(int)" (?OnToolbar
ToolUpCallback@opencpn_plugin_113@@UAEXH@Z) [C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\rotationctrl_pi.vcxproj]
  PreferencesDialog.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall opencpn_plugin_113::OnToolbarToolUpCallback(int)" (?OnToolb
arToolUpCallback@opencpn_plugin_113@@UAEXH@Z) [C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\rotationctrl_pi.vcxproj]
  rotationctrl_pi.obj : error LNK2019: unresolved external symbol "void __cdeclSetCanvasRotation(double)" (?SetCanvasRotation@@YAXN@Z) referenced in function "
public: virtual void __thiscall rotationctrl_pi::OnToolbarToolCallback(int)" (?OnToolbarToolCallback@rotationctrl_pi@@UAEXH@Z) [C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\rotationctrl_pi.vcxproj]
  rotationctrl_pi.obj : error LNK2019: unresolved external symbol "bool__cdeclGetSingleWaypoint(class wxString &,class PlugIn_Waypoint *)" (?GetSingleWaypoint@@YA_NAAVwxString@@PAVPlugIn_Waypoint@@@Z) referenced in function "public: void__thiscall rotationctrl_pi::OnTimer(class wxTimerEvent &)" (?OnTimer@rotationctrl_pi@@QAEXAAVwxTimerEvent@@@Z) [C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\rotationctrl_pi.vcxproj]
  C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\Debug\rotationctrl_pi.dll : fatal error LNK1120: 4 unresolved externals [C:\Data-Dart\Up-Soft\Navigation\o-plugin\rotationctrl_pi\build\rotationctrl_pi.vcxproj]

    0 Warning(s)
    7 Error(s)
========

PS:
I just found Sean's pull request for Plugin API 1.13 here
https://github.com/OpenCPN/OpenCPN/pull/242
initial functions for plugin api 1.13 #242


I guess it has not been merged yet.

Correction: Sean closed the pull request, and it appears to have been "commited".

Does anyone have any suggestion to compile this?
__________________
rgleason is offline   Reply With Quote
Old 18-04-2015, 07:12   #2
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: RotationCtrl Plugin

I had to rebase because of more changes.. basically pull requests go stale once changes get commited that conflict with them before they are merged.

https://github.com/OpenCPN/OpenCPN/pull/264

Otherwise you could just pull my opencpn repository and use that to test this plugin.

https://github.com/seandepagnier/OpenCPN
__________________
boat_alexandra is offline   Reply With Quote
Reply

Tags
plug, rot

Thread Tools
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 78 29-07-2017 03:15
Plugin: DashBoard SethDart OpenCPN 470 24-08-2016 21:34
BSB 4 PlugIn bdbcat OpenCPN 93 20-02-2016 04:41
New History Plugin for OpenCPN boat_alexandra OpenCPN 11 04-10-2010 15:11
Writing Plugin for nv.digital Map Format ? Netsurfer OpenCPN 7 17-08-2010 17:09



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.