vs2005 build the wxwidgets for wince with windows mobile 6 sdk

来源:互联网 发布:淘宝店铺如何成为天猫 编辑:程序博客网 时间:2024/06/05 07:59

You will need wxWidgets 2.6.3 RC2 or later to create Windows Mobile5.0-specific applications or Pocket PC 2003 applications that will workcorrectly on Windows Mobile 5.0.

To build Windows Mobile 5.0-specific applications you needVisual Studio 2005, which costs money, but to build Pocket PC orSmartphone 2003 applications that will also run on Windows Mobile 5.0devices, you only need Embedded Visual C++ 4.0, which is free. Thissection assumes you are using Visual Studio 2005.

Before compiling wxWidgets, install VS 2005 and download andinstall the required SDKs: Windows Mobile 5.0 Pocket PC and/or WindowsMobile 5.0 Smartphone. Be sure to install these BEFORE you open anywxWidgets projects.

Open build/wince/wx.vcw in VS 2005. It will prompt you toconvert allproject files, convert them. When the conversion finishes, VS 2005should list 6 'Solutions' in the Solutions Explorer ( gl, mono,wxexpat, wxjpeg, wxpng, wxzlib). You will need to adjust setting ineach of those projects to make it compile. To change the properties foreach project in the workspace, Right-click on the project, and select"Properties". In the tree on the left side, go to "ConfigurationProperties |Librarian | General | Output File", and edit it so it reads (forexample) ../../lib/$(PlatformName)/$(ConfigurationName)/wx_mono.lib.

Set under C/C++/Precompiled Header the value of Create/UsePrecompiled Header to Not Using Procompiled Header (only underworkspace gl and mono).

Then set the current configuration to the desired one (for example, Windows Mobile 5.0 Pocket PC)and compile each project. You may get some strange errors about a missing clthumb command but try again with F7 and eventuallyit will compile (only if you forget the precompiled header option).

原创粉丝点击