User forums > Help

compiling wxWidgets

(1/1)

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?

--- End quote ---

Hello,

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

Best wishes,
Michael

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.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

Navigation

[0] Message Index

Go to full version