I follow the instruction in WiKi and success to compile wxWidget 2.6.2 under XP console.
My procedure is very simple.
1. download wxWidget 2.6.2 package from
www.wxwidgets.org (
http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.6.2-Setup.exe)
2. Install into correct folder
3. Enter into the folder which contain compile configuration (Ex: C:\wxWidgets-2.6.2\build\msw)
4. Before your compile wxWidgets, make sure your compiler is working and can be found.
4.1 Since I am using mingw 3.4.4 and it's pre-installed in C:\Program Files\CodeBlocks\bin. So, this path should be included into my environment setting.
4.2 Test the gcc version in C:\wxWidgets-2.6.2\build\msw folder. For example:
C:\wxWidgets-2.6.2\build\msw>gcc -v
Reading specs from C:/program files/codeblocks/bin/../lib/gcc/mingw32/3.4.4/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchroniz
ation --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.4 (mingw special)
Success!
5. Edit config.gcc under same folder. My personal suggests you to edit this file by yourself and you will know each of the setting of wxWidgets for compiling.
5.1 Following the WiKi, some of the value should be considered for example:
USE_XRC=1
SHARED=1
MONOLITHIC=1
BUILD=release
UNICODE=1
You can find the explanation in each parameter in config.gcc which will let you build lib or dll.
6. After you save the modification of the config.gcc, you can start to compile it by using the following command:
mingw32-make -f makefile.gcc
Note: if you don't want to modify config.gcc, you still can use the command which descirbed in WiKi... for example:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
7. It takes around 50 minutes on my system. All the compile files will be stored in subfolder under your config file's folder (Ex: C:\wxWidgets-2.6.2\build\msw\gcc_mswudll) and the lib file is stored under lib folder (Ex: C:\wxWidgets-2.6.2\lib\gcc_dll)
Now, you get your version of wxWidgets and it's ready to use...