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 12-09-2015, 05:04   #781
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 108
Re: Weather Routing

wrdc.cpp didn't build on OSX due to missing GL/glu.h - I fixed it by copying the version from OpenCPN's sources to src/GL. Didn't we fix this previously?

Quote:
[ 82%] Building CXX object CMakeFiles/weather_routing_pi.dir/src/wrdc.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DCLIMATOLOGY_MAX_MAJOR=1 -DCLIMATOLOGY_MAX_MINOR=1 -DCLIMATOLOGY_MIN_MAJOR=0 -DCLIMATOLOGY_MIN_MINOR=10 -DTIXML_USE_STL -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX_COCOA__ -D__WXOSX__ -DocpnUSE_GL -Dweather_routing_pi_EXPORTS -DwxDEBUG_LEVEL=0 -I/usr/local/include/wx-3.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.7 -fPIC -I/Users/lance/src/plugins/weather_routing_pi/include -I/Users/lance/src/plugins/weather_routing_pi/src -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks -I/Users/lance/src/plugins/weather_routing_pi/src/tinyxml -Wall -Wno-unused-result -g -fexceptions -o CMakeFiles/weather_routing_pi.dir/src/wrdc.cpp.o -c /Users/lance/src/plugins/weather_routing_pi/src/wrdc.cpp
/Users/lance/src/plugins/weather_routing_pi/src/wrdc.cpp:45:18: fatal error: 'GL/glu.h' file not found
#include <GL/glu.h>
^
1 error generated.
make[3]: *** [CMakeFiles/weather_routing_pi.dir/src/wrdc.cpp.o] Error 1
make[2]: *** [CMakeFiles/weather_routing_pi.dir/all] Error 2
make[1]: *** [CMakeFiles/create-pkg.dir/rule] Error 2
make: *** [create-pkg] Error 2
fogmachine is offline   Reply With Quote
Old 12-09-2015, 06:22   #782
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: Weather Routing

I think this is fixed for windows but perhaps not for OSX. Did Peter (ptup) create the OSX ? Perhaps he can fix it. Or gerhard (carcode)
rgleason is offline   Reply With Quote
Old 12-09-2015, 06:34   #783
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Weather Routing

Quote:
Originally Posted by rgleason View Post
I think this is fixed for windows but perhaps not for OSX. Did Peter (ptup) create the OSX ? Perhaps he can fix it. Or gerhard (carcode)
Rick
When I regard the git there is no glu.h file. Look here: https://github.com/seandepagnier/wea.../master/src/GL
So the compiler is correct claiming about a missing include file.

Gerhard
CarCode is online now   Reply With Quote
Old 12-09-2015, 08:17   #784
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 108
Re: Weather Routing

In June I made two pull requests to Sean, one for this problem and the other to do something semi-smart when the GRIB wind is stronger than what's in a boat's polar model. I think Peter took the changes into his repo but Sean didn't.
fogmachine is offline   Reply With Quote
Old 12-09-2015, 09:03   #785
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: Weather Routing

Yes, fogmachine is correct I believe,
however I seem to have
C:\Users\Rick\Documents\GitHub\o-plugin\s-weather_routing_pi\src\GL\
dated 9/8/2015 with gl.h and glext.h also dated 9/8/2015.

Not sure of the process for OSX, but I did a git pull. Does fogmachine want to make sure his git local repos is current?
rgleason is offline   Reply With Quote
Old 12-09-2015, 09:07   #786
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: Weather Routing

PS: Gerhard I went to your link and I found the two files gl.h and glext.h and for some reason it says "14 days ago", however it says "Correct build for wxwidgets 2.8" which was done for Hakan using older MSVC++ I believe. I am still trying to figure out the wonders of git, so maybe I am looking in wrong place? Is something still amiss?
rgleason is offline   Reply With Quote
Old 12-09-2015, 09:08   #787
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 108
Re: Weather Routing

I pulled from Sean's repository since it's his plugin. I have it in my own repo, but don't keep it up-to-date with Sean's changes. Just want it to work for other Mac users.
fogmachine is offline   Reply With Quote
Old 12-09-2015, 09:11   #788
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: Weather Routing

@fog Yes entirely agree, I am sure Sean will fix it. Thanks for making this clearer. " Just want it to work for other Mac users. "

Weather_routing Manual needs considerably more attention insofar as documentation. I am wondering if we could jointly get this augmented.
rgleason is offline   Reply With Quote
Old 12-09-2015, 09:37   #789
Registered User

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

Quote:
Originally Posted by fogmachine View Post
In June I made two pull requests to Sean, one for this problem and the other to do something semi-smart when the GRIB wind is stronger than what's in a boat's polar model. I think Peter took the changes into his repo but Sean didn't.
I didn't merge them because they contain conflicts that haven't been resolved. I didn't try to resolve them myself because the pull request for the wind speed thing also seems to contain all sorts of other stuff so I don't understand why they aren't separate pull requests.

I believe it should compile now because I added glu.h, but really it's ridiculous that it's needed here at all. If you could try deleting glu.h and see if it can compile now (with latest changes) please let me know so I can remove glu.h again.
seandepagnier is offline   Reply With Quote
Old 12-09-2015, 09:40   #790
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Weather Routing

Quote:
Originally Posted by rgleason View Post
PS: Gerhard I went to your link and I found the two files gl.h and glext.h and for some reason it says "14 days ago", however it says "Correct build for wxwidgets 2.8" which was done for Hakan using older MSVC++ I believe. I am still trying to figure out the wonders of git, so maybe I am looking in wrong place? Is something still amiss?
Rick
Perhaps you want to learn a little bit.
You can read in the file in question (wrdc.cpp) this:
Code:
#ifdef __WXMSW__
    #include "GL/gl.h"            // local copy for Windows
    #include <GL/glu.h>
#else
The error of the compiler was: "fatal error: 'GL/glu.h' file not found
#include <GL/glu.h>"
The git has only gl.h and glext.h but no glu.h.
Hope you can understand.

Gerhard
CarCode is online now   Reply With Quote
Old 12-09-2015, 09:46   #791
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: Weather Routing

Whoops. Thankyou Gerhard, you are being gentle.
"wrdc.cpp didn't build on OSX due to missing GL/glu.h"
rgleason is offline   Reply With Quote
Old 13-09-2015, 04:13   #792
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 108
Re: Weather Routing

Quote:
Originally Posted by boat_alexandra View Post
I didn't merge them because they contain conflicts that haven't been resolved. I didn't try to resolve them myself because the pull request for the wind speed thing also seems to contain all sorts of other stuff so I don't understand why they aren't separate pull requests.

I believe it should compile now because I added glu.h, but really it's ridiculous that it's needed here at all. If you could try deleting glu.h and see if it can compile now (with latest changes) please let me know so I can remove glu.h again.
Happy to send just the polar change - it was something like 10 lines of code.
fogmachine is offline   Reply With Quote
Old 13-09-2015, 04:29   #793
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 108
Re: Weather Routing

Sean, yes wrdc.cpp now compiles w/o src/GL/glu.h on OSX.
fogmachine is offline   Reply With Quote
Old 14-09-2015, 01:41   #794
Registered User

Join Date: Oct 2012
Posts: 49
Re: Weather Routing

Hi Folks,

started using Weather Routing few days ago. Looks I am getting along with it quite ok. There is however one question, I cannot find an answer to. When the routing is done, I see various part circles (blue, green, light green etc.). Can someone please explain what those circles mean?

Many thanks
Klaus
klaus53123 is offline   Reply With Quote
Old 14-09-2015, 05:36   #795
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,630
Images: 2
Re: Weather Routing

The circles represent similar times intervals of sailing. Called isochrones. If you set config to 1 hour it is 1 hour sailing between lines.
The blue and green ones are using the grib file and I believe the lighter ones are using climatology. Try turning one of in config and compute again to see what happens.
rgleason is offline   Reply With Quote
Reply

Tags
paracelle, weather


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
Yachts in transit - new system for weather, blogging, diving, walking tracking sail-fish Navigation 13 22-05-2016 15:57
SSB Weather info VirtualVagabond General Sailing Forum 8 15-01-2016 08:40
Optimum SSB/satphone combo setup tulsag Marine Electronics 33 30-04-2012 07:19
MaxSea Weather Routing svrevelations Weather | Gear, Reports and Resources 12 10-10-2011 01:08
Sea Myths and Sayings Mariners The Sailor's Confessional 5 29-09-2011 13:51

Advertise Here


All times are GMT -7. The time now is 02:27.


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.