Author Topic: compiling wxWidgets  (Read 3850 times)

mike27

  • Guest
compiling wxWidgets
« 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?
thanks.
best regards. Mike.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: compiling wxWidgets
« Reply #1 on: April 24, 2006, 08:12:34 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

mike27

  • Guest
Re: compiling wxWidgets
« Reply #2 on: April 24, 2006, 10:08:28 pm »
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

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: compiling wxWidgets
« Reply #3 on: April 24, 2006, 11:09:43 pm »
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