Analyse memory leak [almost solved]
-
First of all: You will need the professional version of Visual Studio and Qt's Visual Studio AddIn installed to be able to compile and debug Qt programs in VS; maybe the community edition will suffice some day in the future.
You can create a solution file from your .pro-file using the command
@%QTDIR%\bin\qmake -spec %QMAKESPEC% -tp vc -recursive@
externally and load the solution into VS as any other solution file where QMAKESPEC is something like C:\Qt\5.4.0\mkspecs\win32-msvc2013.
-
Yes I saw.
Thanks for your help !
it's works for the creation of solution under MVS
I try to compile but I have one error :
@Erreur 1 error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets 64 5 ULD@Thx again ;-)
-
Seems you have more than one VS installed and maybe qmake does not know which to use.
You can try the following: In the start menu find Microsoft Visual Studio 2012 and there Visual Studio Tools and there open the correct Command Prompt, change to the directory of your .pro-file and there use the command above:
@%QTDIR%\bin\qmake -spec %QMAKESPEC% -tp vc -recursive@
EDIT: There is also a menu point QT5/Open Qt Project file (.pro) in VS after you installed the Qt's VS Add-In. Maybe its working better in the meanwhile (It tended to be rather slow with big programs and I forgot about it).