Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 02-04-2015, 10:50   #1
Registered User

Join Date: Mar 2015
Posts: 5
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, 11:08   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
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, 19:17   #3
Registered User

Join Date: Mar 2015
Posts: 5
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


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

Advertise Here


All times are GMT -7. The time now is 18:13.


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.