QtBluetooth on Windows not working
-
That's great! Thanks for the info, @aha_1980 !
-
I've had the same issue just a few days ago. You need to use MSVC compiler instead of MinGW, then it works.
Well, kind of works because BT support on Windows is very weak.
wrote on 20 Aug 2018, 14:16 last edited by@sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?
-
@sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?
@elsa said in QtBluetooth on Windows not working:
tell me how to set up the MSVC compiler?
Did you already install Visual Studio or Microsoft Build Tools and Qt for Visual Studio?
-
@sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?
@elsa said in QtBluetooth on Windows not working:
@sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?
In short, it's simple:
- download and install Microsof Visual Studio (it's free nowadays), make sure to check C++ download option (you don't need any of the rest: .Net, embedded, other platforms, Python and whatnot)
- open Qt Maintenance Tool and add MSVC 2017 package for your Qt version
- that's it, Qt Creator should now recognize that version, you just need to select it for your project in project settings
-
@elsa said in QtBluetooth on Windows not working:
@sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?
In short, it's simple:
- download and install Microsof Visual Studio (it's free nowadays), make sure to check C++ download option (you don't need any of the rest: .Net, embedded, other platforms, Python and whatnot)
- open Qt Maintenance Tool and add MSVC 2017 package for your Qt version
- that's it, Qt Creator should now recognize that version, you just need to select it for your project in project settings
wrote on 21 Aug 2018, 08:21 last edited by@sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.
-
@sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.
@elsa said in QtBluetooth on Windows not working:
@sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.
Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)
-
@elsa said in QtBluetooth on Windows not working:
@sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.
Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)
@sierdzio said in QtBluetooth on Windows not working:
Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)
I may be of help here :)
@elsa
IIRC MSVC installation does not come automatically with the c++ debuger.
You'll need to download and install the Windows Software Developer Kitto be found here, I think. It's been a while when I installed it.
https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk -
@sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.
@elsa
Hi
Can be many reasons
https://forum.qt.io/topic/69130/unexpected-cdb-exitAlso, are you using Creator Or Visual Studio to run it?
Ahh, @J-Hilk beat me to it :)
You might need the standalone debugger if running from Creator. -
@sierdzio said in QtBluetooth on Windows not working:
Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)
I may be of help here :)
@elsa
IIRC MSVC installation does not come automatically with the c++ debuger.
You'll need to download and install the Windows Software Developer Kitto be found here, I think. It's been a while when I installed it.
https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk -
@elsa
Check the kits and see if any red marks.
15/15