This is a discussion which has spilled over from the mobility feedback mailing list. I only mention that so people don't think I'm guessing way to far ahead of the problem, which in this particular case is that Mobility has been configured and built for Windows XP and is then being used for a WinCE project.
The core points of what follows have already appeared on the mailing list but I'm adding an exruciating amount of detail to try to cover all bases and so that it might help out other people, including those that might be new to developing Qt for WinCE in general.
Building Qt Mobility for WinCE
1) Make sure that Qt 4.6 for WinCE has been installed and is working
- for the sake of example we'll say that it is installed in C:\Qt\4.6\WinCE2) Download the Qt Mobility package and unpack it somewhere
3) Open the Visual Studio command prompt OR Open a command prompt and set the compiler to use
4) Go to the directory where Qt Mobility was unpacked
to see the options
- For example, use
to use the compiler from Visual Studio 2008
5) Make sure that Qt for WinCE is in your path
- you can check this by typing
at the command line
- C:\Qt\4.6\WinCE\bin should be in the path, and should occur before any other Qt bin directories
- you can also use
to be sure that the right qmake is being used
- if it isn't in your path, add it in
- for our example path, use
Option A - Compiling from the command line
6) Setup the paths needed to compile and link WinCE code
- Once Qt for WinCE is in your path, use
to get a list of SDKs that setcepaths can setup
setcepaths (sdk argument here)
to set up the paths
- For example, to setup for Windows Mobile 6.0 with Visual Studio Professional 2008, use
Note: As far as I'm aware steps 1 to 6 will be required to build pretty much anything using Qt for WinCE from the command line.
7) Configure mobility
8) Run 9) Run
to get a list of options
- It's probably a good idea to match the release and debug options to the options that were used with your Qt install, although the defaults should be OK for most people
- If you're happy with installing Qt Mobility to C:\QtMobility, just use
- If you'd like Qt Mobility to be installed elsewhere, use
configure -prefix (install directory goes here)
Option B - Compiling from Visual Studio
6) Configure mobility
- Almost the same as in step 6 from "Compiling from the command line"
- Add the option -vc so that a Visual studio solution file is generated
7) Open the generated solution file in Visual Studio, right click on the solution and choose "Build Solution"