How to generate .sln/.vcproj using qmake
Hi!
I have main.cpp in c:\test folder and do the following:
Code:
qmake -project
qmake -tp vc test.pro
The answer is:
Code:
WARNING: Unable to generate output for: C:/test//Makefile.Debug [TEMPLATE vcapp]
WARNING: Unable to generate output for: C:/test//Makefile.Release [TEMPLATE vcapp]
But, I don't need make files. I need .vcproj!
Environment: Windows XP Pro SP3, MSVC 7.1 and 8.0. Qt is installed in C:\Qt\2010.02 (LGPL version). Commands are run from Qt Command Prompt.
What's wrong with it? How to generate .sln/.vcproj? May I generate them for MSVC 7.1 and 8.0?
Thanks
Re: How to generate .sln/.vcproj using qmake
Quote:
Originally Posted by
stas
Environment: Windows XP Pro SP3, MSVC 7.1 and 8.0. Qt is installed in C:\Qt\2010.02 (LGPL version). Commands are run from Qt Command Prompt.
What's wrong with it? How to generate .sln/.vcproj? May I generate them for MSVC 7.1 and 8.0?
First, be sure you have this Qt package: http://get.qt.nokia.com/qt/source/qt...6.2-vs2008.exe
Quote:
Originally Posted by
stas
I have main.cpp in c:\test folder and do the following:
Code:
qmake -project
qmake -tp vc test.pro
With qmake, you only do:
Code:
qmake -tp vc test.pro
Re: How to generate .sln/.vcproj using qmake
Quote:
Originally Posted by
lukass
Yes, you are right, I used MinGW bundle. Now, I've downloaded Qt sources, built them with MSVC 2005 using:
Code:
configure -static -debug-and-release -opensource -platform win32-msvc
nmake
But
Code:
qmake -tp vc test.pro
generates .dsp, not .vcproj. Is it even possible to generate .vcproj that is native for MSVC 2005???
Thanks a lot
Re: How to generate .sln/.vcproj using qmake
Did you make the .pro first using
qmake -project ?
These 2 does work for me always -
qmake -project
qmake -tp vc
Re: How to generate .sln/.vcproj using qmake
Quote:
Originally Posted by
stas
generates .dsp, not .vcproj. Is it even possible to generate .vcproj that is native for MSVC 2005???
The easiest way is to launch MSVC, then goto "Qt" menu and select "Open .pro file". It'll create the native files for you then.