2006-12-17

How to Compile wxWidgets in Windows Using MinGW

Download

wxWidgets
wxWdigets 2.8.0 is used in this post. Enter the "Download" page of this site, then download wxMSW source archieve.
MinGW
Enter the "Download" page, then download MinGW-5.0.2.exe or newer version in the "Proposed" section.

Inatall

Execute files you just downloaded. Inatall step by step. Be sure that make tool and C/C++ compilers selected when installing MinGW.

Add path [MinGW Directory]\bin to Path variable.

Change directory to [wxWidgets Directory]\build\msw

Enter mingw32-make -f makefile.gcc UNICODE=1 SHARED=0 BUILD=release MONOLITHIC=0

Now we can compile sample programs using the same command. The output binary file will be in the gcc_mswu subdirectory.

Reference

This post is just a note for myself

No comments:

Post a Comment