Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
746 views
in Technique[技术] by (71.8m points)

qt - How to generate .sln/.vcproj using qmake

I have main.cpp in c:est folder and do the following:

qmake -project
qmake -tp vc test.pro

The answer is:

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:Qt2010.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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

try using this from Qt command prompt and make sure you are in the same directory of the .pro file:

qmake -spec win32-msvc2008 -tp vc

if you are using VS2005, 2010, 2012, or 2013, replace win32-msvc2008 with win32-msvc2005, win32-msvc2010, win32-msvc2012, or win32-msvc2013


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...