1. Download Codeblocks
Download the latest version on the official website, with MinGW Codeblocks. Website: http://www.codeblocks.org/downloads/26#windows
General Download the second or third, to be inside with MinGW.
2. Install and set MINGW environment variables
The installation of a fool, the focus is to select the MinGW, and after the installation of MinGW selected as the default compiler.
Add environment variables, must be added in the system variable path: D:\Program Files (x86) \codeblocks\mingw\bin;
3, the compilation of wxwidgets
Official website: http://www.wxwidgets.org/downloads/. Select Installer Download
After installation, note also to compile!
Locate the "CONFIG.GCC" file under the subdirectory "build\msw\" of the installation directory. Open with WordPad.
Compile four times! About 30 minutes each time!
Four times to modify the contents of the CONFIG.GCC file separately:
First time: Dynamic link library + Debug version
# What type of library to build? [0,1]
SHARED: = 1
# Type of compiled binaries [debug,release]
BUILD: = Debug
Second time: Dynamic link library + release
# What type of library to build? [0,1]
SHARED: = 1
# Type of compiled binaries [debug,release]
BUILD: = Release
Third time: Static link library + Debug version
# What type of library to build? [0,1]
SHARED: = 0
# Type of compiled binaries [debug,release]
BUILD: = Debug
Fourth time: Static link library + release
# What type of library to build? [0,1]
SHARED: = 0
# Type of compiled binaries [debug,release]
BUILD: = Release
In addition, every time I encode a configuration, I encode it in Unicode, so
# Compile Unicode build of WxWidgets? [0,1]
UNICODE: = 1
This option has not changed.
After each change, to use the MinGW to compile, the steps are as follows:
First cmd, in the D:\WXWIDGETS-3.0.0\BUILD\MSW path (depending on the installation path and different), execute the command: mingw32-make.exe-f MAKEFILE.GCC, wait 30 minutes or so, the compilation will be completed. Complete:
Last emphasis once, to compile 4 times:
4. Set Wxwidgets global variables
Set in "Settings", "Global Variables ..."
Set up
5. New Project Test
In "File", "New" and "project ..." Finally there is the Wxwidgets project:
All the way down, where you can choose:
Press F8 to compile debugging, error occurred:
In Project, Build options, the error is deleted:
Get.
6. Set Codeblocks Chinese
Self-degree Niang or Google, download Chinese language can be. Successful transformation