|
|
14-02-2012, 04:54
|
#31
|
Registered User
Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
|
Re: KML Overlay Plugin
Pavel,
Thanks for the build.
This is a very early version. Objects are rendered even if they're out of the viewport. There's no optimization currently. Some point are computed to the left outside of the display while others are on the right, hat's why there's a straight line in between. I'll have to figure the geometric algorithm to find if the object crosses the display or not to figure if I render it or not. There are probably objects that crosses the -180/+180 line that are rendered incorrectly.
There's still a lot of work. I'll probably start with styles, to handle color and transparency. Then GroundOverlay. I'm still thinking about the possible need of expanded selection of objects inside kml (for now each kml file is either visible or not, you can't toggle objects one by one. but I already handle visibility parameter so if an object is described as hidden, it's not drawn)
Comments/suggestions/patches welcome ;-)
|
|
|
14-02-2012, 05:26
|
#32
|
Registered User
Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,466
|
Re: KML Overlay Plugin
Quote:
Originally Posted by nohal
|
still no luck on XP
Code:
08:17:41: PlugInManager: Loading PlugIn: C:\Program Files\OpenCPN\plugins/kmloverlay_v15_vs2008_pi.dll
08:17:41: Error: Failed to load shared library 'C:\Program Files\OpenCPN\plugins/kmloverlay_v15_vs2008_pi.dll' (error 14001: this application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.)
08:17:41: PlugInManager: Cannot load library: C:\Program Files\OpenCPN\plugins/kmloverlay_v15_vs2008_pi.dll
|
|
|
14-02-2012, 05:37
|
#33
|
Registered User
Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
|
Re: KML Overlay Plugin
LeaseOnLife,
Do you use straight 2.5.0 release from opencpn.org or did you compile it yourself?
|
|
|
14-02-2012, 05:39
|
#34
|
Registered User
Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,466
|
Re: KML Overlay Plugin
Quote:
Originally Posted by SethDart
LeaseOnLife,
Do you use straight 2.5.0 release from opencpn.org or did you compile it yourself?
|
2.5.0 from opencpn.org
|
|
|
14-02-2012, 08:17
|
#35
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
|
Re: KML Overlay Plugin
LeaseOnLife...
Weird, very weird. I've just tried it on my little Atom XP machine and it runs OK. Didn't you forget to copy libexpat.dll to the OpenCPN program directory? That way I was able to make the loading fail but with a different error (126: module not found)
Out of ideas
Pavel
|
|
|
14-02-2012, 08:26
|
#36
|
Registered User
Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,466
|
Re: KML Overlay Plugin
Quote:
Originally Posted by nohal
LeaseOnLife...
Didn't you forget to copy libexpat.dll to the OpenCPN program directory?
|
libexpat is where it should be....
If nobody else has this problem, then don't focus on it... Waiting for a 2.6.x version with ChuckSK patch for rendering CM93 on the ICW without crashing...
|
|
|
14-02-2012, 08:45
|
#37
|
Registered User
Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
|
Re: KML Overlay Plugin
Do you know who built official OpenCPN windows package? Is it you Pavel?
We'll have to figure exactly which options were enabled to reproduce exactly the same for our build environments.
When I faced these errors, replacing C:\Program Files\OpenCPN\*.dll by those I built with wxWidgets made the crash disapear. To me it's a wxWidgets compatibility problem. OpenCPN ran fine with both... - scratching head -
|
|
|
14-02-2012, 08:51
|
#38
|
Registered User
Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
|
Re: KML Overlay Plugin
Nope, I suppose Dave built the package - I'm building just the 2.6 betas.
Very nice specimen of a DLL hell
Pavel
|
|
|
15-02-2012, 04:21
|
#39
|
Registered User
Join Date: Jan 2012
Location: Portsmouth
Boat: Bavaria 38 Ocean
Posts: 12
|
Re: KML Overlay Plugin
Quote:
Originally Posted by LeaseOnLife
libexpat is where it should be....
If nobody else has this problem, then don't focus on it.
|
I've got exactly the same problem with XP - see my post #24.
I wonder if it is anything to do with trying 2.6.1310 and then removing it before reloading 2.5.0?
It works fine on W7 on my desktop machine.
|
|
|
15-02-2012, 07:17
|
#40
|
Registered User
Join Date: Nov 2011
Location: Istanbul
Boat: Steel, Regina, Holland, 8.70
Posts: 95
|
Re: KML Overlay Plugin
I put "kmloverlay_pi.dll" in plugin folder and "libexpat" in root folder (proramfiles/opencpn2.50/Win7). But when I open the toolbox I see nothing changed in my plugin list, no KMLOverlay plugin seen between the other plugins.
|
|
|
16-02-2012, 06:14
|
#41
|
Registered User
Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
|
Re: KML Overlay Plugin
Quote:
Originally Posted by SethDart
|
Ok...just build it. Nothing to be found in the plugin tab.....sorry. Perhaps some further instructions?
/ch
|
|
|
16-02-2012, 10:17
|
#42
|
Registered User
Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
|
Re: KML Overlay Plugin
Quote:
Originally Posted by sailias
Ok...just build it. Nothing to be found in the plugin tab.....sorry. Perhaps some further instructions?
/ch
|
Can you check the logs to find any relevant info?
Are you building stable (2.5.0) or latest beta (2.6.*) ? Platform (windows, linux -which?-, mac)?
If you build for stable, you must revert one commit from the plugin source (the one that make necessary changes for the plugin to work with beta)
$ git revert fbfe7093e574111aebecf218820d229412b17749
|
|
|
16-02-2012, 11:28
|
#43
|
Registered User
Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
|
Re: KML Overlay Plugin
Used the referenced source from here: https://github.com/OpenCPN/OpenCPN/tree/KMLOverlay and build on Ubuntu 11.10 turns out this source produces a beta 2.6.* build. The package (zip file) is identified as OpenCPN-OpenCPN-0c3a96a but there is noting in the logs. My thinking here is that this is the wrong source, yet the update entry for kml overlay is present. strange. Nothing in the logs.
/ch
|
|
|
16-02-2012, 11:47
|
#44
|
Registered User
Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
|
Re: KML Overlay Plugin
OK checked the source and its the wrong one. Nothing there. My error but used the link provided. Can you point me to the correct source base pls so I can run it again.
/ch
|
|
|
16-02-2012, 11:56
|
#45
|
Registered User
Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
|
Re: KML Overlay Plugin
Ok...sorry to pester. I should add I downloaded the zip file from the referenced page which I guess links to the latest beta and the kml branch. If someone would be so kind and send me the git syntax to grab the appropriate source I would be happy to test it. So far my attempts with git to grab it have not been successful...lack of experience with git...
Best regards and thanks
/ch
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|
|