[Interest] qmake -spec win32-msvc2010 generates Makefiles but no project file

142 views
Skip to first unread message

Sherif Ghali

unread,
Mar 29, 2012, 1:59:00 PM3/29/12
to inte...@qt-project.org
The title says it all. With Qt 4.7.x and Visual C++ 2008 one used to
be able to generate a Visual Studio project file by running 'qmake
-spec win32-msvc2008' from the Qt command window.

Now with Qt 4.8.1 and Visual C++ 2010, running 'qmake -spec
win32-msvc2010' only generates Makefile, Makefile.debug, and
Makefile.release, but no VS project file. (The Makefile is otherwise
usable with nmake just fine.)

What am I missing?

Sherif
_______________________________________________
Interest mailing list
Inte...@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Thiago Macieira

unread,
Mar 29, 2012, 3:43:34 PM3/29/12
to inte...@qt-project.org
On quinta-feira, 29 de março de 2012 13.59.00, Sherif Ghali wrote:
> The title says it all. With Qt 4.7.x and Visual C++ 2008 one used to
> be able to generate a Visual Studio project file by running 'qmake
> -spec win32-msvc2008' from the Qt command window.

You need to add: -tp vc

--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

signature.asc

1+1=2

unread,
Mar 29, 2012, 4:31:55 PM3/29/12
to Sherif Ghali, inte...@qt-project.org
Hi Sherif,

Generated makefiles for nmake or generated vcproj for visual studio,
depending on which TEMPLATE you used in your .pro file.

app / lib ==> makefiles
vcapp / vclib ==> .vcproj

As Thiago said, the convenient way to do this is add "-tp vc" to
qmake's command line, if you TEMPLATE is app or lib.

Regards,

Debao

Reply all
Reply to author
Forward
0 new messages