Page 2 of 2

Re: [SAMPLE] wxWidgets app With Plugins (Windows/Linux/Mac)

Posted: Fri Nov 08, 2013 8:54 am
by evstevemd
T-Rex wrote:No CodeLite, sorry. Only generators supported by CMake.
Yeah I know, I was asking for the other guy who had it! :D

Re: [SAMPLE] wxWidgets app With Plugins (Windows/Linux/Mac)

Posted: Fri Nov 08, 2013 8:54 am
by evstevemd
iwbnwif wrote:Attached is a zip file of the codelite workspace. I hope it contains everything you need.
Thank you!

Re: [SAMPLE] wxWidgets app With Plugins (Windows/Linux/Mac)

Posted: Wed May 04, 2016 10:24 am
by umaroff
Hi
Have one question. Can make plugin using static compiled wxWidgets library. So have main app (uses wxWidgets&GUI) and plugin (uses wxWidgets&GUI).
I already made one sample, but while calling moments application crashed. I didn't test in DLL compiled mode. Just want to use in static compiled mode. Because don't want every PC install MSVC++ libs.

So, question: can i make plugin and host app using static compiled wxWidgets library?

Thank you for all

Re: [SAMPLE] wxWidgets app With Plugins (Windows/Linux/Mac)

Posted: Wed May 04, 2016 11:24 am
by T-Rex
Most likely that you can't do this. I have tried for many times but without the success. If you link statically then you will have `2+ wxWidgets instances in memory. One for each compiled module`. And this will produce the problems with event handling and RTTI.

As for VC++ libs, in general, you don't need to install the VC++ runtime on client machines. You can bundle the CRT DLLs with your app (by placing into the same folder). Or use merge modules for the installer of your app. We use merge modules for WiX installer, works more or less fine so far, very convenient technology.

Re: [SAMPLE] wxWidgets app With Plugins (Windows/Linux/Mac)

Posted: Wed May 04, 2016 12:19 pm
by umaroff
Thank you for answer.
I also thinking that method (so, marge all VC++ DLLs into installer). I see that static compiled application and DLL library takes inside all functions. Because both of size big (similar). This is conflicting when i use. I think best solution is using dynamic compiled library wxWidgets. So, will try compile dynamic libs. But have another good news, if you make and compile static DLL based application and use this library into not wxBased application that works fine;

So, totally solution:
If DLL based application: [static compiled - OK]
If DLL plugin,module system: best is [shared compiled - OK]

Thank you for all