Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-04-2015, 11:50   #1
Registered User

Join Date: Mar 2015
Posts: 2
Static builds, plugins and debugging under MSW...

Hi All,

this is my first post on the forum, so I'd just like to say - thanks to all of the contributors for creating such a useful app

I'm trying to build a plugin which integrates with an existing wxWidgets codebase under MSW.

I've been working my way through the build configuration process and have a few questions:
  • The oCPN convention seems to be to use dynamic runtime libs with wxWidgets-2.8.12. My existing codebase is currently wxWidgets-2.9.3 and uses static libs. Does anyone have a CMake config which would allow oCPN to be compiled using my existing configuration?
  • The current oCPN CMakeLists file contains a requirement for wxWidgets-2.9+ - how does that sit with the need to use 2.8.12?
  • Is there an agreed approach to debugging standalone plugins, or are two builds needed - one integrated with oCPN for debugging and one standalone for packaging?
All the best,

Martin
__________________
evendine is offline   Reply With Quote
Old 02-04-2015, 12:08   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Static builds, plugins and debugging under MSW...

Martin...
Quote:
Originally Posted by evendine View Post
Hi All,

this is my first post on the forum, so I'd just like to say - thanks to all of the contributors for creating such a useful app

I'm trying to build a plugin which integrates with an existing wxWidgets codebase under MSW.

I've been working my way through the build configuration process and have a few questions:
  • The oCPN convention seems to be to use dynamic runtime libs with wxWidgets-2.8.12. My existing codebase is currently wxWidgets-2.9.3 and uses static libs. Does anyone have a CMake config which would allow oCPN to be compiled using my existing configuration?
No we don't. The plugins won't work at all with statically linked wxWidgets as far as I can tell.
Quote:

  • The current oCPN CMakeLists file contains a requirement for wxWidgets-2.9+ - how does that sit with the need to use 2.8.12?
It does not contain such a requirement. If you refer to lines 793-798 in CmakeLists.txt, read it again - it does nothing at all..

Quote:

  • Is there an agreed approach to debugging standalone plugins, or are two builds needed - one integrated with oCPN for debugging and one standalone for packaging?
All the best,

Martin
Of course 2 builds are needed, if for nothing else because you can't mix release and debug libraries in one process. The "standard" approach to plugin debugging, at least mine, is to build in the tree and modify https://github.com/OpenCPN/OpenCPN/b...nager.cpp#L240 to point to the place where the plugin DLL is built (<opencpnsrc>\build\plugins\xxx_pi\Debug). The packaging comes last in the development process.

The current master should build quite fine with wxwidgets3 even on Windows and we are probably going to migrate to it during this beta cycle.

Pavel
__________________
nohal is offline   Reply With Quote
Old 02-04-2015, 20:17   #3
Registered User

Join Date: Mar 2015
Posts: 2
Re: Static builds, plugins and debugging under MSW...

Thanks for the info Pavel - appreciate you must be busy - thanks for finding the time...
__________________
evendine is offline   Reply With Quote
Reply

Tags
plug

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
Development Debugging Environment - Setup Help rgleason OpenCPN 577 11-11-2017 06:02
Debugging OCPN Connections RobbieW OpenCPN 45 16-07-2015 05:37
Installateur de plugins, Install software for plugins. Gilletarom OpenCPN 3 30-04-2013 06:57
Dynamic/Static Stability jackiepitts Monohull Sailboats 6 17-12-2006 21:12
Anyone know about debugging a flaky tach? Paul L Engines and Propulsion Systems 2 31-07-2005 06:15



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 17:32.


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.