views:

70

answers:

1

Hi,

I am using Qt 4.6.2 with the latest version of the Visual Studio Add-In(1.1.5) with Visual Studio 2005 Professional.

I am finding that whenever I restart Visual Studio or switch build targets(I am building Win32 & x64, Debug/Release builds) all of my moc, uic & rcc files will be regenerated even when the .h/.ui/.qrc files have not been changed.

Any ideas on how to fix this? It is causing a significant increase in build times.

Zac

A: 

Hm, strange, I have checked with my settings, and don't find the same symptoms after switching Debug-Release. I used:

  • Visual Studio Add-In(1.1.5) - made update from 1.1.4

  • Visual Studio 2008 Pro

Here is my Qt Options dialog:

alt text

I'm building only Win32 target. Also you need to check MSVC compiler settings, for some rebuild options. Try default settings to apply.

Hope this information help.

mosg
Zac Shenker
I used default settings of the VS Add-in 1.1.5 and on my system Debug/Release directories have the same content, I mean have the same file names (but differs only by the size). You could try to set `UicDirectory`, `RccDirectory` and `MocDirectory` the same value - `.\GeneratedFiles\$(ConfigurationName)` and try to build your solution...
mosg