Install wxWidgets in Windows

Source: Internet
Author: User
Tags wxwidgets

Install wxwindows on Windows OS:

1. log on to http://www.wxwidgets.org/and download wxmsw-2.8.8-setup.exe

2. Run wxmsw-2.8.8-setup.exe to install wxWidgets to D: \ wxWidgets-2.8.8

3. Compilation is required after installation. Ide is required. I use MS Visual Studio 2008.

4, enter D: \ wxWidgets-2.8.8 \ build \ MSW, using MS Visual Studio 2008 Open wx. DSW or wx_dll.dsw (or both), because. the DSW file is a project file of vc6. Click "OK" to convert all files, and then click "Build-> Configuration Manager". In the displayed window, select "Active solution configuration" as Unicode debug or another file, if you need multiple solution configurations, you can select them and press F7 to build
Solution, I selected Unicode debug and Unicode release respectively, after compilation is completed, the vc_lib folder will be generated under D: \ wxWidgets-2.8.8 \ Lib, including the generated corresponding. lib and other files and mswud folders. At this point, wxWidgets has been installed.

[Note] UD in wxbase28ud. Lib represents the Unicode dug version, and u in wxbase28u. Lib represents the unicoderelease version. Unicode is a unified character encoding standard. It uses dual-byte encoding and supports multiple languages. It facilitates internationalization and makes processing easier. Therefore, you can compile the code into a unicode version.

Next, set the development environment of MS Visual Studio 2008:

First, create an empty Win32 project by mistake and set its properties. Click project-> properties to go to the Property setting page:

C/C ++-> General-> additional include directories: "D: \ wxWidgets-2.8.8 \ include"; "D: \ wxWidgets-2.8.8 \ include \ msvc"

Linker-> General-> additional library directories: "d :\ wxWidgets-2.8.8 \ Lib \ vc_lib"

Linker-> input-> additional dependencies:

Library. Lib wxmongod. Lib wxmongod. Lib wxpngd. Lib Uninstall. Lib Uninstall. Lib kernel. Lib kernel32.lib user32.lib uninstall kernel winspool. Lib winmm. Lib uninstall kernel ole32.lib aut32.lib UUID. Lib uninstall later
Wsock32.lib

During the problem: the integrated development environment of the system installation is vc6.0, try to refer to the online Introduction to use the command line to compile D: \ wxWidgets-2.8.8, but the system does not recognize the nmake command problem, it will not solve the problem, so you can use the editor to Compile directly. Then, vc6 is replaced with MS Visual Studio 2008, and the compilation is successful.

The wxWidgets debug version was compiled at the beginning. Similar to minimal occurs during program debugging. OBJ: Error lnk2001: unresolved external symbol "public: Virtual bool _ thiscall wxapp: Initialize (Int &, wchar_t **)"(? Initialize @ wxapp @ uae_naahpapa_w @ Z). Check whether the project version attribute is set incorrectly. Click the tab property.
Manager is displayed as the debug and release attributes of the project. Right-click a property and select Properties to modify the property, change General | character set from use Unicode character set to not set!

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.