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 Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Old 26-02-2012, 17:25   #61
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: KML Overlay Plugin

Seth, they call it Windows
because after trying to get something to work on it,
a person wants one to jump out of.....
HappySeagull is offline   Reply With Quote
Old 05-03-2012, 02:52   #62
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: KML Overlay Plugin

hello SethDart,

I tried your latest version of the kmz plugin. It is not yet very practical but it works correctly.

But why is it that transparency is resolved in GE. There are two images displayed simultaneously by OpenCPN. The image from GE and the map displayed by OpenCPN. Would it be possible not to implement transparency in GE and implement a transparent OpenCPN?

This was, to make it work, I loaded and installed your new version of OpenCPN-260-1310 .... which takes the place of the old version.

And, it's not a good thing. Other plugins under development no longer work. Especially those that develop Konni (logbook-Konni and FindIt). Ideally, you develop, temporarily, to do your testing, as did Pjotr​​, a version of "260-1310-S" which would not take the place of the normal version.

Best regards, amicalement.


Gilletarom

I enclose a polygon showing the area of ​​Lemmer, a port of the Friese, in North Holland
Attached Files
File Type: kmz Polygone_Lemmer_Friese_Hollande_4.kmz (56.7 KB, 74 views)
Gilletarom is offline   Reply With Quote
Old 31-03-2012, 19:47   #63
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: KML Overlay Plugin

I've uploaded updated source with changes to work with latest OpenCPN beta. No more need for any core (or API) changes for the plugin to work.

Warning: transparency only works with OpenGL enabled.

I'll provide a .dll in a few hours after some sleep.
SethDart is offline   Reply With Quote
Old 02-04-2012, 03:24   #64
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: KML Overlay Plugin

I just uploaded the latest version here http://je.onfray.fr/dl/kmloverlay_pi.dll
I works with stock beta, no more need for any core changes.

PS: This plugin also require this dll in opencpn root (C:\Program Files\OpenCPN\)
http://libkml.googlecode.com/svn/tag...2/libexpat.dll

SethDart is offline   Reply With Quote
Old 02-04-2012, 05:16   #65
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,469
Re: KML Overlay Plugin

It's called "Whac-A-Mole"....
Whac-A-Mole - Wikipedia, the free encyclopedia

Code:
07:51:06: PlugInManager: Loading PlugIn: C:\Program Files\OpenCPN\plugins/kmloverlay_pi.dll
07:51:06: Error: Failed to load shared library 'C:\Program Files\OpenCPN\plugins/kmloverlay_pi.dll' (error 14001: this application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.)
07:51:06:    PlugInManager: Cannot load library: C:\Program Files\OpenCPN\plugins/kmloverlay_pi.dll
XP-SP2, OCPN 2.6.1524, libexpat.dll in C:\Program Files\OpenCPN

Damn, I REALLY want this to work.

Dirk
LeaseOnLife is offline   Reply With Quote
Old 02-04-2012, 07:45   #66
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: KML Overlay Plugin

Can you tell me what's in the even logs? See this for some directions:
Diagnosing SideBySide failures - Junfeng Zhang's Windows Programming Notes - Site Home - MSDN Blogs

Thanks
SethDart is offline   Reply With Quote
Old 02-04-2012, 07:54   #67
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,469
Re: KML Overlay Plugin

I cleared all MS event logs, started opencpn, and get three entries in the system log, source: SideBySide

Code:
Event Type:    Error
Event Source:    SideBySide
Event Category:    None
Event ID:    32
Date:        4/2/2012
Time:        10:54:13
User:        N/A
Computer:    IX260
Description:
Dependent Assembly Microsoft.VC90.DebugCRT could not be found and Last Error was The referenced assembly is not installed on your system.


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Code:
Event Type:    Error
Event Source:    SideBySide
Event Category:    None
Event ID:    59
Date:        4/2/2012
Time:        10:54:13
User:        N/A
Computer:    IX260
Description:
Resolve Partial Assembly failed for Microsoft.VC90.DebugCRT. Reference error message: The referenced assembly is not installed on your system.
.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Code:
Event Type:    Error
Event Source:    SideBySide
Event Category:    None
Event ID:    59
Date:        4/2/2012
Time:        10:54:13
User:        N/A
Computer:    IX260
Description:
Generate Activation Context failed for C:\Program Files\OpenCPN\plugins\kmloverlay_pi.dll. Reference error message: The operation completed successfully.
.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
For the uneducated me, it looks like I need some debug-tools installed. or, you compile the plug-in without debugging enabled ?



Dirk

Edit: Added screenshot for the installed C++ redist-packages
Attached Thumbnails
Click image for larger version

Name:	vc-redist-FDL.jpg
Views:	191
Size:	23.5 KB
ID:	39405  
LeaseOnLife is offline   Reply With Quote
Old 02-04-2012, 08:56   #68
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: KML Overlay Plugin

That means some of the libs I'm using in my plugin were built in debug mode. I'll try to recompile everything from scratch... or could it be libexpat?
SethDart is offline   Reply With Quote
Old 02-04-2012, 09:03   #69
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,469
Re: KML Overlay Plugin

I am learning to use "dependency walker", it tells me, libexpat is fine

For kmloverlay_pi.dll it says:

Code:
Error: The Side-by-Side configuration information for "c:\program files\opencpn\plugins\KMLOVERLAY_PI.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
I did snoop into kmloverlay_pi.dll and find
Code:
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
googling this, tells me, it is looking for a file called "msvcr90d.dll", there could be several, depending on SideBySide installations. I did a quick search for msvcr90d.dll, there is none on my system (and shouldn't be, I think, I don't have the full VC, just the VCredist).

Dirk
LeaseOnLife is offline   Reply With Quote
Old 02-04-2012, 09:54   #70
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: KML Overlay Plugin

How did you get that? (sorry, I'm a Windows newbie ;-) )
Code:
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
Can you show me a screenshot of dependency walker? Mine shows MSVCR100.DLL not MSVC90...
SethDart is offline   Reply With Quote
Old 02-04-2012, 10:02   #71
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,469
Re: KML Overlay Plugin

I opened kmloverlay_pi.dll in wordpad or notepad

(I don't have a good editor on this machine...)

search for "Microsoft.VC90.DebugCRT"

it is in what seems to be called a "manifest"

Code:
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>
Dirk
LeaseOnLife is offline   Reply With Quote
Old 02-04-2012, 10:15   #72
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,469
Re: KML Overlay Plugin

The dependency walker does show msvcr100.dll, funny, but the depenency walker also shows the errormessage, in red, in the lower window.
Attached Thumbnails
Click image for larger version

Name:	dependencywalker-kmloverlay-fdl.jpg
Views:	169
Size:	185.6 KB
ID:	39406  
LeaseOnLife is offline   Reply With Quote
Old 02-04-2012, 11:28   #73
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: KML Overlay Plugin

Hello SethDart,

Bravo ! c'est bien, ça marche !

Bravo!, it works!

And it works with or without OpenGL

Now it remains to add a slider to change on the fly (without returning to the toolbox), the level of transparency.

Other :
Using the plug-in GE, should be able to draw a rectangle with the mouse on the OpenCPN window (or GE window), so as to have direct superposition. Is it asking too much ... Maybe ...

B.R.

Gilletarom

Netbook ASUS 1001 HA, W XP SP3.
Gilletarom is offline   Reply With Quote
Old 02-04-2012, 11:57   #74
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: KML Overlay Plugin

Dirk, can you try this one:
http://je.onfray.fr/dl/kmloverlay-test_pi.dll
It requires one more dll in OpenCPN root (same as expat.dll)
http://je.onfray.fr/dl/zlib1.dll

Crossing fingers... ;-)
SethDart is offline   Reply With Quote
Old 02-04-2012, 12:01   #75
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,469
Re: KML Overlay Plugin

It loaded, I see it in the Plugin Manager, no errors in the event log.

More testing to follow ...

Thanks!

Dirk
Attached Thumbnails
Click image for larger version

Name:	kmloverley-first-success-FDL.jpg
Views:	185
Size:	123.8 KB
ID:	39413  
LeaseOnLife is offline   Reply With Quote
Reply

Tags
kml


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
Google Earth Plugin r.fairman OpenCPN 445 29-04-2020 10:11
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 77 23-04-2019 05:40
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 09: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.