Code: blocks, wxWidgets, and wxsmith support the GUI designer?

Source: Internet
Author: User
Tags wxwidgets

Code: blocks, wxWidgets, and wxsmith support the GUI designer?

1. Download the code: blocks with GCC version. Currently, the wxsmith design is included in version 10.05.

2. Download wxWidgets. Currently, 2.8.12 has an installed version, but it still needs to be compiled !!! Language and language, enter c: \ wxWidgets-2.8.12 \ build \ MSW Compilation

"

Echo compilation release version
Mingw32-make-F makefile. GCC build = release shared = 1 monolithic = 0Unicode = 1
Echo compilation and debugging version
-F makefile. GCC mingw32-makeBuild = debugShared = 1 monolithic = 0Unicode = 1
Echo ---------------------------------------------------------------------
Echo compilation ended
Pause

The red is the Unicode option. If you do not need Unicode, you can set it to 0.

"

In fact, it can be used in CB without compilation, but it is a link error. Haha.

The following error may occur when compiling a wx example:

1.

Error "wxuse_dynlib_class must be defined ."

Wxddeconnectionlist

Wait. The former is because setup is not found. h, but adding c: \ wxWidgets-2.8.12 \ include \ wx \ msw to the include path will show the following error, the reason is... the Masters did not complete the inclusion relationships of various paths, removed the included paths, and directly modified platform. h

// # Include "wx/setup. H" // CLQ Test
# Include "wx/MSW/setup. H"

OK.

2.

-------------- Build: Debug in W3 ---------------

Compiling: w3app. cpp
Compiling: w3main. cpp
Compiling: resource. RC
Linking executable: bin \ debug \ w3.exe
D:/program files/codeblocks/mingw/bin/../lib/GCC/mingw32/4.4.1/login cannot find-lwxmswd_core
Collect2: LD returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings
It is estimated that there is no link to the database. We need to compile the Wx tool. The following is the user experience.

--------------------------------------------------

Http://blog.csdn.net/joliny/article/details/3505566

Codeblocks + wxWidgets
Category:
WxWidgets
Read by 2847 Comment (2) Favorites Report Codeblocks was also installed before, but wxWidgets was not installed at the time. After trying to create a wxWidgets project, I gave up without seeing the interface design stuff. Today, I found that Nan Guoli in the group is also using codeblocks. With his help, I finally successfully installed wxWidgets.
    1. Download and install codeblocks from www.codeblocks.org. It is recommended that you download the mingw version to save the trouble of installing and configuring GCC.
    2. Download and install wxWidgets at www.wxwidgets.org.ProgramYou can download only the wxmsw version. If you like, you can also download the wxall version.
    3. Compile wxWidgets. If you do not know how to compile it, you can use the following wxbuild. BAT for compilation. The compilation process is about 30 minutes.
    4. Because codeblocks uses the GCC compiler, you must first modify the compilation options to support Chinese characters and add them to the other option tag under settings-> compiler and Debugger: -finput-charset = GBK, if the source file is UTF-8 or Unicode encoding, it is changed to the appropriate.
    5. Now you can create a wxWidgets project.

Wxbuild. bat. Before running the script, set the mingw/bin/directory under the codeblocks installation directory to the PATH variable.

@ Echo off
CD build/MSW
Compile wxWidgets with title
Echo starts Compilation
Echo ---------------------------------------------------------------------
Echo compilation release version
Mingw32-make-F makefile. GCC build = release shared = 1 monolithic = 0Unicode = 1
Echo compilation and debugging version
-F makefile. GCC mingw32-makeBuild = debugShared = 1 monolithic = 0Unicode = 1
Echo ---------------------------------------------------------------------
Echo compilation ended
Pause

The red is the Unicode option. If you do not need Unicode, you can set it to 0.

 
Create a project select wxWidgets Project

For installation, select the wxWidgets version you installed. Here I install 2.8.x

Enter the location of the project name

Enter your copyright information

Here, wxsmith is selected as the GUI Design Tool. wxformbuilder can also compile the GUI program, but it has not yet understood how to use its GUI Design Tool.

Install and enter your wxWidgets installation directory

By default

Here we use wxWidgets DLL and Unicode

Add the corresponding class library to the project as needed

Design Interface and running result

If you have time, study how wxformbuilder is used.

--------------------------------------------------

Http://hi.baidu.com/superql/blog/item/d6f316559d52e7ccb645ae72.html

Using codeblocks mingw wxWidgets in Windows XP to quickly build an open-source cross-platform GUI programming environment (zz) Author: Liu Qingyi (reprinted please indicate the source)
(Http://liuqingyan.blogspot.com/2008/10/windows-xpcodeblocks-mingw-wxwidgetsgui.html) a lot of online tutorials to write complex, even after the actual attempt to simplify as the following simple tutorial.

From the following websites:
Http://www.mingw.org/
Http://www.wxwidgets.org/
Http://www.codeblocks.org/

Download to the following files respectively:
MinGW-5.1.4.exe
WxMSW-2.8.9-Setup.exe
Codeblocks-8.02-setup.exe

Installation:
1. Install mingw
Run mingw-5.1.4.exe and install it on the network to c: \ mingw.
Set windows path and add c: \ mingw \ bin

2. Install wxWidgets
Run wxmsw-2.8.9-setup.exe, decompress to c: \ wxWidgets-2.8.9
Go to c: \ wxWidgets-2.8.9 \ build \ MSW \ and run the following command on the command line:
Mingw32-make-F makefile. GCC clean
Mingw32-make-F makefile. GCC monolithic = 0 shared = 1 Unicode = 1 build = release
Mingw32-make-F makefile. GCC monolithic = 0 shared = 1 Unicode = 1 build = debug

The compilation process takes about half an hour.

3. Install codeblocks
Run codeblocks-8.02-setup.exe and install it in c: \ Program Files \ codeblocks \

4. Configuration
No special configuration is required. Select the wxWidgets project when creating a project in codeblocks. Then, the installation location of Wx will be selected during the Wizard. You can select the correct directory.

have a try:
1. start codeblocks and automatically detect mingw (gnu c ++). Set it to the default compiler.
2. create a wxWidgets project
3. follow the wizard. Select the correct wxWidgets position
{supplement: do not select the check box "wxWidgets is generated as a single library (monolithic)" in the middle of a step.}
4. run the project, you can see the basic form program ------------------------------------------------ it is said that there is an integrated version of Deng can relieve all pain http://topic.csdn.net/u/20101023/03/7554e419-6c4c-44fb-b686-49d7b893ae8e.html now mention this is the reason that the GUI designer seems to have been very good, it can be associated with Code , which is much better than QT and GTK.

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.