Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 06-03-2018, 05:04   #106
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by Rasbats View Post
Rasbats version 1.8 implements the cross-compiling suggested by SaltyPaws. Tested on Windows and Ubuntu 16.04.

https://github.com/Rasbats/calculator_pi/releases

Still working on the translations problem.

Mike
Great!

FYI Stelian sent me the following from my If win then xxx elseif linux questn. Also Wally was very helpful on this issue https://github.com/SaltyPaws/calculator_pi/issues/13

Quote:
Hi Rick, You don't want to do this at runtime but at compile time, using conditional primitives (#ifdef...) So I would code something like:

#if defined(__LINUX__) ...
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) ...
#elif defined(__WXOSX__) ... (not really mac but wxwindows running on mac, maybe there is a better way
#else
#error Unknown platform
#endif Stelian.
rgleason is offline   Reply With Quote
Old 06-03-2018, 05:34   #107
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,141
Re: Calculator_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by Rasbats View Post
The translation problem was because of the files being referenced in POTFILES.in. Hope I have not missed any important ones.

My 'calculator_pi.pot' file on GitHub should now be useable. Not pretty!
Mike
Crowdin's loaded with the new POT file. Existing translations so far in a PR. I'll schedule new Crowdin load in two weeks. Pls advice if needed earlier.
Håkan
Hakan is offline   Reply With Quote
Old 06-03-2018, 05:46   #108
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
Re: Calculator_pi New Finished Plugin for OpenCPN

Hello All,

Pfuuuu .... What a disaster .... I just opened the crowdin. I saw that there is now 97% of the items to translate. .... But in reality, in the new crowdin language file, there are only 14 items ....

In reality, another nightmare is emerging. A large part of the existing items have disappeared ... And all their translations with ....



Gilletarom
Gilletarom is offline   Reply With Quote
Old 06-03-2018, 07:54   #109
Registered User

Join Date: May 2012
Posts: 1,199
Re: Calculator_pi New Finished Plugin for OpenCPN

Is it better to wait until Walbert has updated the SaltyPaws code and use his POT file?

Mike
Rasbats is offline   Reply With Quote
Old 06-03-2018, 09:25   #110
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
Re: Calculator_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by Rasbats View Post
Is it better to wait until Walbert has updated the SaltyPaws code and use his POT file?

Mike
If necessary, this is a good idea. Gilletarom
Gilletarom is offline   Reply With Quote
Old 06-03-2018, 14:59   #111
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,141
Re: Calculator_pi New Finished Plugin for OpenCPN

Maybe I don't understand what's going on.....Are there two calculator_pi??
If so, why the same naming?
Hakan is offline   Reply With Quote
Old 06-03-2018, 15:46   #112
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Hakan,

Sorry, history
  • SaltyPaws main repository.
  • Rick compiled it for windows for a long time.
  • SaltyPaws improved it but then it would not compile under Windows.
  • Rasbats fixed it for windows on his repos.
  • We are now working on melding the two versions into one with a cross compiling version.
  • SaltyPaws just needs to accept Rasbats PR.
That is where we are now.

Hope that helps.
rgleason is offline   Reply With Quote
Old 07-03-2018, 00:48   #113
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
Re: Calculator_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by rgleason View Post
Hakan,
Sorry, history
  • SaltyPaws main repository.
  • Rick compiled it for windows for a long time.
  • SaltyPaws improved it but then it would not compile under Windows.
  • Rasbats fixed it for windows on his repos.
  • We are now working on melding the two versions into one with a cross compiling version.
  • SaltyPaws just needs to accept Rasbats PR.
That is where we are now.
Hope that helps.
It's just a problem of patience on our part. It is obvious that it is enough if it allows to take the time to make a single version of the plugin.

Gilletarom
Gilletarom is offline   Reply With Quote
Old 07-03-2018, 21:32   #114
Registered User

Join Date: Feb 2012
Location: Austria
Posts: 320
Re: Calculator_pi New Finished Plugin for OpenCPN

downloaded latest version calculator-pi 1.8 yesterday.
W10, ocpn 4.2.8 : always crashes e.g hull speed etc

Also, don't understand why we need 2 icons in the toolbar for this pi. seems overkill to me.
skipperearly is offline   Reply With Quote
Old 07-03-2018, 23:31   #115
Registered User

Join Date: Feb 2012
Location: Austria
Posts: 320
Re: Calculator_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by skipperearly View Post
downloaded latest version calculator-pi 1.8 yesterday.
W10, ocpn 4.2.8 : always crashes e.g hull speed etc

Also, don't understand why we need 2 icons in the toolbar for this pi. seems overkill to me.
did some more testing: crash is when preferences are set to precise - thousand seperator. Does not crash with precise (default)
skipperearly is offline   Reply With Quote
Old 08-03-2018, 00:14   #116
Registered User

Join Date: May 2012
Posts: 1,199
Re: Calculator_pi New Finished Plugin for OpenCPN

skipperearly,

Thanks for the report. I have deleted the release details for the 1.8 version. 1.7 has exactly the same functions/calculations and works on 4.8.2 on my W8.1 machine. Investigating the problem.

Mike
Rasbats is offline   Reply With Quote
Old 08-03-2018, 01:01   #117
Registered User

Join Date: May 2012
Posts: 1,199
Re: Calculator_pi New Finished Plugin for OpenCPN

Problem was started by a pull request. I have reverted that request. Source code should now be good for Win/Lin.

Mike
Rasbats is offline   Reply With Quote
Old 08-03-2018, 01:31   #118
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,982
Re: Calculator_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by Rasbats View Post
skipperearly,

Thanks for the report. I have deleted the release details for the 1.8 version. 1.7 has exactly the same functions/calculations and works on 4.8.2 on my W8.1 machine. Investigating the problem.

Mike
This is an old fault that I had already noticed.
Gilletarom is offline   Reply With Quote
Old 08-03-2018, 05:26   #119
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

Using Rasbat's most recent cross compile code, compiling it, running with v4.8.2 under Win10. My compile available here
This work fine although there are some functions that result in an error. See Issues

My compile of Rasbats PR to SaltyPaws for Cross Compile complete the Hull Speed calc. see below.

The second Icon is very useful for controlling the Function Menu show/hide. Saves screen space. I like it. However you can control its appearance in both the menu and toolbar, from the preferenes.

SkipperEarly is this on Linux?

"did some more testing: crash is when preferences are set to precise - thousand seperator. Does not crash with precise (default)"

Interesting, there were a few changes for precision, by Wally in the code.
Attached Thumbnails
Click image for larger version

Name:	Screenshot (100).jpg
Views:	56
Size:	430.2 KB
ID:	165683  
rgleason is offline   Reply With Quote
Old 08-03-2018, 05:45   #120
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: Calculator_pi New Finished Plugin for OpenCPN

I can confirm skipperearly's bug. Selecting thousands in the Preference window causes calculations to crash Opencpn.

Mike, check the recent changes made to precision, I think there was a change which came from SaltyPaws repos. #16 see line 710 (check for others?)
rgleason is offline   Reply With Quote
Reply

Tags
opencpn


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


Advertise Here


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


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.