Start QT-wince [M8 SDK]

Source: Internet
Author: User

I. Build the QT-wince Environment

A) install vs2005 first. Installing vs2005 is simple. Follow the Wizard to select "smart device development" for custom installation ".

B) install the M8 SDK. M8sdk_0903_20090221.msi, which can be downloaded from the meizu website!

C) download the source code package of QT 4.5 wince, compile and install it. For more information, seeArticleQT/qte sdk compilation and installation.

D) install the synchronization software Microsoft activesync4.5 Chinese Simplified version.

 

2. Compile QT-WinCEProgram

Command Line Method (IDE is not required ):

Set temporary environment variables:

Set include = D: \ Program Files \ Microsoft Visual Studio 8 \ Vc \ ce \ include; D: \ Program Files \ Windows CE tools \ wce600 \ m8sdk \ include \ armv4i

Set Lib = D: \ Program Files \ Microsoft Visual Studio 8 \ Vc \ ce \ Lib \ armv4i; D: \ Program Files \ Windows CE tools \ wce600 \ m8sdk \ Lib \ armv4i

Set Path = D: \ Program Files \ Microsoft Visual Studio 8 \ Vc \ ce \ bin \ x86_arm; % PATH %

First, use the vs2005 command line to enter the program directory to be compiled, and execute H: \ qt4.5 \ wince \ bin \ qmake.exe-project-O example. Pro. At this time, the example. Pro file can be generated.

Then, enter the following in the vs2005 command line:

H: \ qt4.5 \ wince \ bin \ qmake-spec .. \ mkspecs \ wince60standard-armv4i-msvc2005-Win32-O makefile example. pro at this time, the MAKEFILE file has been generated.

You cannot set "H: \ qt4.5 \ wince \ bin" for environment variables. Otherwise, an error occurs.

Compile with IDE: [to be supplemented]

 

3. Deployment of QT-wince Program

You can directly cp the *. EXE file developed above and the *. dll file it requires together to a directory.

If you want to deploy the program *. in the form of cab, in the "solution" of vs2005, click "file"-> "new"-> "project"-> click "other ", for smart device deployment, click "properties" in the newly created cab project after the Wizard is created, and generate the smart device.

 

IV,CodeWrite

This step is no different from the common QT code. See the built-in QT routine.

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.