I managed to get QtPropertyBrowser building, but I had to manually edit the "Generated Files" section of the vcproj file that was created by the Qt VS plugin to remove a bogus "Debug" filter and add a build directive for "qteditfactory.moc".
I added the following to buildlib.vcproj:
<File
RelativePath="debug\qteditorfactory.moc"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\src\qteditorfactory.cpp"
CommandLine="Rem IncrediBuild_AllowRemote
Rem IncrediBuild_OutputFile debugqteditorfactory.moc
"$(QTDIR)\bin\moc.exe" -D_WINDOWS -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_QTPROPERTYBROWSER_EXPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -D_WINDLL -I"$(QTDIR)\include\QtCore\." -I"$(QTDIR)\include\QtGui\." -I"$(QTDIR)\include\." -I".\..\src\." -I"$(QTDIR)\include\ActiveQt\." -I".\debug\." -I"$(QTDIR)\mkspecs\win32-msvc2008\." "..\src\qteditorfactory.cpp" -o "debug\qteditorfactory.moc"
"
AdditionalDependencies="..\src\qteditorfactory.cpp;Rem"
Outputs="debug\qteditorfactory.moc"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\src\qteditorfactory.cpp"
CommandLine="Rem IncrediBuild_AllowRemote
Rem IncrediBuild_OutputFile releaseqteditorfactory.moc
"$(QTDIR)\bin\moc.exe" -DQT_NO_DEBUG -DNDEBUG -D_WINDOWS -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_QTPROPERTYBROWSER_IMPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DNDEBUG -D_WINDLL -I"$(QTDIR)\include\QtCore\." -I"$(QTDIR)\include\QtGui\." -I"$(QTDIR)\include\." -I".\..\src\." -I"$(QTDIR)\include\ActiveQt\." -I".\release\." -I"$(QTDIR)\mkspecs\win32-msvc2008\." "..\src\qteditorfactory.cpp" -o "release\qteditorfactory.moc"
"
AdditionalDependencies="..\src\qteditorfactory.cpp;Rem"
Outputs="release\qteditorfactory.moc"
/>
</FileConfiguration>
</File>
<File
RelativePath="debug\qteditorfactory.moc"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\src\qteditorfactory.cpp"
CommandLine="Rem IncrediBuild_AllowRemote
Rem IncrediBuild_OutputFile debugqteditorfactory.moc
"$(QTDIR)\bin\moc.exe" -D_WINDOWS -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_QTPROPERTYBROWSER_EXPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -D_WINDLL -I"$(QTDIR)\include\QtCore\." -I"$(QTDIR)\include\QtGui\." -I"$(QTDIR)\include\." -I".\..\src\." -I"$(QTDIR)\include\ActiveQt\." -I".\debug\." -I"$(QTDIR)\mkspecs\win32-msvc2008\." "..\src\qteditorfactory.cpp" -o "debug\qteditorfactory.moc"
"
AdditionalDependencies="..\src\qteditorfactory.cpp;Rem"
Outputs="debug\qteditorfactory.moc"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCustomBuildTool"
Description="MOC ..\src\qteditorfactory.cpp"
CommandLine="Rem IncrediBuild_AllowRemote
Rem IncrediBuild_OutputFile releaseqteditorfactory.moc
"$(QTDIR)\bin\moc.exe" -DQT_NO_DEBUG -DNDEBUG -D_WINDOWS -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_QTPROPERTYBROWSER_IMPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DNDEBUG -D_WINDLL -I"$(QTDIR)\include\QtCore\." -I"$(QTDIR)\include\QtGui\." -I"$(QTDIR)\include\." -I".\..\src\." -I"$(QTDIR)\include\ActiveQt\." -I".\release\." -I"$(QTDIR)\mkspecs\win32-msvc2008\." "..\src\qteditorfactory.cpp" -o "release\qteditorfactory.moc"
"
AdditionalDependencies="..\src\qteditorfactory.cpp;Rem"
Outputs="release\qteditorfactory.moc"
/>
</FileConfiguration>
</File>
To copy to clipboard, switch view to plain text mode
I am now able to get a debug and release build of QtPropertyBrowser 2.5.1 using Qt 4.6.2 on Window 7. I believe that the problem here is a bug with the Qt VS plugin. Anyone care to comment on that?
Bookmarks