Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 15-05-2015, 13:34   #91
Registered User

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

In this build of OpenCPN I am getting quite a few 'assert' errors under linux from wxWidgets (first time I have seen them), so something is different, although I have been using wxWidgets 3 for some time and have not changed them. In linux I see the points dissapearing, but that only seems to happend AFTER something else has happened (one of the assert messages or something, haven't really pinned it down), otherwise it seems to work. I think this issue may be to do with colours and when something happens it uses transparent. So I may try converting the colours to be the same as for range rings, i.e. colour RGB number rather than the 'GPS' export/import colours that are currently used.

I am trying to get a windows VS 2013, wxW 3.02, etc environment up and running, it is just taking a little time. I can then investigate further and see the windows effects as well.
__________________

__________________
jongough is offline   Reply With Quote
Old 15-05-2015, 15:02   #92
Registered User
 
rgleason's Avatar

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

Jon, I think I should probably move up to the VS2013 environment, and all the cmake, POedit, etc programs do not have an "upgrade" button. So should I uninstall those programs and then start over, or should I just try installing the new versions?

I've got thousands of MS software on this machine and would like to pare it down.
Microsoft.NET Framework 4 Multi-Targeting Pack 8/20/2012
Microsoft.NET Framework 4.5.2 1/14/2015
Microsoft Silverlight 7/25/2014
Microsoft SQL Server 2005 Compact Edition ENU 4/3/2011
Microsoft SQL Server Compact 3.4 SP2 x64 ENU
Microsoft Visual C++ 2005 ATL Update kb973923 -x64 8.0.50727.4053 5/4/2011
Microsoft Visual C++ 2005 ATL Update kb973923 -x86
8.0.50727.4053 5/4/2011
Microsoft Visual C++ 2005 Redistributable 6/5/2011
Microsoft Visual C++ 2005 Redistributable 12/21/2011
Microsoft Visual C++ 2005 Redistributable 10/8/2011
Microsoft Visual C++ 2005 Redistributable (x64) 4/18/2011
Microsoft Visual C++ 2005 Redistributable (x64) 6/15/2011
Microsoft Visual C++ 2005 Redistributable (x64) -KB2467175 5/4/2011
Microsoft Visual C++ 2008 ATL Update kb973924 -x64 9.0.30729.4148 5/4/2011
Microsoft Visual C++ 2008 ATL Update kb973924 -x86 9.0.30729.4148 5/4/2011
Microsoft Visual C++ 2008 Redistributable x64 9.0.30729.17 4/3/2011
Microsoft Visual C++ 2008 Redistributable x64 9.0.30729.6161 6/15/2011
Microsoft Visual C++ 2008 Redistributable x86 9.0.30729 9/19/2011
Microsoft Visual C++ 2008 Redistributable x86 9.0.30729.17 4/3/2011

Microsoft Visual C++ 2008 Redistributable x86 9.0.30729.6161 6/15/2011
Microsoft Visual C++ 2010 x64 Redistributable 10.0.40219 10/16/2014
Microsoft Visual C++ 2010 x64 Runtime 10.0.40219 8/20/2012
Microsoft Visual C++ 2010 x86 Redistributable 10.0.40219 10/16/2014
Microsoft Visual C++ 2010 x86 Runtime 10.0.40219 8/20/2012
Microsoft Visual C++ 2010 Express -ENU 8/20/2012
Microsoft Visual Studio 2010 Express Prerequisites x64 - ENU 8/20/2012
Microsoft Visual Studio 2010 Service Pack 1 8/20/2012
Microsoft Visual Studio 2010 Tools for Office Runtime (x64) 10/16/2014
MSML 4.0 SP2 (KB954430)
MSML 4.0 SP2 (KB973688)
MSML 4.0 SP2 Parser and SDK

Which is totally ridiculous. But MS provides no way to determine what is necessary and googling about removal of these results in recommendations not to. I might just remove one at a time and see if something does not work.

Then perhaps install VS2013 and I sure as hell hope that it does not install all this MS XXXX again.
__________________

__________________
rgleason is offline   Reply With Quote
Old 17-05-2015, 02:15   #93
Registered User

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

Rick,
I have VirtualBox VM's for Win 7 which is what I installed VS2010 and now VS2013 into. If I need to do some cleanup I just snapshot it then remove the software. If it breaks I can then return to a snapshot that does work and try again. I do have a Win 8 machine which I can try the executables out on (its actually the boat PC and dual boot).

I have VC2013 working, but generating an install of OpenCPN that works is proving challenging. It installs but does not run. Various DLL's are missing.

On my build machine if I run ODraw under debug it all works. If I install on the same machine I loose the Points in OpenGL. It points to something missing, but I am having difficulty finding it.

Jon
__________________
jongough is offline   Reply With Quote
Old 17-05-2015, 18:13   #94
Registered User
 
rgleason's Avatar

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

Jon, This is a bit frustrating I am sure. I am sorry about that, as you've been a champ and very persistent, and the progress shows, you don't seem to let these things phase you.

I had a virtualbox with linux and ocpn, but Christmas time my laptop was getting too slow and I resolved to uninstall any software I did not really use that much, I had way too much software on it and still do. I still have a ways to go, to get this machine cleaned up. I like the idea of saving a virtualbox setup and being able to recall it. Nice technique, may reinstall later, once I get the machine back to running as it should.

I have git fetched and compiled and installed into most recent Opencpn 4.1.427
When I run Opencpn 4.1.427 it seems buggy and it fails and is very sensitive to what I do. I tried renaming opencpn.ini to opencpn.ini.old2 and starting it and that helped a little, but not enough. When I go into settings and try Plugins > Enable Ocpn_Draw, it just bombs. I have tried this several ways, and I don't know if it is due to Opencpn 4.1.427 or the plugin right now.

This is the end of the opencpn.log file


Code:
8:54:22 PM: Done loading navobjects
8:54:23 PM: PlugInManager searching for PlugIns in location C:\Program Files (x86)\OpenCPN 4.1.427\plugins
8:54:23 PM:    ***GPS Watchdog timeout at Lat:33.358   Lon: -79.282
8:54:30 PM: PlugInManager searching for PlugIns in location C:\Program Files (x86)\OpenCPN 4.1.427\plugins
8:54:30 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 4.1.427\plugins\dashboard_pi.dll
8:54:30 PM:   C:\Program Files (x86)\OpenCPN 4.1.427\plugins\dashboard_pi.dll
              API Version detected: 106
              PlugIn Version detected: 102
8:54:30 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 4.1.427\plugins\grib_pi.dll
8:54:30 PM:   C:\Program Files (x86)\OpenCPN 4.1.427\plugins\grib_pi.dll
              API Version detected: 112
              PlugIn Version detected: 203
8:54:30 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 4.1.427\plugins\ocpn_draw_pi.dll
8:54:30 PM:   C:\Program Files (x86)\OpenCPN 4.1.427\plugins\ocpn_draw_pi.dll
              API Version detected: 113
              PlugIn Version detected: 2
8:54:30 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 4.1.427\plugins\rotationctrl_pi.dll
8:54:30 PM:   C:\Program Files (x86)\OpenCPN 4.1.427\plugins\rotationctrl_pi.dll
              API Version detected: 113
              PlugIn Version detected: 1
8:54:37 PM: PlugInManager: Initializing PlugIn: C:\Program Files (x86)\OpenCPN 4.1.427\plugins\ocpn_draw_pi.dll
8:54:37 PM: Opencpn language reload for:  en_US
8:54:37 PM: Loading catalog for:  opencpn-ocpn_draw_pi
8:54:37 PM: Loading catalog for opencpn core.
8:54:37 PM: Loading navobjects from C:\ProgramData\opencpn\plugins\ocpn_draw_pi\data\ODnavobj.xml
8:54:37 PM: Done loading ODnavobjects
8:54:37 PM: Applying changes from C:\ProgramData\opencpn\plugins\ocpn_draw_pi\data\ODnavobj.xml.changes
Earlier I had tried clearing out ODnavobj.xml.changes and leaving it empty. That did not seem to fix it.

Hope this helps somehow. Let me know if you want me to run debug.
__________________
rgleason is offline   Reply With Quote
Old 17-05-2015, 19:59   #95
Registered User

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

Rick,
I think, although I cannot confirm it at the moment as I am not at my build machine, but you may have the wrong version of ocpn_draw_pi in the plugins directory. I 'think' is should be '3' but yours is showing up as '2'. To see if you have a compatible source versions look in ocpn_draw_pi.h or cpp, and lookfor 'OnToolbarToolDownCallback' and 'OnToolbarToolUpCallback', if you find them then this is the new one, if not then this is the old one. You can open the executable with notepad and look for these functions (they should show up near the bottom of the binary, I think). If you are using the old version OpenCPN will crash immediately it trys to build the toolbar and goes to a non-existent function.

Also, you need to check if all 'SetToolbarItemState' calls are commented out. if this is not the case the code you have is still too old as this will cause a crash as soon as you click on one of the items.

If you have a debugging environment you will see where the crash occurs. In my case I could see it happened in pluginmanger.cpp at the call for the toolbar callback. If you do have crashes, can you copy/paste the callback trace showing where you are when the crash occurs, then I can investigate further.

I am hoping to get an installable version working soon so that it can be tested to get around some of the build issues. But that may take a day or so (busy most evenings and not much time to spend on it!).

The nav objects get loaded in the initialisation part of the code. The call backs start to occur after that so the messages in the log refering to this are OK.

Jon
__________________
jongough is offline   Reply With Quote
Old 21-05-2015, 03:11   #96
Registered User

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

Hi,
I have updated the plugin to work with OCPN 4.1.427 and wxWidgets 3.0.2. I have fixed a couple of errors with the recovery after crash for points and boundaries. There is still an issue with disappearing points when using OpenGL and jumping at time when creating boundaries. I am still investigating.

I have created a windows install for OCPN 4.1.427 & ocpn_draw_pi_0.3_0050. I have also uploaded msvrc120dll and msvcp120dll and the wxWidgets needed to run this version. Install OCPN, then the plugin then copy the msvc and wxWidgest file to the ocpn_draw_pi directory in plugins. It should then work. you will find these here:

https://www.dropbox.com/s/ijgppk7kws...win32.exe?dl=0
https://www.dropbox.com/s/lodjv26pv3...setup.exe?dl=0
https://www.dropbox.com/s/so0ed7lv5q...CR120.dll?dl=0
https://www.dropbox.com/s/c727ytbbjm...cp120.dll?dl=0
https://www.dropbox.com/sh/oh8nv2pj9...5SFaUHNJa?dl=0

Jon
__________________
jongough is offline   Reply With Quote
Old 21-05-2015, 05:47   #97
Registered User
 
rgleason's Avatar

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

Sent an email to you. It did not compile for me 2 errors. Perhaps my setup missing something?

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is offline   Reply With Quote
Old 21-05-2015, 05:50   #98
Registered User
 
rgleason's Avatar

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

Should I be copy widgets to ocpn_draw and msvrc...?
Seems like duplication. Could go in buildwin but pavel does not like binaries there.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is offline   Reply With Quote
Old 21-05-2015, 14:06   #99
Registered User

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

Rick,
The extra files currently go in the main OpenCPN directory. I don't like these either, but without them my build of OpenCPN does not run. It may be the way I am packaging the files in windows, but..... ocpn_draw_pi does not need these files.

Jon
__________________
jongough is offline   Reply With Quote
Old 23-05-2015, 02:41   #100
Registered User

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

Hi,
I have just put up 0.3_0100 of ocpn_draw_pi. This fixes the disappearing points in opengl and stops the random jumping of the page when creating a boundary. I have not yet created an install package for this, but I have tested it on Linux and Windows 7.

Jon
__________________
jongough is offline   Reply With Quote
Old 24-05-2015, 03:28   #101
Registered User

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

Hi,
I have now put up patch 0.3_0150 which highlights the path or point that has its properties open. For a path selected in pathmanager it should also be highlighted. The highlighting is in the form of a blinking icon (point) or blinking path.

Jon
__________________
jongough is offline   Reply With Quote
Old 25-05-2015, 06:47   #102
Registered User
 
rgleason's Avatar

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

Jon, I've been reconfiguring uninstalled Cmake and Poedit, and installed new versions. Managed to complete the install of VS Express 2013 for Windows Desktop after a dozen reboots and freezeups and finally installing from Windows updates an update to Express 2013. Now it works. Need to complete configuration.
__________________
rgleason is offline   Reply With Quote
Old 26-05-2015, 07:12   #103
Registered User
 
rgleason's Avatar

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

Pavel helped with the last few problems, its now running and with fresh git and compile of v4.1.427 and your plugin.. Just a first quick test, more later. The plugin works better particularly the boundary, all aspects. The points don't seem to show in the chart when first entered, but I need to test this more. Also there is some hangup when in the big heavy square mode (points) I can't get it back to drawing boundaries. This is after trying to enter points that don't seem to show up.

I need to test this more tonight.
__________________
rgleason is offline   Reply With Quote
Old 27-05-2015, 05:00   #104
Registered User
 
rgleason's Avatar

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

Its getting better Jon, thank you.
Compiled again last night and it worked much better, both boundary and points.
Have uploaded to OpenCPN File Thingie, under 4.1 PI Win directory.
Also uploaded to main directory most recent version of OpenCPN v4.1.427 for those who want to try it.
---
With boundaries the Right mouse escape ends the creation of a boundary and closes it. You are then able to insert, move and delete points on the boundary. You can also remove a point from the boundary and keep it and a point.

To start a new boundary you need to click the Ocpn_Draw icon again and right click to select "Boundary" or "Point" each time the icon will change to represent what is selected.

To edit a boundary or point.
1. Click on the Draw button. Hit escape. Then right click while hoovering over the boundary or point object you wish to modify.

This seems to be working well for me.
===

Is there a way to put these objects into a layer that we have created?
I think this tool is going to prove to be very useful.

OpenCPN Beta File Thingie rguser, rgpass
https://tgp-architects.com/files/
__________________
rgleason is offline   Reply With Quote
Old 27-05-2015, 05:24   #105
Registered User
 
rgleason's Avatar

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

Or perhaps a way to set the Layer the Draw objects should land in.
__________________

__________________
rgleason 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 02:27.


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.