Getting Started With WxWidget

How To Build

in Windows Environment with Mingw

cd {Wx Folder}\build\msw

Build the library

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

 

Build UNICODE version, static library:

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

Build UNICODE version, MONOLITHIC static library:

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

Compile The Program

on Console

cd <wxFolder>/example/minimal

g++ minimal.cpp -o Test.exe -I<wxFolder>\include -I<wxFolder>\lib\gcc_lib\mswu -L<wxFolder>\lib\gcc_lib -lwxmsw30u_gl -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -lwxmsw30u_adv -lwxmsw30u_core -lwxmsw30u_aui -lwxbase30u -mwindows -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwxmsw30u_media -lwxpng -lz
with makefile
mingw32-make -f makefile.gcc

edit makefile.gcc add -I.\..\..\lib\gcc_lib\mswu
edit WXDEBUGFLAG with empty value

 

Advertisements
This entry was posted in C\C++ and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s