How to generate .sln/.vcproj using qmake

前端 未结 4 1978
别跟我提以往
别跟我提以往 2020-12-08 08:23

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

qmake -project
qmake -tp vc test.pro

The answer is:

4条回答
  •  有刺的猬
    2020-12-08 09:08

    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

提交回复
热议问题