QT打包动态库加cmake编译报错warning:Cannot find Visual Studio installation directory,VCINSTALLDIR is not set.

原文

打包动态库

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 (x86)\Microsoft Visual Studio 12.0\VC

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值