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.