Windows CE - Использование теневых сборок
While developing for Windows CE you might want to compile a version of Qt for several different platforms and SDKs. In order to create those different builds of Qt you do not have to copy the whole Qt package or the Qt source. You are able to create multiple Qt builds from a single source tree. Such builds are called shadow builds.
Basically a shadow build is created by calling configure.exe from a different directory.
To make sure that the shadow build compiles correctly it is important that:
So lets assume you have installed Qt in C:\Qt\4.4.3 and you want to create a shadow build in C:\Qt\mobile5-release-shared:
- First add C:\Qt\mobile5-release-shared\bin to the PATH variable.
- Make sure the enviroment variables for your compiler are set.
Visual Studio includes vcvars32.bat for that purpose - or simply use the "Visual Studio Command Prompt" from the Start menu.
- Now navigate to your shadow build directory and run configure:
- To build Qt, you have to update your PATH, INCLUDE and LIB paths to point to your target platforms.
For a default installation of the Windows Mobile 5.0 Pocket PC SDK, you can do the following:
We have provided a convenience script for this called setcepaths. Simply type:
- Finally, to build the shadow build type:
- Вот и всё. You have successfully created a shadow build of Qt in C:\Qt\mobile5-release-shared.
|