Experience WXWindows installation

xiaoxiao2021-03-06  20

Put the wxwindows2.4.2 downloaded from wxwindows this evening, and successfully compiled several WXWINDOWS comes with a successful compile of your own experience and experience in VC6.0. .

WXWindows is an open source project developed by SourceForge, providing a series of wxwidgets that encapsulate APIs on Windows, which use C to encapsulate Win32 API. If you can enter WXWindows website (there are many people suspect This website http://www.wxwindows.org/ is really existent, suspects its authenticity, because many people say that they have never visited this website, this may be a proxy problem, or there may be domestic education network If you can't access it, I have a successful visit to this website every time. You will find that their logo is now wxwidgets.

Personally think that it is still better to do it. However, they have made a series of wxwidgets.

WXWINDOWS All classes please see: http://www.wxwindows.org/classes2.htm

The latest version of WXWindows is 2.4.4, I downloaded 2.4.2, is a relatively stable version. And 2.5.4 is still in the test. (In fact, I also downloaded 2.4. 2 version ^ _ ^)

Here is the official download link on WXWINDOWS, it is not a real link, it will go to Sourceforge, then ask you to choose a server download from you.

WXMsw-2.5.4-SETUP.ZIP (1) wxmsw-2.5.4.zip (2)

WXMsw-2.4.2-SETUP.ZIP (1) >>> This is a stable version wxmsw-2.4.2.zip (2)

Generally, SETUP's file is larger than zip, see which one you want to download. If you like a fool, download Setup. Conversely, if you like yourself, let's eat, then download the zip version. Personally feel that if you are more familiar with some class libraries, these two have no difference.

Suppose you downloaded Setup, after downloading, install it below the C: / Program Files / WXWindows242 directory.

If it is ZIP, you can decompress the C: / Program Files / WXWINDOWS242 directory.

But I don't think it is a big merit this now. This is just the success of the file. There are many specific things and good time things to do. Below me one by one:

First of all, if you have patient read English, you'd better look at Install.txt in the wxwindows242 / docs / msw directory, as far as I know, we use VC or more, for our own IDE, Look at the set of settings related to the IDE in install.txt.

Then, if you don't want to see this English install.txt, or you don't understand what it will do, then you will see how I did it. Anyway, I don't quite understand what it wants me to do. Anyway, final I am an example that I can compile it.

The next thing to do is to open wxwindows.dsw under wxwindows / src directory (if not, open wxwindows.dsp is also available), don't tell me you didn't put VC ~~

After opening, open WXWindows Project's build menu, select Win32 Debug or Win32 Release configuration, then compile it. Reminder: You can also choose Batch Build, I just selected this way of compilation, but harm me, actually spent It is close to an hour (feeling, no specific calculations and statistics), before compiling the LIB, DLL.

After compiling, there will be such a file in the lib directory. There are u and no u, the difference is the unicode version, one is the ANSI version; there are D and no D, the difference is the previous one is the debug version, the latter one It is a release.

wxmsw.lib wxmswd.lib; ANSI Release / Debug wxmswu.lib wxmswud.lib; UNICODE Release / Debug wxmsw24.lib wxmsw24d.lib; ANSI DLL Release / Debug wxmsw24u.lib wxmsw24ud.lib; UNICODE DLL Release / Debug course because I choose to The batch was compiled, and finally a similar JPEG.LIB, PNG.Lib, Tiff.Lib, Zlib.Lib, And Regex.lib.

When compiled, the things in Settings are temporarily doing anything, I am not moving. Don't use the MFC, that is, NOT USE MFC.

Here is a lot of part of my compilation results to delete:

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

---------- Configuration: JPEG - Win32 Release ---------- JPEG.LIB - 0 Error (s), 0 Warning (s) --------- -Configuration: JPEG - Win32 Debug ---------- JPEGD.LIB - 0 Error (s), 0 Warning (s) ---------- Configuration: PNG - Win32 Release - -------- png.lib - 0 Error (s), 0 Warning (s) ---------- Configuration: PNG - Win32 Debug ---------- PNGD .lib - 0 Error (s), 0 Warning (s) ---------- Configuration: Regex - Win32 Release --------- Regex.lib - 0 Error (s), 0 Warning (s) ---------- Configuration: Regex - Win32 Debug ---------- Regexd.lib - 0 Error (s), 0 Warning (s) ---- ------ Configuration: TIFF - Win32 Release ----------

Tiff.lib - 0 Error (s), 7 Warning (s) ---------- Configuration: TIFF - Win32 Debug ---------- Tiffd.Lib - 0 Error (s) , 7 Warning (s) ---------- Configuration: Zlib - Win32 Release -------------------- Configuration: wxwindows - Win32 Release Unicode DLL ---------- Creating ../lib/mswdllu/wx/setup.h from ../include/wx/msw/setup.h has copied 1 file. Creating library ../lib/wxmsw24u.lib and object ../lib/wxmsw24u.expwxmsw24u.dll - 0 Error (s), 2 Warning (s) ---------- Configuration: Zlib - Win32 Debug -------------------- Configuration: wxwindows - Win32 Debug Unicode DLL -------- Creating ../lib/mswdllud/wx/setup. H from ../include/wx/msw/setup.h has copied 1 file. Creating library ../lib/wxmsw24ud.lib and object ../lib/wxmsw24ud.expwxmsw24ud.dll - 0 Error (s), 0 Warning (s) -------- CONFIGURATION: WXWINDOWS - WIN32 Release Unicode ---------- Creating ../lib/mswu/wx/setup.h from ../include/wx/msw/setup.h has copied 1 file. WXMswu.lib - 0 Error (s), 2 Warning (s) ---------- Configuration: wxwindows - Win32 Debug Unicode -------- Creating ../lib/mswud/ WX / setup.h from ../include/wx/msw/setup.h has copied 1 file. WXMswud.lib - 0 Error (s), 0 Warning (s) ---------- Configuration: wxwindows - Win32 Release DLL -------- Creating ../lib/mswdll/ WX / setup.h from ../include/wx/msw/setup.h has copied 1 file. Creating library ../lib/wxmsw24.lib and object ../lib/wxmsw24.exp

WXMsw24.dll - 0 Error (s), 2 Warning (s) ---------- Configuration: wxwindows - Win32 Debug DLL -------- Creating ../lib/mswdlld/ WX / setup.h from ../include/wx/msw/setup.h has copied 1 file. Creating library ../lib/wxmsw24d.lib and object ../lib/wxmsw24d.expwxmsw24d.dll - 0 Error (s), 0 Warning (s) ---------- Configuration: wxwindows - Win32 RELEASE ---------- Creating ../lib/msw/wx/setup.h from ../include/wx/msw/setup.h has been copied. WXMsw.lib - 0 Error (s), 2 Warning (s) ---------- Configuration: wxwindows - Win32 Debug -------- CREATING ../lib/mswd/wx /Setup.h from ../include/wx/msw/setup.h has been copied. WXMswd.lib - 0 Error (s), 0 Warning (s) ----------------------------------- ------------------------------------------ Compile work, we can I started to experience WXWindows to provide us Samples. I compiled Menu and Image, this compilation also does not need to use MFC. Before compiling, it is best to set the VC's included path (not set, then you are WXWindows installation directory is built under the project), the included path is:

Include Path: C: / Program Files / WXWindows242 / Include

C: / program files / wxwindows242 / incrude / wx

LIB path Add: C: / Program Files / WXWindows242 / lib

As for the combination of WXWindows and MFC, write a document later.

Speaking of this rumor of executable files, I have a clear understanding tonight, below is the debug version, distribution, and use of the IMAGE.EXE file size using wxwindows:

Image / debug 2.19 MB (2,297,932 bytes) Image / Release 976 KB (999, 424 bytes) Image / ReleaseDLL 72.0 KB (73,728 bytes)

Let's see it. In order to save hard disk space, we should try to use the Release version and DLL version (note that these three versions are not using MFC, just the final DLL version, need corresponding DLL file support.

The following is given below, in order not to slow the speed slow, only give the link, please click View:

Http://blog.9cbs.net/iMages/blog_9cbs_net/huyoo/60597/o_menusample.gifhtp://blog.9cbs.net/iMages/blog_9cbs_net/huyoo/60597/o_start.gifhtp://blog.9cbs.net/ Images / blog_9cbs_net / huyoo / 60597 / o_open.gifhttp: //blog.9cbs.net/iMages/blog_9cbs_net/huyoo/60597/o_show.gif

Finally, I wish you all good luck and play!!!

If there is a wxwindows resources, I will add adding adding on this page.

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

WXWindows 2 WXWINDOWS 2 C to write cross-platform program - Chinese manual [recommended] English original detail WXWINDOWS portable C and Python toolbox introduction [recommended] English original Microsoft pressure wxwindows to change the WXWIDGETS WXWINDOWS FRAMEWORK9CBS Technology Center WXWindows "Hello World" wxwindows events Table Lanye Wear BLOG more [Recommend] WXWIDGETS (WXWindows) programming tool [recommended] WXWindows is not cool

转载请注明原文地址:https://www.9cbs.com/read-42884.html

New Post(0)