codeblocks::wxwidgets project distribution Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Emerald2240
Knows some wx things
Knows some wx things
Posts: 30
Joined: Tue Dec 11, 2018 1:38 pm

codeblocks::wxwidgets project distribution

Post by Emerald2240 » Sat Dec 15, 2018 4:43 pm

Hi I'm a beginner in wxwidgets programming I use codeblocks' drag n drop version of wxwidgets
I just recently completed my first serious project! A basic calculator, and I was thinking yeah I'm done so how do I actually make my application complete and distributable?
I went to my release folder under codeblocks wxwidgets bin directory, I found the project and for some reason it displays
"The program can't start because wxmsw311u_GCC_custom.DLL is missing from your computer...."
Any help! I'd appreciate!
Thanks!

User avatar
doublemax
Moderator
Moderator
Posts: 13602
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: codeblocks::wxwidgets project distribution

Post by doublemax » Sat Dec 15, 2018 5:12 pm

If you link wxWidgets dynamically, the executable requires the wxWidgets DLLs to run. In your case that means you'd have to install the wxWidgets DLLs globally or copy them to the directory of the executable.

If you want "self-contained" executables, you'll need to link wxWidgets statically.

These are configuration options in the IDE.
Use the source, Luke!

PB
Part Of The Furniture
Part Of The Furniture
Posts: 1951
Joined: Sun Jan 03, 2010 5:45 pm

Re: codeblocks::wxwidgets project distribution

Post by PB » Sat Dec 15, 2018 6:14 pm

doublemax wrote:If you want "self-contained" executables, you'll need to link wxWidgets statically.

These are configuration options in the IDE.
Justo to be sure, this also requires having a static build of wxWidgets.

Emerald2240
Knows some wx things
Knows some wx things
Posts: 30
Joined: Tue Dec 11, 2018 1:38 pm

Re: codeblocks::wxwidgets project distribution

Post by Emerald2240 » Mon Dec 17, 2018 6:03 am

doublemax wrote:If you link wxWidgets dynamically, the executable requires the wxWidgets DLLs to run. In your case that means you'd have to install the wxWidgets DLLs globally or copy them to the directory of the executable.
That makes sense! Thanks!!

Post Reply