News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

compiling wxWidgets

Started by mike27, April 24, 2006, 07:45:22 PM

Previous topic - Next topic

mike27

I want to compile a wxWidgets project in code blocks, but I want the exe file to contain everything it needs in order to run on a different computer where wxWidgets is not installed. Is it possible?
thanks.
best regards. Mike.

Michael

Quote from: mike27 on April 24, 2006, 07:45:22 PM
I want to compile a wxWidgets project in code blocks, but I want the exe file to contain everything it needs in order to run on a different computer where wxWidgets is not installed. Is it possible?

Hello,

Yes, it is possible :). Build wxWidgets as static library(ies) and link your application to it(them).

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

mike27

I compiled widgets using this: mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=0
but I get many linker errors "undefined reference to..." for example: "undefined reference to _imp__wxPanelNameStr".
Do you know how to get rid of these errors?
Mike

Michael

Hello,

To build wxWidgets, I usually do as explained here:

http://forums.next.codeblocks.org/index.php?topic=1701.0

Anyway, if you want a static build, then you should use SHARED=0 (I think it is the default option). And if you do not want unicode, then UNICODE=0.

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]