How to generate .sln/.vcproj using qmake

一笑奈何 提交于 2019-11-28 05:31:47
Ayman

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

I would suggest you use the following line :

qmake -tp vc Test.pro -o Test.vcproj

If you start a new project, I would really recommend you to test this scrits package... A friend of mine wrote them and they are excellent ! Take 10 minutes to read how to create them, and in no time, you'll have all the scripts you need to create PRO, VCPROJ and build in one command...

http://www.dprog.net/joomla/index.php?option=com_content&view=article&id=39:qt-integration-scripts&catid=32:qt-integration-scripts&Itemid=47

It seems I've installed bundle that doesn't support MSVC (MinGW only). Going to download sources and install Qt according to this and that.

Most simple one qmake -project qmake -t vcapp

and you get the .vcproj file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!