QTパッケージダイナミックライブラリとcmakeコンパイルエラーwarning:Cannot find Visual Studio installation directory,VCINSTALLDIR is not set.

985 ワード

テキスト
ダイナミックライブラリのパッケージング
Qt公式開発環境にはwindeployqt.というツールが付属しています.exe.
win+r次にcmdを入力してコマンドプロンプト行を開き、コンパイル済みのソフトウェアディレクトリの下に切り替え、ソフトウェア名をabcと仮定する.exe、コマンドラインにwindeployqt abcを入力します.exeでは、必要なダイナミックライブラリをソフトウェアディレクトリにコピーします.
C:\Qt\Qt5.13.1\5.13.1\msvc2015_64\bin\windeployqt.exe demo.exe
C:\Qt\Qt5.13.1\5.13.1\winrt_x64_msvc2017\bin\windeployqt.exe
C:\Qt\Qt5.13.1\5.13.1\msvc2017_64\bin\windeployqt.exe
C:\Qt\Qt5.13.1\5.13.1\msvc2017\bin\windeployqt.exe
C:\Qt\Qt5.13.1\5.13.1\mingw73_64\bin\windeployqt.exe
C:\Qt\Qt5.13.1\5.13.1\winrt_x64_msvc2017\bin\windeployqt.exe
C:\Qt\Qt5.13.1\5.13.1\winrt_x64_msvc2015\bin\windeployqt.exe
C:\Qt\Qt5.13.1\5.13.1\winrt_armv7_msvc2015\bin\windeployqt.exe 
C:\Qt\Qt5.13.1\5.13.1\winrt_armv7_msvc2017\bin\windeployqt.exe 

Warnning
warning:Cannot find Visual Studio installation directory,VCINSTALLDIR is not set.
環境変数VCINSTALLDIRの値をVSディレクトリに設定します.たとえば、私のC:Program Files(x 86)Microsoft Visual Studio 12.0VC