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 27-09-2017, 07:41   #436
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

I found I had to copy opencpn\build\debug\gsshs and opencpn\build\uidata up one level to opencpn\build because that is where MSVC++ expected them.
rgleason is offline   Reply With Quote
Old 27-09-2017, 07:55   #437
Registered User

Join Date: Aug 2017
Posts: 121
Re: Celestial Navigation Plugin Redux

Quote:
Originally Posted by rgleason View Post
I found I had to copy opencpn\build\debug\gsshs and opencpn\build\uidata up one level to opencpn\build because that is where MSVC++ expected them.
Yes, that is also where i put them.
Nicor is offline   Reply With Quote
Old 27-09-2017, 08:31   #438
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

I am trying to debug Celestial_Navigation_pi

To debug Celestial_Navigation_pi, I compiled the Debug version in "Standalone" format, and then copied the debug version of the dll into the MSVC++ github OpenCPN\build\plugins\ directory and also copied the celestial_navigation_pi\data into there too.

I will attach the Output from this to an Issue in the Github repos for Cel_Nav (Sean's).
rgleason is offline   Reply With Quote
Old 27-09-2017, 08:38   #439
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

Nicor,
If you are using a machine on which you have your standard Opencpn setup for navigation, I think it would be a good idea to copy your opencpn.ini in ProgramData\OpenCPN to another filename like opencpn-Ricks-Nav-Version.ini.

Also I have taken the opencpn.MSVC.ini I am using and simplified it so there are much much fewer charts etc.
When I go back to real navigation I'll
1. Copy Opencpn.ini over to my opencpn.MSVC.ini
2. Copy opencpn-Ricks-Nav-Version.ini over OpenCPN.ini.
rgleason is offline   Reply With Quote
Old 27-09-2017, 08:43   #440
Registered User

Join Date: Aug 2017
Posts: 121
Re: Celestial Navigation Plugin Redux

Quote:
Originally Posted by rgleason View Post
Nicor,
If you are using a machine on which you have your standard Opencpn setup for navigation, I think it would be a good idea to copy your opencpn.ini in ProgramData\OpenCPN to another filename like opencpn-Ricks-Nav-Version.ini.

Also I have taken the opencpn.MSVC.ini I am using and simplified it so there are much much fewer charts etc.
When I go back to real navigation I'll
1. Copy Opencpn.ini over to my opencpn.MSVC.ini
2. Copy opencpn-Ricks-Nav-Version.ini over OpenCPN.ini.
Yes it is and i was thinking of doing that, just didn't do it yesterday.
At least it proved that the debug was somewhat working like it should.

Don't have time to do anything more with it right now.
Behind on a web site build for a client.
Maybe this evening.
Nicor is offline   Reply With Quote
Old 27-09-2017, 13:20   #441
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

@Nicor - I completely understand.

Others -
1. Can someone please advise if Cel_Nav runs properly in Linux?
2. How and what Breakpoints should I use to isolate the problems in Celestial_Navigation? I have never done this, but have tried it twice. I picked "RenderOverlayAll" as a breakpoint and it put breakpoints throughout all of OpenCPN!
3. I only want to put breakpoints in a certain plugin, how do I do that?
4. Also where/what types/kinds of breakpoints make sense to use?
5. Are there any ways of asking for a breakpoint in the code itself?
rgleason is offline   Reply With Quote
Old 28-09-2017, 07:31   #442
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Celestial Navigation Plugin Redux

Quote:
Originally Posted by rgleason View Post
1. Can someone please advise if Cel_Nav runs properly in Linux?
It seems to work just fine here (I compile from source)...
stelian is offline   Reply With Quote
Old 28-09-2017, 08:09   #443
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

Thank you Stelian,
For Windows it compiles for both release and debug and provides dll's.
In release version, it bombs Opencpn as soon as I touch the plugin icon.
In debug version MSVC++, it just starts creating a very big output file and then the instance of OpenCPN disappears. There are some output files attached here.
https://github.com/seandepagnier/cel...n_pi/issues/18

Do you know if there are some ways to see if the data files are being read properly in Windows?
How would you Debug this problem?
rgleason is offline   Reply With Quote
Old 28-09-2017, 08:09   #444
Registered User

Join Date: Feb 2011
Posts: 1,116
Re: Celestial Navigation Plugin Redux

Why does it stay transparent when you open the plugins?
Bye
P_Dub is offline   Reply With Quote
Old 28-09-2017, 08:46   #445
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

P_dub, you are not using the updated version, are you? We are trying to debug the updated version and can't get it running for windows, so your experience is not germane, unfortunately.

In thinking about this problem a little more, isn't it most likely that the relatively recent code changes are not compatible with Windows, but are compatible with Linux. I have gone through and checked the code changes between sean's repos and Povl's repository and they are the same. How would I check to see if each change is compatible with windows?
rgleason is offline   Reply With Quote
Old 28-09-2017, 08:54   #446
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Celestial Navigation Plugin Redux

Quote:
Originally Posted by P_Dub View Post
Why does it stay transparent when you open the plugins?
Bye
Yeah, I also find this disturbing, so I commented out line 113 in CelestialNavigationDialog.cpp:

// SetTransparent(128);
stelian is offline   Reply With Quote
Old 28-09-2017, 08:58   #447
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Celestial Navigation Plugin Redux

Quote:
Originally Posted by rgleason View Post
Thank you Stelian,
For Windows it compiles for both release and debug and provides dll's.
In release version, it bombs Opencpn as soon as I touch the plugin icon.
In debug version MSVC++, it just starts creating a very big output file and then the instance of OpenCPN disappears. There are some output files attached here.
https://github.com/seandepagnier/cel...n_pi/issues/18

Do you know if there are some ways to see if the data files are being read properly in Windows?
How would you Debug this problem?
I'm sorry but I cannot help with Windows, last time I compiled something on Windows was in Turbo C++ 3.0 running on Windows 3.11. Yeah, I'm getting old.
stelian is offline   Reply With Quote
Old 28-09-2017, 09:51   #448
Registered User

Join Date: Feb 2011
Posts: 1,116
Re: Celestial Navigation Plugin Redux

I am using the version Celestial_navigation-pi2.0-win32.exe dating from 2017-03-12. Your last version does not work in windows 10.
Regards.
P_Dub is offline   Reply With Quote
Old 28-09-2017, 11:18   #449
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

P_dub that version is not as accurate and if the new version were to work in Windows, would be the better choice. That is why I am trying to determine what the bug is.

Stelian, you've been a great help isolating the issue. And linux is not ab old persons OS so I highly doubt you can be considered "old". Just keep on truckin!
rgleason is offline   Reply With Quote
Old 28-09-2017, 16:45   #450
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: Celestial Navigation Plugin Redux

P_Dub
Quote:
I am using the version Celestial_navigation-pi2.0-win32.exe dating from 2017-03-12. Your last version does not work in windows 10.
Regards.
I cannot get celestial_navigation_pi-2.0-win32.exe (version 2.0) downloaded from the https://opencpn.org/OpenCPN/plugins/celestialnav.html working in Opencpn v4.8.0, but it should work. Opencpn fails with the "opencpn.exe" has failed and windows starts checking...

P_dub what versions of Opencpn and Cel_Nav are you using again? Can you check to make sure of the version numbers? And can you check to make sure that at least two fixes can be entered? And also advise on details if it fails, please. Thanks so much.
rgleason is offline   Reply With Quote
Reply

Tags
celestial navigation, navigation


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
Logbook Konni for OpenCPN konni OpenCPN 1128 15-05-2022 11:25
Google Earth Plugin r.fairman OpenCPN 445 29-04-2020 10:11
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 12:48.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.