Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 6 statically. Unknown bluetooth

Qt 6 statically. Unknown bluetooth

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 2 Posters 798 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DungeonLords
    wrote on last edited by DungeonLords
    #1

    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 4

    1 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
    
    1. 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 install

    Than 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 .pro

    QT += 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

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2
      This post is deleted!
      D 1 Reply Last reply
      2
      • sierdzioS sierdzio

        This post is deleted!

        D Offline
        D Offline
        DungeonLords
        wrote on last edited by DungeonLords
        #3
        This post is deleted!
        sierdzioS 1 Reply Last reply
        0
        • D DungeonLords

          This post is deleted!

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4
          This post is deleted!
          D 1 Reply Last reply
          0
          • sierdzioS sierdzio

            This post is deleted!

            D Offline
            D Offline
            DungeonLords
            wrote on last edited by
            #5
            This post is deleted!
            sierdzioS 1 Reply Last reply
            0
            • D DungeonLords

              This post is deleted!

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved