首页 > 其他 > 详细

qt qextserialport __imp_SetupDiGetDeviceRegistryPropertyW

时间:2019-03-14 15:48:34      阅读:176      评论:0      收藏:0      [点我收藏+]

使用 qextserialport 编写串口助手的时候,提示找不到 __imp_SetupDiGetDeviceRegistryPropertyW,经过摸索有以下两种解决方法:

第一种:
把相应的源文件手动加入到项目中,不要加入 qextserialport.pri 文件,在 项目 pro 文件中,按照当前的系统平台,加入库文件,比如说: win 平台,需要加入

win32:LIBS             += -lsetupapi -ladvapi32 -luser32

第二种:
不要手动加入源文件到项目中。在 项目 pro 文件中加入 qextserialport.pri 文件。

include(3rdparty/qextserialport/src/qextserialport.pri)

qt qextserialport __imp_SetupDiGetDeviceRegistryPropertyW

原文:https://www.cnblogs.com/ramlife/p/10530429.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!