In Windows 8.02, the installation program comes with mingw, and the version is relatively new. The installation directory should be the same as the directory. The installation path cannot contain spaces or Chinese characters. Otherwise, it is likely not
Modulation.
Set the environment variable and add the bin directory under the mingw directory to the path environment variable.
2. Compile and install wxWidgets
Download the ZIP file of wxmswto the C drive at http://www.wxwidgets.org. For example, c: \ wxWidgets-2.8.9. Open
CMD command line to enter c: \ wxWidgets-2.8.9 \ build \ MSW enter the following command:
Mingw32-make-F makefile. GCC use_xrc = 1 shared = 1 monolithic = 1
Build = release Unicode = 1
Whether shared is a dynamic library, build is a generated version, there are debug and release, please refer to the relevant documentation for command line parameters.
Wait patiently for 10-30 minutes .......
If you stop halfway, delete setup. h generated under c: \ wxMSW-2.8.8 \ Lib \ gcc_dll \ mswu \ wx.
3. Set wxWidgets Environment Variables
1. Set-Environment Settings-environment variable to add a new variable. Key = wxwin, value = c: \ wxWidgets-2.8.9
2. Set-global variable-current variable-Add a new variable wx. If yes, no need to add it. Base =$ {wxwin}, include =$ {wxwin}
\ Incluse, lib =$ {wxwin} \ Lib. Close.
3. Set-compile and debug-search path-Add the include path under the mingw path to the compiler, for example, D: \ codeblocks \ mingw.
\ Include, the connector is changed to lib as above, and the resource compiler is set in the same way as the compiler.
OK. during compilation, the system prompts you to add the missing items to the three items.
Codeblocks + mingw + wxWidgets build the in Development Platform
Required software and Initial Configuration
1. codeblocks software built by post-RC2
Example: codeblocks-8.02-setup.exe, excluding mingw
Because the early code: blocks RC2 does not support global variable Compilation
2. mingw Compiler
Code: blocks can only be compiled successfully in the mingw compiler or other GCC
(1) mingw Installation
Download mingw-5.1.3.exe and install the current version. "Mingw base Tools", "g ++ compiler"
And "mingw make" must be installed. You can also download the package separately and decompress it to the mingw directory under the root directory. Other paths and folder names are also available, but do not use spaces or non-characters,
For example, gdb.exe
(2) Set Environment Variables
Right-click my computer, select Properties, Advanced tab, and environment variables, and select path in user variables of XXX. If no path can be created, enter
Enter "path", "C: \ mingw \ bin; C: \ mingw \ mingw32 \ bin;". Note that ";" is half-width.
(3) Verify Environment Variables
Start-à run-à Enter cmd, press ENTER-à enter "path" and "ming32-make" in the doscommand box to see the following effect is correct:
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C: \ Documents ents and Settings \ Piter> path
Path = c: \ windows \ system32; C: \ WINDOWS; c: \ windows \ system32 \ WBEM; C:
\ Program Files \ sliksvn \ bin \; C: \ mingw \ bin; C: \ mingw \ mingw32 \ bin;
C: \ Documents ents and Settings \ Piter> mingw32-make
Mingw32-make: *** no targets specified and no makefile found. Stop.
C: \ Documents ents and Settings \ Piter>
3. wxWidgets compressed package
(1)download wxmsw-2.8.8.zip
(2) decompress the package to the root directory folder.
4. SVN Client
(1) Download Software
You can download and install tortoisesvn or SVN command-line client. We recommend that you install SVN command-line.
Client
(2) install SVN command-line client to the default directory
(3) set Environment Variables
5、zip.exe
Copy zip.exe to mingw/bin.
6. Code: blocks Version Control
Take SVN command-line client as an Example
Enter the following command in the command line:
Mkdir codeblocks-head
CD codeblocks-head
SVN checkout SVN: // svn.berlios.de/codeblocks/trunk
Then, wait patiently .........
Ii. Building
Unicode build and ANSI build are available. The former is recommended.
1. Compile wxWidgets
(1) Check whether mingw/bin and mingw/mingw32/bin are in "path.
(2) switch to the doscommand line
(3) Use the CD command to switch to C: \ wxMSW-2.8.8 \ build \ MSW, enter the following command:
Mingw32-make-F makefile. GCC use_xrc = 1 shared = 1 monolithic = 1
Build = release Unicode = 1 clean
Mingw32-make-F makefile. GCC use_xrc = 1 shared = 1 monolithic = 1
Build = release Unicode = 1
Wait patiently for 10-30 minutes .......
If you stop halfway, delete setup. h generated under c: \ wxMSW-2.8.8 \ Lib \ gcc_dll \ mswu \ wx.
2. compile code: Blocks
(1) Open codeblocks. White under \ codeblocks-head \ trunk \ SRC and edit the global environment variable wx to the compiled
WxWidgets directory, click compile, wait 3-5 minutes.
(2) Copy Lib \ gcc_dll \ wxmsw28u_gcc_custom.dll in the wxWidgets directory to the source code: Blocks
Under SRC \ devel
(3) Run SRC \ update. bat
(4)outputfolder will show the final application codeblocks.exe, which is what we want
(5) uninstall the codeblocks application installed in the latest binary file codeblocks-8.02-setup.exe
3. Compile the required plug-ins
(1) Open contribplugins. workspace and configure the CB global variable to the SDK installation directory. Here is the src directory. Compile the plug-in you want to use.
(2) Run update. bat again.