Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 30-01-2016, 17:39   #1036
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

Jon, you were right. After a fresh git fetch, I copied the wrong opencpn.lib in and of course it did not work. Finally I looked at the date! and found it was from 1-19, so I went and got a current one under the release directory of O with 1-30. That worked.
Now that is up on File thingie. Will it have the adjustment for touch interface yet?
__________________

__________________
rgleason is offline   Reply With Quote
Old 30-01-2016, 17:41   #1037
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

Bdbcat pushed that to OpenCPN an hour ago (github). I will check, I think I need to fetch and compile O.

Getting this error:
Quote:
_V110_SDK71_ /D _UNICODE /D UNICODE /Gm- /EHa /MD /GS /fprecise /Zc:wchar_t /Zc:forScope /GR /F
o"opencpn.dir\Release\\" /Fd"opencpn.dir\Release\vc120.pdb" /Gd /TP /analyze- /errorReport:queue
C:\Users\Rick\Documents\GitHub\OpenCPN\src\pluginm anager.cpp
pluginmanager.cpp

C:\Users\Rick\Documents\GitHub\OpenCPN\src\pluginm anager.cpp(2179): error C2065: 'g_btouch' : undec
lared identifier [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\pluginm anager.cpp(5155): warning C4273: 'wxEVT_DOWNLOAD_
EVENT' : inconsistent dll linkage [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
c:\users\rick\documents\github\opencpn\include\ocp n_plugin.h(1167) : see previous definit
ion of 'wxEVT_DOWNLOAD_EVENT'
Done Bu

Quote:
Build FAILED.

"C:\Users\Rick\Documents\GitHub\OpenCPN\build\pack age.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (2) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\dashboard_pi\dashboard_pi.vcxproj" (default t
arget) (16) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\open cpn.vcxproj" (default target) (18) ->
(ClCompile target) ->
C:\Users\Rick\Documents\GitHub\OpenCPN\src\pluginm anager.cpp(5155): warning C4273: 'wxEVT_DOWNLOA
D_EVENT' : inconsistent dll linkage [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]


"C:\Users\Rick\Documents\GitHub\OpenCPN\build\pack age.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (2) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\dashboard_pi\dashboard_pi.vcxproj" (default t
arget) (16) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\open cpn.vcxproj" (default target) (18) ->
(ClCompile target) ->
C:\Users\Rick\Documents\GitHub\OpenCPN\src\pluginm anager.cpp(2179): error C2065: 'g_btouch' : und
eclared identifier [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]

1 Warning(s)
1 Error(s)

__________________

__________________
rgleason is offline   Reply With Quote
Old 30-01-2016, 18:35   #1038
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

It is not creating Opencpn.lib in release or debug

I also tried removing most all the files in build, except my batch files and the same is happening.
release is just a bunch of lib files with no opencpn.lib

Also tried cmake -build . --config debug
Sorry.
__________________
rgleason is offline   Reply With Quote
Old 30-01-2016, 18:40   #1039
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

Do I really have to start over from scratch here?

Quote:
wmm_pi.dir\Debug\jsonwriter.obj
LINK : fatal error LNK1104: cannot open file 'opencpn.lib' [C:\Users\Rick\Documents\GitHub\OpenCPN\
build\plugins\wmm_pi\wmm_pi.vcxproj]
Done Building Project "C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\wmm_pi\wmm_pi.vcxproj"
(default targets) -- FAILED.

Done Building Project "C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default tar
gets) -- FAILED.


Build FAILED.

"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\src\ glu\GLU_static.vcxproj" (default target) (4) ->
(ClCompile target) ->
C:\Users\Rick\Documents\GitHub\OpenCPN\src\glu\lib util\registry.c(76): warning C4996: 'strcpy': T
his function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, us
e _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\Rick\Documents\GitHub\OpenCPN\bui
ld\src\glu\GLU_static.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\glu\lib util\registry.c(78): warning C4996: 'strtok': T
his function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, us
e _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\Rick\Documents\GitHub\OpenCPN\bui
ld\src\glu\GLU_static.vcxproj]


"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\WXSV G.vcxproj" (default target) (12) ->
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\Elements_SetAttribute.cpp(710): warning C480
0: 'long' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\Rick\Documents\
GitHub\OpenCPN\build\WXSVG.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\Elements_SetAttribute.cpp(720): warning C480
0: 'double' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\Rick\Document
s\GitHub\OpenCPN\build\WXSVG.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\Elements_SetAttribute.cpp(999): warning C480
0: 'long' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\Rick\Documents\
GitHub\OpenCPN\build\WXSVG.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\Elements_SetAttribute.cpp(1036): warning C48
00: 'double' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\Rick\Documen
ts\GitHub\OpenCPN\build\WXSVG.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\SVGCanvasItem.cpp(549): warning C4305: '+='
: truncation from 'double' to 'float' [C:\Users\Rick\Documents\GitHub\OpenCPN\build\WXSVG .vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\SVGPathSegList.cpp(445): warning C4800: '_wx
ObjArraywxSVGNumberListBase' : forcing value to bool 'true' or 'false' (performance warning) [C:\Us
ers\Rick\Documents\GitHub\OpenCPN\build\WXSVG.vcxp roj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\SVGPathSegList.cpp(446): warning C4800: '_wx
ObjArraywxSVGNumberListBase' : forcing value to bool 'true' or 'false' (performance warning) [C:\Us
ers\Rick\Documents\GitHub\OpenCPN\build\WXSVG.vcxp roj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\SVGPathSegList.cpp(458): warning C4800: '_wx
ObjArraywxSVGNumberListBase' : forcing value to bool 'true' or 'false' (performance warning) [C:\Us
ers\Rick\Documents\GitHub\OpenCPN\build\WXSVG.vcxp roj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\wxsvg\s rc\SVGPathSegList.cpp(459): warning C4800: '_wx
ObjArraywxSVGNumberListBase' : forcing value to bool 'true' or 'false' (performance warning) [C:\Us
ers\Rick\Documents\GitHub\OpenCPN\build\WXSVG.vcxp roj]


"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\dashboard_pi\dashboard_pi.vcxproj" (default t
arget) (15) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\open cpn.vcxproj" (default target) (17) ->
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(1298): warning C4005: 'M_PI
' : macro redefinition [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(1298): warning C4005: 'M_PI
' : macro redefinition [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\ais.cpp (974): warning C4101: 'Tcpa' : unreferenced loc
al variable [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Users\Rick\Documents\GitHub\OpenCPN\src\pluginm anager.cpp(5155): warning C4273: 'wxEVT_DOWNLOA
D_EVENT' : inconsistent dll linkage [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\math.h(1298): warning C4005: 'M_PI
' : macro redefinition [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]


"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\chartdldr_pi\chartdldr_pi.vcxproj" (default t
arget) (13) ->
(Link target) ->
LINK : fatal error LNK1104: cannot open file 'opencpn.lib' [C:\Users\Rick\Documents\GitHub\OpenCP
N\build\plugins\chartdldr_pi\chartdldr_pi.vcxproj]


"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\dashboard_pi\dashboard_pi.vcxproj" (default t
arget) (15) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\open cpn.vcxproj" (default target) (17) ->
(ClCompile target) ->
C:\Users\Rick\Documents\GitHub\OpenCPN\src\pluginm anager.cpp(2179): error C2065: 'g_btouch' : und
eclared identifier [C:\Users\Rick\Documents\GitHub\OpenCPN\build\openc pn.vcxproj]


"C:\Users\Rick\Documents\GitHub\OpenCPN\build\ALL_ BUILD.vcxproj" (default target) (1) ->
"C:\Users\Rick\Documents\GitHub\OpenCPN\build\plug ins\wmm_pi\wmm_pi.vcxproj" (default target) (21)
->
(Link target) ->
LINK : fatal error LNK1104: cannot open file 'opencpn.lib' [C:\Users\Rick\Documents\GitHub\OpenCP
N\build\plugins\wmm_pi\wmm_pi.vcxproj]

16 Warning(s)
3 Error(s)

Time Elapsed 00:10:00.26

C:\Users\Rick\Documents\GitHub\OpenCPN\build>
__________________
rgleason is offline   Reply With Quote
Old 30-01-2016, 18:42   #1040
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

Darn, I deleted the wxSVG stuff. I'll put it back in.

Nope, I do have cairo.lib and expat.lib
Was misssing wxsvg.lib but found one under release

Still gets the same errors

Nope something is wrong and I am not able to fix it tonight.
Tomorrow I am traveling.
__________________
rgleason is offline   Reply With Quote
Old 30-01-2016, 19:14   #1041
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

Tried to build a release on my other machine, got the same 5 errors.
__________________
rgleason is offline   Reply With Quote
Old 30-01-2016, 19:21   #1042
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 872
Re: Ocpn-Draw and Boundary

Rick,
I lost my internet connection at just the wrong moment! I put up the change to the API then noticed I had not put in the global variable needed for compile. Put that in and the internet connection went down. I have only just got it back up and have submitted another pull to fix the compile issue.

That will allow me to find out if the touch interface is active. When I can do that I will change the code to use that for sensitivity which I am hoping will not take too long.

Jon
__________________
jongough is offline   Reply With Quote
Old 30-01-2016, 19:27   #1043
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 872
Re: Ocpn-Draw and Boundary

Håkan,
I am getting an error with your sv.po file, you appear to be missing an new line character, '\n' at line 949. I can fix my copy, but each time I pull your version I have to redo the fix. Can you please put the '\n' at the end of the text string in line 949?

I get this error message:
ocpn_draw_pi/po/sv.po:936: 'msgid' and 'msgstr' entries do not both end with '\n'


Thanks
Regards
Jon
__________________
jongough is offline   Reply With Quote
Old 30-01-2016, 19:42   #1044
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

Quote:
lost my internet connection at just the wrong moment! ... When I can do that I will change the code to use that for sensitivity which I am hoping will not take too long.
Thanks. Will be checking, with my Win Tablet tomorrow. It can compile too. Hope I've got it right on that machine. The ODraw pi will need updating too I guess.

Night
__________________
rgleason is offline   Reply With Quote
Old 30-01-2016, 20:00   #1045
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 872
Re: Ocpn-Draw and Boundary

Rick,
Patch 638 will now adjust the selection radius when in tablet mode (set from "options/User Interface"). You will need to have at least commit 6765af6 of OCPN for this to work.

Regards
Jon
__________________
jongough is offline   Reply With Quote
Old 30-01-2016, 20:54   #1046
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

Sounds very nice! Gille will be happy. Hopefully tomorrow I can git fetch and compile.
Thankyou!
__________________
rgleason is offline   Reply With Quote
Old 30-01-2016, 21:40   #1047
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 872
Re: Ocpn-Draw and Boundary

Rick,
I cannot test it at the moment, but I have just put up a pull request to the weather_routing_pi which implements boundary checking. It does this using the same method as the watchdog plugin (same code actually), so it should work OK. It does it using JSON messages and does this straight after a land crossing check. Is it possible for someone with the correct setup (and know how) to test it out. You may need to get the code from my fork of the git, which you will find here:
https://github.com/jongough/weather_routing_pi

Regards
Jon

Quote:
Originally Posted by rgleason View Post
Taarnskov:

Nice idea. WD is the first to use Jon's ODraw boundary. - Baby steps.
Please write "Feature Request" for "pi - Weather_Routing" in the Tracker.
Take care where you sail and good luck!
__________________
jongough is offline   Reply With Quote
Old 31-01-2016, 02:57   #1048
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,278
Re: Ocpn-Draw and Boundary

Hello Jongough,
Here, translated into English, a question, a few days ago by a sailor on a French forum :
"
The idea is to know when I can transfer to reach my destination by having a single "of tack" to perform. I will therefore add two lines on either side of the vessel starting from its mid-point, each line being 52.5 ° bow (short 105 ° edge to edge) ?
"
For this sailor, 52.5 ° is the angle beyond which the boat can not go upwind.

I told him that the EBL tool OD enable him to accomplish this easily (and wait for the release of 4.2). However, yesterday working on the French tutorial I have tried to explain how we could implement this idea.

And I've realized that it was possible to define the length of a EBL but not the angle, accurately, that EBL with the axis of the boat.
This forces currently to tweak to build two EBL as:
- The angle of the two EBL measuring 105 °
- The axis of the vessel is the bisector of the angle between the two EBL.

Second problem, at present with the EBL, is that if the boat changes direction, the EBL attached to the boat can not turn with the boat.

It would also be useful to draw an EBL, attached to the boat that materialize wind direction on the water.

That said, It may be too late,now, before the 4.2 release, to add this option to OD, but it could be quite useful.
B.R. Gilletarom.
__________________
Gilletarom is offline   Reply With Quote
Old 31-01-2016, 03:32   #1049
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,683
Re: Ocpn-Draw and Boundary

Jon
This is exciting I will try it tomorrow. Traveling today.
Gille you are referring to tacking lines or layline which is a very good idea.
__________________
rgleason is offline   Reply With Quote
Old 31-01-2016, 04:21   #1050
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,880
Re: Ocpn-Draw and Boundary

Gille.. All..
Re: "Second problem, at present with the EBL, is that if the boat changes direction, the EBL attached to the boat can not turn with the boat."

If think you've a point here.
The, at least for me, primary use for an EBL is to draw an instant bearing line to a (radar) target to be able to see if the angle change over time. If the target moves in front the line he will pass ahead of me. If the target moves behind the line he will pass behind me. If on the line we will collide.
As it is now the line will only watch the target's behavior, not mine. If I turn away from the target the line would also turn to support getting the target behind the line.
Correct? Or---?
Håkan
__________________

__________________
Hakan is offline   Reply With Quote
Reply

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
Rookie questions - boundary circles; exporting options; GPX files fredgmeyer OpenCPN 5 23-05-2014 22:22
Buoys out in Boundary Bay, BC Carogan Liveaboard's Forum 0 27-08-2012 06:41
For Sale: Cascade Designs Seal Line Boundary 70 Dry Bag thesparrow Classifieds Archive 0 14-03-2011 15:27
Current draw and insulation of portable fridges troppo Plumbing Systems and Fixtures 6 06-03-2011 09:00
amperage draw for Garmin radar and MFD janders Marine Electronics 8 16-12-2008 17:00


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 03:04.


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.