Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Visual Studio Add-in: Difference between revisions
AutoSpider (talk | contribs) (Simplify punctuation) |
|||
Line 4: | Line 4: | ||
'''French translators see also:''' http://qt-devnet.developpez.com/tutoriels/add-in-visual-studio/compiler/ | '''French translators see also:''' http://qt-devnet.developpez.com/tutoriels/add-in-visual-studio/compiler/ | ||
= Qt Visual Studio | = Qt Visual Studio Tools = | ||
== | === Get the sources === | ||
Use Git to check out the Qt Visual Studio Tools sources that are hosted at: http://code.qt.io/cgit/qt-labs/vstools.git | |||
To create a repository clone, execute the following command: | To create a repository clone, execute the following command: | ||
Line 14: | Line 14: | ||
<code lang="bash">git clone git://code.qt.io/qt-labs/vstools.git</code> | <code lang="bash">git clone git://code.qt.io/qt-labs/vstools.git</code> | ||
== | === Build a static Qt === | ||
Building the Qt Visual Studio Tools from sources requires a static build of Qt (version 5.6.0 or newer).Supported | |||
compilers are MSVC 2013 or newer, GCC 4.7 or newer, and Clang 3.1 or newer. See the Qt documentation | |||
for the prerequisites and steps to build Qt from sources. https://wiki.qt.io/Building_Qt_5_from_Git#Windows<br /><br /> | |||
'''''Recommended configuration options:''''' configure -prefix %CD%\qtbase -release -static -static-runtime -opensource -nomake examples -nomake tests<br /> | |||
'''''Recommended (n)make options:''''' (n)make module-qtbase | |||
=== Build the Qt Visual Studio Tools === | |||
''''' | Change the directory into 'src' and run 'qmake && make' (or 'mingw32-make', 'nmake' ...) to build | ||
the Qt Visual Studio Tools command line applications. Once finished, open the solution QtVsTools.sln | |||
in Visual Studio and build the solution. | |||
=== | === Build the Qt Visual Studio Tools documentation === | ||
Run 'qmake && make docs' (or 'mingw32-make docs', 'nmake docs' ...) from the root directory to | |||
build the Qt Visual Studio Tools documentation. You need to have 'qdoc' and friends built already. | |||
See the Qt documentation for the prerequisites and steps to build Qt documentation from sources. | |||
https://wiki.qt.io/Building_Qt_Documentation | |||
=== How to debug the Qt Visual Studio Tools === | |||
To debug the resulting VSIX, select the 'QtVsTools' node, right click and choose 'Properties|Debug'. | |||
Update 'Start Action|Start external program:' to point to your Visual Studio 'devenv.exe' application. | |||
Update 'Start Options|Command line arguments:' with '/rootSuffix Exp'. Note: The implemented post | |||
build targets will only work reliable if you use the 'Exp' hive of Visual Studio. | |||
Studio | |||
Revision as of 15:03, 10 November 2016
French translators see also: http://qt-devnet.developpez.com/tutoriels/add-in-visual-studio/compiler/
Qt Visual Studio Tools
Get the sources
Use Git to check out the Qt Visual Studio Tools sources that are hosted at: http://code.qt.io/cgit/qt-labs/vstools.git
To create a repository clone, execute the following command:
git clone git://code.qt.io/qt-labs/vstools.git
Build a static Qt
Building the Qt Visual Studio Tools from sources requires a static build of Qt (version 5.6.0 or newer).Supported
compilers are MSVC 2013 or newer, GCC 4.7 or newer, and Clang 3.1 or newer. See the Qt documentation
for the prerequisites and steps to build Qt from sources. https://wiki.qt.io/Building_Qt_5_from_Git#Windows
Recommended configuration options: configure -prefix %CD%\qtbase -release -static -static-runtime -opensource -nomake examples -nomake tests
Recommended (n)make options: (n)make module-qtbase
Build the Qt Visual Studio Tools
Change the directory into 'src' and run 'qmake && make' (or 'mingw32-make', 'nmake' ...) to build the Qt Visual Studio Tools command line applications. Once finished, open the solution QtVsTools.sln in Visual Studio and build the solution.
Build the Qt Visual Studio Tools documentation
Run 'qmake && make docs' (or 'mingw32-make docs', 'nmake docs' ...) from the root directory to build the Qt Visual Studio Tools documentation. You need to have 'qdoc' and friends built already. See the Qt documentation for the prerequisites and steps to build Qt documentation from sources. https://wiki.qt.io/Building_Qt_Documentation
How to debug the Qt Visual Studio Tools
To debug the resulting VSIX, select the 'QtVsTools' node, right click and choose 'Properties|Debug'. Update 'Start Action|Start external program:' to point to your Visual Studio 'devenv.exe' application. Update 'Start Options|Command line arguments:' with '/rootSuffix Exp'. Note: The implemented post build targets will only work reliable if you use the 'Exp' hive of Visual Studio.