簡體   English   中英

如何在Qt 5.7中使用Windows SDK?

[英]How to use Windows SDK in Qt 5.7?

我一直在嘗試在QT 5.7的QT Creator中使用Windows SDK。

我正在嘗試使用QT不支持的Bluetooth LE API。

我還為Windows.Devices.Bluetooth.Advertisement.h的標頭和庫安裝了Visual Studio 2015。

我已添加到.pro文件

INCLUDEPATH += "C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\winrt"
LIBS += -L"C:\Program Files (x86)\Windows Kits\10\Lib"
LIBS += -L"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib"

但是現在當我嘗試構建時,出現了8000個問題,例如:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\winrt\Windows.Foundation.h:9149: error: use of enum 'PropertyType' without previous declaration
         typedef enum PropertyType PropertyType;
                      ^

我嘗試為Visual Studio 2015安裝qt插件,但未顯示。

如何使Microsoft SDK與QT配合使用?

我已經使用miniGW編譯器安裝了QT,但是我需要使用MSVC編譯器來使錯誤消失。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM