wxWidgets Setup Memo for VS2008SP1

  1. Download and install wxMSWS from here.
    • Let me assume wxWidgets dir to c:\wx2.
    • I used version 2.8.9.
  2. Edit header file to enable GLCANVAS and ODBC
    1. Open setup.h in include\wx\msw.
    2. Edit it as:
      • #define wxUSE_GLCANVAS 1
      • #define wxUSE_ODBC 1
    3. Save it.
  3. Rebuild it as described in this page:
    1. Open wx.dsw in build\msw.
    2. If you are using VS2008, convert the project file to newer versions. And then save the projects and solution files.
    3. Choose "Unicode Debug" and "Unicode Release" as your build target.
    4. Then build it.
  4. To create your original project, you have to prepare an empty project file for Win32 application as described in this page.
    • Win32 application &&
    • Windows application &&
    • Empty application
  5. Set your wxWidgets dir as an environment variable WXWIN.
  6. Then configure the project file as follows after adding one empty .cpp file:
    • Include path:
      • [Debug] $(WXWIN)\lib\vc_lib\mswud;$(WXWIN)\include
      • [Release] $(WXWIN)\lib\vc_lib\mswu;$(WXWIN)\include
    • Preprocessor definition:
      • [Release] WIN32;__WXMSW__;_WINDOWS;NOPCH
    • Library Path:
      • [Common] $(WXWIN)\lib\vc_lib
    • Additional Library:
      • [Debug] wxmsw28ud_html.lib wxmsw28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib winmm.lib comctl32.lib rpcrt4.lib wsock32.lib odbc32.lib
      • [Release] wxmsw28u_html.lib wxmsw28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib winmm.lib comctl32.lib rpcrt4.lib wsock32.lib odbc32.lib
There are many wxWidgets documents, some of them may be old or not correct however. A difficult step to use wxWidgets is to identify what documents are appropriate for .

0 件のコメント: