I am using QT Creater 1.0.0. and QT 4.5.0 LGPL license.
I want to develop an application in QT that will run on a windows mobile 6.0.
I have created a simple project in QT and I want create the visual project files so that I can compile on window mobile using visual studio and test using the emulator.
I am using Visual Studio 2008 TS and have the windows mobile 6 SDK installed.
However, I have created my project in QT and I browse to where the project is located using QT command prompt.
I am in the root of my project and I type qmake -tp vc I am get this output:
D:\Projects\PDA_Phone\PDA_Phone>qmake -t vc
WARNING: Unable to generate output for: D:/Projects/PDA_Phone/PDA_Phone//Makefile.Debug [TEMPLATE vc]
WARNING: Unable to generate output for: D:/Projects/PDA_Phone/PDA_Phone//Makefile.Release [TEMPLATE vc]
My directory contains the following files:
Directory of D:\Projects\PDA_Phone\PDA_Phone
06/25/2009 05:37 PM <DIR> .
06/25/2009 05:37 PM <DIR> ..
06/25/2009 05:18 PM <DIR> debug
06/25/2009 05:17 PM 187 main.cpp
06/25/2009 05:17 PM 233 mainwindow.cpp
06/25/2009 05:17 PM 325 mainwindow.h
06/25/2009 05:17 PM 1,626 mainwindow.ui
06/25/2009 05:37 PM 5,242 Makefile
06/25/2009 05:17 PM 307 PDA_Phone.pro
06/25/2009 05:17 PM <DIR> qtc-gdbmacros
06/25/2009 05:17 PM <DIR> release
06/25/2009 05:17 PM 3,146 ui_mainwindow.h
7 File(s) 11,066 bytes
5 Dir(s) 10,922,962,944 bytes free
Can anyone tell me if I am doing anything wrong with the above. I am totally new at using QT.
Many thanks for any advice,
In Microsoft Visual Studio, select Extensions > Manage Extensions > Online, and search for Qt Visual Studio Tools to install or update Qt VS Tools.
The behavior of qmake can be customized when it is run by specifying various options on the command line. These allow the build process to be fine-tuned, provide useful diagnostic information, and can be used to specify the target platform for your project.
Are you sure you're using qmake -tp vc? You mentioned it twice, but your output above shows you're using qmake -t vc. (note the -t instead of -tp)
You either need to use:
qmake -tp vc
or
qmake -t vcapp
It could also be a bad QMAKESPEC environment variable.
Try this:
set QMAKESPEC=win32-msvc2008
qmake -tp vc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With