Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Old 12-02-2012, 13:46   #16
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: KML Overlay Plugin

Gilletarom...
libexpat.dll is the same in both cases.

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 12-02-2012, 15:25   #17
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Re: KML Overlay Plugin

SethDart

I'm trying to compile on Ubuntu 64 bit, but it looks more like what you described for fedora.

Running Cmake
Quote:
-- *** Building dashboard_pi ***
-- *** Building kmloverlay_pi ***
CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find libkml (missing: libkml_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
plugins/kmloverlay_pi/Findlibkml.cmake:55 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
plugins/kmloverlay_pi/CMakeLists.txt:61 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
Prior to this I just instaled libkml-dev!
After installing libboost-dev, libkml was found!!

Quote:
-- *** Building dashboard_pi ***
-- *** Building kmloverlay_pi ***
-- Found libkml: /usr/include/kml;/usr/include/boost
-- Writing spec file...
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
libkml_URIPARSER_LIBRARY
linked by target "kmloverlay_pi" in directory /home/thomas/Testing/GitHub/kml/OpenCPN/plugins/kmloverlay_pi

-- Configuring incomplete, errors occurred!
Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 12-02-2012, 16:17   #18
Registered User

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

Thomas,

Here are the dependency:
- build = libkml-dev + boost-dev (the latter should be a dependency for the former)
- link/run = libkml uriparser z(=zlib) minizip (subpackage from zlib) expat

did you install libkml as well? (I think yes, but just in case...) It should have pulled all the others as dependency. If not, you should install them as well.

If it fails, can you report output from
$ ldd /usr/lib64/libkmlbase.so
for libkmldom and libkmlengine as well.

Please report.

Thanks,
Jean-Eudes
__________________
SethDart is offline   Reply With Quote
Old 12-02-2012, 17:25   #19
Registered User

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

Thomas,

I just tested on my Ubuntu64 VM: dependency are correct (uriparser is there) ... but cmake doesn't seems to find it. You can safely remove both lines about it in plugin/kmloverlay_pi/Findlibkml.cmake
Edit: I mean, comment first line (line 23) and remove from second line (line 26) ;-)

It'll build, link and install fine. I just did it succesfully here.

In fact all these cmake dependency were added to ease configuration for Windows build. We dont need it for GNU/Linux.

I'm trying to find a workaournd
__________________
SethDart is offline   Reply With Quote
Old 13-02-2012, 02:26   #20
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Re: KML Overlay Plugin

SethDart

Thank you for the instructions. No further problems.
A kml file with the limits of commercial(S63) ENC cells works just fine.

Plugin download for those who use *buntu 64 bit and OpenCPN 2.6.1310
libkmloverlay_pi.7z.doc

Get rid of the .doc and un-7zip!

Thomas
__________________
cagney is offline   Reply With Quote
Old 13-02-2012, 11:50   #21
Registered User

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

HappySeagull & LeaseOnLife, would you mind trying this one and report?
http://je.onfray.fr/dl/kmloverlay-vs2010_pi.dll

It's built with VS2010 for OpenCPN 2.5.0

PS: libexpat.dll is still required, see first post.
__________________
SethDart is offline   Reply With Quote
Old 13-02-2012, 12:38   #22
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again
Boat: Sailboat
Posts: 1,046
Re: KML Overlay Plugin

Quote:
Originally Posted by SethDart View Post
HappySeagull & LeaseOnLife, would you mind trying this one and report?
http://je.onfray.fr/dl/kmloverlay-vs2010_pi.dll

It's built with VS2010 for OpenCPN 2.5.0

PS: libexpat.dll is still required, see first post.
Sorry, still no luck:
Code:
14:36:30: PlugInManager: Loading PlugIn: C:\Program Files\OpenCPN\plugins/kmloverlay-vs2010_pi.dll
14:36:30: Error: Failed to load shared library 'C:\Program Files\OpenCPN\plugins/kmloverlay-vs2010_pi.dll' (error 14001: this application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.)
14:36:30:    PlugInManager: Cannot load library: C:\Program Files\OpenCPN\plugins/kmloverlay-vs2010_pi.dll
__________________
LeaseOnLife is online now   Reply With Quote
Old 13-02-2012, 12:50   #23
Registered User
 
HappySeagull's Avatar

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

Nope.Nada...= same log as Leaseonlife. I tried in 2.6 beta too, for the heck of it.
__________________
HappySeagull is offline   Reply With Quote
Old 13-02-2012, 12:53   #24
Registered User
 
Playtime's Avatar

Join Date: Jan 2012
Location: Portsmouth
Boat: Bavaria 38 Ocean
Posts: 9
Re: KML Overlay Plugin

Does kmloverlay work on XP?

It worked first time on my desktop PC running W7. However, when I try it on my boat laptop under XP I get the following messages in opencpn.log

7:38:05 PM: 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.)
7:38:05 PM: PlugInManager: Cannot load library: C:\Program Files\OpenCPN\plugins/kmloverlay_pi.dll

The libexpat.dll file is in opencpn root on both systems.

Is this a known problem?

PS I have previously had 2.6.1310 running on the laptop but have removed it and reloaded 2.5.0. Could this be part of the problem?
__________________
Playtime is offline   Reply With Quote
Old 13-02-2012, 15:49   #25
Registered User

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

Pavel, can you build the plugin for 2.5.0 please?

I can't get it to work with my local builds.

-- technical version... --
I built wxWidgets with VS2010 following instruction described in the website. Then I built opencpn. When installed, it uses .dll provided in ${opencpn_source}/wxWidgets/
That package crashes instantly (either with or without my plugin)
If I replace these dll with those I built with wxWidgets, everything works fine. WTF?

Pavel, can you provide me your ${wxwidgets}/lib/vc_dll so I can compile opencpn (and my plugin) against it?

Maybe some Windows expert have some advice?
__________________
SethDart is offline   Reply With Quote
Old 13-02-2012, 15:52   #26
Registered User

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

Playtime,

Please test either .dll from #1 or #21
Remember to add libexpat
__________________
SethDart is offline   Reply With Quote
Old 14-02-2012, 03:54   #27
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: KML Overlay Plugin

SethDart...
I've built the plugin for OpenCPN 2.5.0 (using VS2008 toolchain to avoid VC libs version conflicts)
DLL at http://opencpn.xtr.cz/kmloverlay_pi_v15_vs2008.dll
It runs for me, but did not render the overlay in a very quick test. I don't have time to debug it right now, but will have a look later.
I've placed all the needed build products for WX and libkml from both VS2008 and VS2010 at Index of / = the .7z filenames are hopefully self-explanatory.

Pavel
__________________
nohal is offline   Reply With Quote
Old 14-02-2012, 04:00   #28
Registered User

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

Did you revert this commit?
https://github.com/OpenCPN/OpenCPN/c...0d229412b17749
RenderOverlay() function has changed between API v1.5 and v1.6

Thanks a lot
__________________
SethDart is offline   Reply With Quote
Old 14-02-2012, 04:06   #29
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: KML Overlay Plugin

Fingers faster than brain - of course I've just changed the version

Edit: New build at http://opencpn.xtr.cz/kmloverlay_v15_vs2008_pi.dll - working well for me with 2.5.0 on Win7

Pavel
__________________
nohal is offline   Reply With Quote
Old 14-02-2012, 04:25   #30
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: KML Overlay Plugin

And of course a bugreport follows:
  • KML from Greg's Cable Map
  • panning the chart with a mouse
  • The more or less horizontal lines shown on the attached screenshot should not be there (Might be a date line crossing problem?)
Pavel
Attached Thumbnails
Click image for larger version

Name:	cables.png
Views:	488
Size:	85.8 KB
ID:	37372  
__________________

__________________
nohal is offline   Reply With Quote
Reply

Tags
kml

Thread Tools
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 72 27-02-2016 12:42
Google Earth Plugin r.fairman OpenCPN 417 15-02-2015 12:15
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 22:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 05:31



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.