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 05-06-2014, 16:51   #256
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Just found new changes in git for Climatology_pi. During Cmake --build . --config release found this warning.

Code:
..\src\ClimatologyConfigDialog.cpp(247): warning C4800: 'long' : forcing value
 to bool 'true' or 'false' (performance warning) [C:\o-plugin\climatology_pi\bui
ld\climatology_pi.vcxproj]

    1 Warning(s)
    0 Error(s)
rgleason is offline   Reply With Quote
Old 05-06-2014, 17:02   #257
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Climatology_pi has been updated as of June 5 EST 8pm

climatology_pi-0.8-win32.exe is located in the
C:\o-plugin\climatology_pi\build\_CPack_Packages\win32\ NSIS
folder.

This file contains the dll, the data subdirectory and a few files. It does not contain all the data files. Those will have to be loaded separately.
See the CL-DATA 10 7z file and uncompress and put in the data directory. please.

Find these files under File Thingie 2.5.7
rguser, rgpass under the 3.3.1731 folder.
rgleason is offline   Reply With Quote
Old 05-06-2014, 17:33   #258
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Since this is the Thread where I was trying to make packages I am going to post the solution that works for me.

To make Plugin Packages in Windows
=========

Developers documentation - Compiling Windows
Compiling - Windows | Official OpenCPN Homepage
Compiling - Windows | Official OpenCPN Homepage
Developers Manual, Compiling, Compiling Windows.

On this page go down to NSIS (Unicode) used to build the installation packages for OpenCPN and Plugins

Get it from Downloads - unsis - NSIS branch that supports Unicode. - Google Project Hosting
The NSIS Unicode 2.46 setup file is also included in the GIT repository -> ..\buildwin\NSIS_Unicode\nsis-2.46-Unicode-setup.exe
Direct download link: https://code.google.com/p/unsis/downloads/detail?name=nsis-2.46.3-Unicode-setup.exe&can=2&q=

Download and install it. Due to a "bug" in CMake, which only looks at "HKEY_LOCAL_MACHINE\SOFTWARE\NSIS" for the installation location of NSIS and the Unicode version adds its registry key in "HKEY_LOCAL_MACHINE\SOFTWARE\NSIS\Unicode", there is some registry tweaking needed.

Previously I had not installed this, so I had to do it and I also ran the Batch file mentioned in the Dev Docs that they say to run to make the registry tweaks.
So run that batch file.

Then add under Control Panel > System > Advanced System Settings > Environment Variables > System Variable > Variable = Path under Values add the the path to your NSIS programs EG: "C:\Program Files (x86)\NSIS\Unicode with a colon in front. Be careful with your editing here.

Then reboot.


======
Commands to make an Install Package

In the Command prompt
cd ..\o-plugin\climatology_pi\build
cmake ..
cmake --build .
cmake --build . --config release
cpart <-- this does the package! just "cpart"

If successful, you will find your packaged exe in this file
C:\o-plugin\climatology_pi\build\_CPack_Packages\win32\ NSIS

looking something like "climatology_pi-0.8-win32.exe"
rgleason is offline   Reply With Quote
Old 05-06-2014, 20:45   #259
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Climatology

Quote:
Originally Posted by rgleason View Post
If successful, you will find your packaged exe in this file
C:\o-plugin\climatology_pi\build\_CPack_Packages\win32\ NSIS

looking something like "climatology_pi-0.8-win32.exe"[/FONT]
Is there some reasoning for not packaging the data files? They should be there, but first you must extract them into the data directory (next to src) in the plugin directory. This would simplify the install, but maybe it's best separate? When I have multiple climatology datasets to choose from it they will have to be separate anyway.


Also.. could you post the notes you made on this process on the main site for other users to benefit?
seandepagnier is offline   Reply With Quote
Old 06-06-2014, 02:05   #260
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Sean I posted the Package process for windows in Sean's plugins thread and in Dev manual under compiling windows - sub page for plugins.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 06-06-2014, 02:08   #261
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Climatology

I'm just waiting to hear from someone that rick's installer worked. Then will post the update to the main site, because the version on there is very old now.
seandepagnier is offline   Reply With Quote
Old 06-06-2014, 04:47   #262
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Quote:
Is there some reasoning for not packaging the data files? They should be there, but first you must extract them into the data directory (next to src) in the plugin directory. This would simplify the install, but maybe it's best separate?
I just did not know better, still learning. Will do it the next time. I will be a bigger file but simpler install. For now, keeping it simple is better. When we get to different sized datasets, then we can worry about the choices. Maybe just have an exe installer for each type of dataset?

Did you notice my minor complaint that the installer always insists in creating an opencpn directory, even if you have directed it to a special install of opencpn like opencpn3.3.1731? It then makes a directory opencpn underneath that and puts the plugin in there, which is not correct.

This may happen with other plugins, ...don't know.

What I ended up doing was just deleting the OPENCPN at the end and it installed fine.
rgleason is offline   Reply With Quote
Old 23-06-2014, 18:21   #263
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Tonight after git pull weather_routing and successful cmake compiles and cpack,
did git clone for climatology_pi, then from a new build directory ran cmake .. and then cmake --build . and it came up with 17 errors. They look repetitive.
See attached please. Hope it is something simple. Thanks.
Attached Files
File Type: doc climatology_pi_compile_17_errors.doc (15.1 KB, 48 views)
rgleason is offline   Reply With Quote
Old 24-06-2014, 20:11   #264
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Just git pull climatology, seemed to be changed files.
compiled and it had complaints similar to the one above. Please See attached.
Attached Files
File Type: doc climatology_pi_compile_17_errors-again.doc (14.3 KB, 72 views)
rgleason is offline   Reply With Quote
Old 24-06-2014, 22:36   #265
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Climatology

Rick,

I have made an update. Hopefully now it compiles.
seandepagnier is offline   Reply With Quote
Old 25-06-2014, 06:57   #266
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Sean,
At first there were errors at cmake --build . and cmake --build . --config release.
Then after copying version 3.3.1731 opencpn.lib file into ..climatology_pi/build/ it compiled properly. There was one warning, see below.

Code:
Build succeeded.

"C:\o-plugin\climatology_pi\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\o-plugin\climatology_pi\build\climatology_pi.vcxproj" (default target) (4) -
>
(ClCompile target) ->
  ..\src\ClimatologyConfigDialog.cpp(260): warning C4800: 'long' : forcing value
 to bool 'true' or 'false' (performance warning) [C:\o-plugin\climatology_pi\bui
ld\climatology_pi.vcxproj]

    1 Warning(s)
    0 Error(s)
C:\o-plugin\climatology_pi\build>
I then used CPACK command to make an installer exe, with the data all setup in the climatology_pi folder under build, so the installer is 5+ plus but includes the data.

When execute the exe under advanced install, I still have to take off the Opencpn at the end!

Will test later.
rgleason is offline   Reply With Quote
Old 25-06-2014, 07:19   #267
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Climatology_pi works again! The sea depth isobar worked fine when I checked it.

Note: People using the plugin who insist on obsure things like contours for such things as sea depth or very close seatemp contours, must remember to minimize then maximize the program to get it to rewrite the screen, if the isobar progress bar seems to freeze. The plugin is very much better in this respect and I have not had a crash yet, I just use minimize program and maximize so the screen rewrites and the isobar progress bar has completed after I it maximize.

Thank you Sean. Now I need to get weather_routing going to do some tests.
rgleason is offline   Reply With Quote
Old 25-06-2014, 23:12   #268
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Climatology

Quote:
Originally Posted by rgleason View Post
Climatology_pi works again! The sea depth isobar worked fine when I checked it.

Note: People using the plugin who insist on obsure things like contours for such things as sea depth or very close seatemp contours, must remember to minimize then maximize the program to get it to rewrite the screen, if the isobar progress bar seems to freeze. The plugin is very much better in this respect and I have not had a crash yet, I just use minimize program and maximize so the screen rewrites and the isobar progress bar has completed after I it maximize.

Thank you Sean. Now I need to get weather_routing going to do some tests.
Do you have an installer program I can put on sourceforge?
seandepagnier is offline   Reply With Quote
Old 26-06-2014, 03:20   #269
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Yes, Can I upload it to sourcefprge?

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 26-06-2014, 06:14   #270
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,620
Images: 2
Re: Climatology

Climatology_pi works again! The sea depth isobar worked fine when I checked it.

Quote:
Note: People using the plugin who insist on obsure things like contours for such things as sea depth or very close seatemp contours, must remember to minimize then maximize the program to get it to rewrite the screen, if the isobar progress bar seems to freeze. The plugin is very much better in this respect and I have not had a crash yet, I just use minimize program and maximize so the screen rewrites and the isobar progress bar has completed after I it maximize.
Also DO NOT set Isobars on FINE, choose COARSE or NORMAL, unless you want to wait. NORMAL works and looks "fine".
rgleason is offline   Reply With Quote
Reply

Tags
paracelle

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Advertise Here


All times are GMT -7. The time now is 07:25.


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.