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

Do you like to promote your wxWidgets based application or component!? Post it here and let's see what the critics have to say. Also, if you found that ONE wx component the world needs to know about, put it here for future reference.
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2072
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

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

Postby evstevemd » Fri Nov 08, 2013 8:54 am

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
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2072
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

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

Postby evstevemd » Fri Nov 08, 2013 8:54 am

iwbnwif wrote:Attached is a zip file of the codelite workspace. I hope it contains everything you need.

Thank you!
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

umaroff
In need of some credit
In need of some credit
Posts: 2
Joined: Wed May 04, 2016 10:12 am

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

Postby umaroff » Wed May 04, 2016 10:24 am

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

User avatar
T-Rex
Moderator
Moderator
Posts: 1130
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

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

Postby T-Rex » Wed May 04, 2016 11:24 am

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.

umaroff
In need of some credit
In need of some credit
Posts: 2
Joined: Wed May 04, 2016 10:12 am

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

Postby umaroff » Wed May 04, 2016 12:19 pm

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


Return to “Announcements and Discoveries”

Who is online

Users browsing this forum: No registered users and 2 guests