Wxwidgets and CODEBLOCKS+MINGW are installed and configured under Win7

Source: Internet
Author: User
Tags wxwidgets

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.