一.关联动态库
1.项目构建模式从调试模式(Debug)切换为发布模式(Relesaed)。
2.编译构建。
3.在发布模式的构建目录/released中,找到可执行文件。
4.将可执行文件取出来,放在一个新的文件夹中。
5.打开项目使用的[相关终端MinGW],进入新文件夹中。
6.使用windeployqt [可执行文件.exe],为程序关联动态库。
方式二:
PS C:\Users\19829\Desktop\text> D:\QT\6.7.0\msvc2019_64\bin\windeployqt.exe .\RadarLevelMeter.exe
PS C:\Users\19829\Desktop\text> D:\QT\6.7.0\msvc2019_64\bin\windeployqt.exe .\QUtils.dll
PS C:\Users\19829\Desktop\text> D:\QT\6.7.0\msvc2019_64\bin\windeployqt.exe .\CameraUSBPlugin.dll
PS C:\Users\19829\Desktop\text> D:\QT\6.7.0\msvc2019_64\bin\windeployqt.exe .\QUtils.dll