[Qt-interest] qmake and vs2010

René Reucher rene.reucher at batcom-it.net
Fri Mar 11 21:33:08 CET 2011


Am 11.03.2011 12:06, schrieb Francesco Lamonica:
 > I have not done any configuration on VS side yet, it's a vanilla
 > install. What happens is that i run qmake to generate the .vcprojx
 > file i open it with VS and when i press F7 (compile) nothing happens,
 > i immediately just get a message of unsuccessful build, but no moc'ing
 > happens, no .cpp is compiled, nothing at all.
 > I installed the vs-addin 1.1.8 and i tried to open my .pro file within
 > VS, that changed things a bit, the moc part takes place, but the
 > compilation fails since the uic does not get called.
 >
 > any idea about what i might be missing?
 >
 > thanks
 >
 > P.S. Obviously the .pro works like a charm on linux, VS2008 and Mac.
I had a similar issue on using "qmake -tp vc" caused by a wrong mkspec 
(though I'm not using any VS integration, I just create VC++ project 
files)... until I reconfigured / rebuilt Qt 4.7.2 with this configure 
command line:

E:\Qt> configure.exe -fast -opensource -release -platform win32-msvc2010

The mkspec chosen automatically was "win32-msvc2008" which causes qmake 
to create VC++ 2008 compatible .vcproj files. With the right mkspec of 
"win32-msvc2010" it now produces VC++ 2010 compatible .vcxproj files.

Hope this helps (provided that it's a similar situation)!

Cheers, René



More information about the Qt-interest-old mailing list