Dynamically linking against wxWidget 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
p1r0
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Jul 13, 2006 12:27 am

Dynamically linking against wxWidget

Post by p1r0 » Mon Sep 18, 2006 6:00 pm

Hi

is there a way to get wxWidgets in a DLL form for dynamic linking????

Thanks in advance,
p1r0
"Guns don't kill peple, people kill people"

benedicte
wxWorld Domination!
wxWorld Domination!
Posts: 1409
Joined: Wed Jan 19, 2005 3:44 pm
Location: Paris, France

Post by benedicte » Mon Sep 18, 2006 8:41 pm

you need to build it. There are too many flavours to provide a list of downloadable files (unicode, compiler/platform, enhancements supports, ...)

p1r0
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Jul 13, 2006 12:27 am

Post by p1r0 » Mon Sep 18, 2006 8:54 pm

benedicte wrote:you need to build it. There are too many flavours to provide a list of downloadable files (unicode, compiler/platform, enhancements supports, ...)
is it too much if I ask you how do I build it?

tanks
"Guns don't kill peple, people kill people"

benedicte
wxWorld Domination!
wxWorld Domination!
Posts: 1409
Joined: Wed Jan 19, 2005 3:44 pm
Location: Paris, France

Post by benedicte » Mon Sep 18, 2006 8:56 pm

well, if you tell us which platform/compiler you use, we can help you...

(you can also look at the README/INSTALL file in the wxWidgets root directory, there are instructions to configure and build wxWidgets)

p1r0
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Jul 13, 2006 12:27 am

Post by p1r0 » Mon Sep 18, 2006 9:01 pm

benedicte wrote:well, if you tell us which platform/compiler you use, we can help you...

(you can also look at the README/INSTALL file in the wxWidgets root directory, there are instructions to configure and build wxWidgets)
sorry... :oops:

I'm on windows xp using migw (g++)

and I'll check out the read me

thanks a lot
"Guns don't kill peple, people kill people"


RJP Computing
Experienced Solver
Experienced Solver
Posts: 75
Joined: Sat Dec 10, 2005 10:38 pm
Location: Michigan, USA
Contact:

Post by RJP Computing » Tue Sep 19, 2006 1:39 am

Take a look at wxPack. It has wxWidgets pre-build with MinGW and VC 7.1.

http://wxpack.sourceforge.net
- Ryan
RJP Computing
wxPack - Precompiled wxWidgets package.

Ubuntu 9.04 x86_64/WinXP, AMD Athlon x2 3000+, 4000MB RAM, AC 97 Audio, nVidia GeForce 9400GS 1GB

ScreamingInDigital
In need of some credit
In need of some credit
Posts: 1
Joined: Sat Sep 23, 2006 3:12 pm
Location: Texas

Compiling libraries as DLL

Post by ScreamingInDigital » Tue Sep 26, 2006 3:17 am

Assuming Windows XP with MINGW

Follow the instructions on this link, ...

http://www.wxwidgets.org/wiki/index.php ... MSYS-MinGW

You may want to make the folder name something like "msw-debug-dll".

Instead of typing just "make" to build the libraries, type "make DLL=1".

When the make installer, you will also need to add the "DLL=1" option("make install DLL=1").

Finally, you must check to ensure that your MSYS path is updated. The DLLs will be added to "<msys home>/<version>/local/lib".

When compiling, add the option "WXUSINGDLL=1" to the make command line.

Goto one of the samples folder and type "make WXUSINGDLL=1".

You'll notice the binary generated is significantly smaller. Ironically, I tried as static and dynamic, and the static was using less memory. doh! By default the libraries are built with debug "on", which makes the static generated executable HUGE! Either build the libraries as "static-release" or remember to run "strip" on the executable.

Post Reply