Unsolved Qt 6 statically. Unknown bluetooth
-
I build my Qt, make project and Unknown module(s) in QT: bluetooth
I build Qt statically from git. I read https://wiki.qt.io/Building_Qt_5_from_Git
I try use origin (Qt 6) and Qt 5.15.1 but result is the same. My steps:
0. Install OrangePi_4_ubuntu_bionic_desktop_linux4.4.179_v1.3 on my OrangePi 41 Prepare for Qt:
sudo apt-get build-dep qtbase-opensource-src && sudo apt-get install libxcb-xinerama0-dev && sudo apt-get install build-essential perl python git && sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev && sudo apt-get install flex bison gperf libicu-dev libxslt-dev ruby && sudo apt-get install libasound2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev && sudo apt install libclang-10.0-dev llvm-10.0
And also prepare for bluetooth:
a) sudo apt-get install bluez
b) sudo apt-get install libbluetooth-dev
c) sudo apt-get install qtconnectivity5-dev
d) sudo apt-get install libqt5bluetooth5
May be I forgot something?
2. Download Qt. May be I forgot something?git clone git://code.qt.io/qt/qt5 qt5 && cd qt5 && perl init-repository --module-subset=default,qtconnectivity,-qtdeclarative,-qtquickcontrols2,-qtquickconrols,-qtwebengine,-qtwayland,-qtandroidextras,-qtdoc,-qtgraphicaleffects,-qtqa,-qttranslations,-qtvirtualkeyboard,-qtquicktimeline,-qtquick3d,-qtrepotools,-qttools,-qtshadertools,-qtimageformats,-qtnetworkauth,-qtsvg,-qtwebsockets,-qt5compat,-qt3d,-qtsensors,-qtquicktimeline,-qtmultimedia
- Now I have got "myQt" folder. "qt5" [sources], "build", "build_artifacts" folders are in myQt folder.
../qt5/configure -release -static -opensource -make libs -nomake examples -nomake tests -confirm-license -skip webengine -skip qtwayland -skip qtandroidextras -skip qtdoc -skip qtgraphicaleffects -skip qtqa -skip qttranslations -skip qtvirtualkeyboard -skip qtquicktimeline -skip qtquick3d -skip qt3d -skip qtrepotools -skip qttools -skip qtimageformats -skip qtnetworkauth -skip qtsvg -skip qtwebsockets -skip qtactiveqt -skip qtmacextras -skip winextras -skip qtmultimedia -skip qtgamepad -skip qtserialbus -skip qtspeech -skip qtsensors -skip qtdeclarative -skip qtquickcontrols2 -skip qtcharts -skip qtscript -eglfs -opengl es2 -prefix ../build_artifacts -platform linux-g++ -v
My log looks ok:
Qt Bluetooth:
BlueZ .................................. yes
BlueZ Low Energy ....................... yes
Linux Crypto API ....................... yes
Native Win32 Bluetooth ................. no
WinRT Bluetooth API (desktop & UWP) .... no
WinRT advanced bluetooth low energy API (desktop & UWP) . no
4. make -j8 && make installThan I do
sudo apt-get install qtcreator
And set qmake file location (from "build/qtbase/bin/qmake") for Qt Creator. Is it correct path? I can create simple widget application with button and it is works ok! But I add in my .proQT += bluetooth
and Project ERROR: Unknown module(s) in QT: bluetooth
I test my Orange Pi 4 with Вlueman and it can find bluetooth devices. May be I need Q_IMPORT_PLUGIN but where I should write it? I attach full build log https://yadi.sk/d/wcKZ0RQxpWBiMw
-
This post is deleted! -
This post is deleted! -
This post is deleted! -
This post is deleted! -
This post is deleted! -
This post is deleted!