I just learned how to compile wxWidgets on Windows recently. Don't want to
forget about it. So just make a blog entry. May help others, too, if the
search engines rank it high enough...
wxWidget can be compile on Windows for different compiler tools. For
example, VC, MingW, borland C++, etc. I am only interested in VC and
MingW. If you are interested in commercial native tools, VC is sufficient
(just use the free beer version). If you are interested in OSS tools,
nothing is better than MingW. OK, that is my opinion anyway. I am very
glad to find out wxWidget support these two builds very easily and well.
Espeically the VC build can be just invoking the nmake tools. Hehe, go
to hell VC XML project files... The MingW build is simple enough, any
autoconf/automake user knows how to do it. Configure and make. Life is
so good!
I learned most of the knowledge from these two posts:
http://www.freelists.org/post/programmingblind/Tutorials-for-compilation-of-wxWidgets-on-Microsoft-windows
http://www.freelists.org/post/programmingblind/tutorials-for-compilation-of-wxWidgets-on-windows-part-2A-wxWidgets-and-MinGW
If there was ever a chance that these links are broken. Use a search engine
to search these keywords "compilation of wxWidgets on windows" (without quote).
A link can be broken, but Internet history will never die.
The only thing I think I should put down here is that, how to tweak various
settings of the build. wxWidgets has different build flavour, most importantly,
monolithic build or multi-lib build, unicode build or non-unicode build,
static lib build or DLL lib build, debug build or non-debug build, etc.
For VC build, these settings are tweaked through the config.vc file under
build/msw subdir of the wx Windows source tree. While for MingW build, the
settings are tweak on the configure script command line options. Running
./configure --help will show all the tweakable options.
After setting config.vc correctly, to build VC build, just need to invoke
nmake /f makefile.vc. Slick! For MingW build, run ./configure on top level
and then make. Nothing simpler!
OK. So much for wxWidgets building. Time to hack the code.
PS. Comiling wxWidget on Mac is no different than compiling it on Linux
or other UNIX system. Configure and make is the way to go.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment