QtBluetooth is not recognized on Linux.
-
@jenya7 said in QtBluetooth is not recognized on Linux.:
Linux doesn't see the library.
How did you install Qt? Did you forget to install the QtBluetooth development package?
-
@Christian-Ehrlicher said in QtBluetooth is not recognized on Linux.:
@jenya7 said in QtBluetooth is not recognized on Linux.:
Linux doesn't see the library.
How did you install Qt? Did you forget to install the QtBluetooth development package?
This way
sudo apt-get update sudo apt-get upgrade sudo apt-get install qt5-default sudo apt-get install qtcreator sudo apt-get install qtdeclarative5-dev
Is it separate installation for the Bluetooth package?
-
@jenya7 said in QtBluetooth is not recognized on Linux.:
Is it separate installation for the Bluetooth package?
Maybe - you already installed a separate one for qtdeclarative5 so why shouldn't there be one for qtbluetooth5?
-
@Christian-Ehrlicher said in QtBluetooth is not recognized on Linux.:
@jenya7 said in QtBluetooth is not recognized on Linux.:
Is it separate installation for the Bluetooth package?
Maybe - you already installed a separate one for qtdeclarative5 so why shouldn't there be one for qtbluetooth5?
OK. I installed libqt5bluetooth5. What should I add in a *.pro file?
QT += bluetooth - gives an error -
@jenya7 As @Christian-Ehrlicher wrote. "QtBluetooth development package".
libqt5bluetooth5-dev -
@jsulm said in QtBluetooth is not recognized on Linux.:
@jenya7 As @Christian-Ehrlicher wrote. "QtBluetooth development package".
libqt5bluetooth5-devI get - Unable to locate package libqt5bluetooth5-dev
-
@jenya7 said in QtBluetooth is not recognized on Linux.:
sudo apt-get install qtdeclarative5-dev
I get - Unable to locate package libqt5bluetooth5-dev
Please think before writing - when the qtdeclarative5 dev package is named
qtdeclarative5-dev
- how the qt5bluetooth5 dev package is maybe named? -
@Christian-Ehrlicher said in QtBluetooth is not recognized on Linux.:
@jenya7 said in QtBluetooth is not recognized on Linux.:
sudo apt-get install qtdeclarative5-dev
I get - Unable to locate package libqt5bluetooth5-dev
Please think before writing - when the qtdeclarative5 dev package is named
qtdeclarative5-dev
- how the qt5bluetooth5 dev package is maybe named?I love quizzes, especially - find the pattern.
qtbluetooth5-dev
qtbluetooth-dev
qt5bluetooth-devnone is working.
The winner is - libbluetooth-dev
-
@jsulm said in QtBluetooth is not recognized on Linux.:
@jenya7 You did not say what Linux distribution you use.
On Ubuntu 20.04 there is indeen no dev package for QtBluetooth module.
What error do you get when you add bluetooth to your pro file?It's Raspbian Linux.
It reports - libbluetooth is installed but on QT += bluetooth I getProject ERROR: Unknown module(s) in QT: bluetooth
-
Strange packaging... I would expect a little bit more consistency here. Mhhh..
Is there at least an overview somewhere for e.g. raspbian to see in which package a file can be found? -
@Christian-Ehrlicher One can use apt-file to search for packages providing specified file.
-
@Christian-Ehrlicher because QtBluetooth part of the QtConnectivity module along with nfc therefore the package name used.
-
@SGaist Thx for the clarification :)