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. Minimal build for QtBluetooth on Raspberry Pi 3
QtWS25 Last Chance

Minimal build for QtBluetooth on Raspberry Pi 3

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 1.7k 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.
  • J Offline
    J Offline
    JanStepan
    wrote on last edited by
    #1

    Hello everyone.

    I have completed my library for handling custom BLE modules. It is running fine on Linux desktop with default 5.8.1. But I am having problem to figure out minimal cutom build configuration for Rasperry Pi (Running Ubuntu Server 16.04, so no X11 installed). I just only need QtCore and QtBluetooth (and QtDBUS, because it is used to communicate with BlueZ daemon). Could you please provide me some minimal ./configure parameters, because I'm having troubles so far.

    Thanks for any responses.

    jsulmJ 1 Reply Last reply
    0
    • J JanStepan

      Hello everyone.

      I have completed my library for handling custom BLE modules. It is running fine on Linux desktop with default 5.8.1. But I am having problem to figure out minimal cutom build configuration for Rasperry Pi (Running Ubuntu Server 16.04, so no X11 installed). I just only need QtCore and QtBluetooth (and QtDBUS, because it is used to communicate with BlueZ daemon). Could you please provide me some minimal ./configure parameters, because I'm having troubles so far.

      Thanks for any responses.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @JanStepan http://wiki.qt.io/Raspberry_Pi_Beginners_Guide should help

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JanStepan
        wrote on last edited by
        #3

        I was affraid that some is gonna point me that :) But that page mostly focus on crosscompiling (I do not need too, even if native build take over night) and for Raspbian with different version of basically any package in system.

        I had success with this configuration parameters:

        ./configure -v -no-opengl -no-sql-mysql -no-sql-sqlite -skip qtquick1 -skip qtquickcontrols -no-gui -no-widgets -no-sql-sqlite2 -no-gstreamer -skip gamepad -device linux-rasp-pi-g+ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -debug -qt-pcre -make libs -prefix /opt/qt5 -no-pulseaudio  -no-directfb -skip declarative -skip webkit -skip websockets -skip location -skip sensors -skip webchannel
        

        Everything compiles with make command, but when I run make install, this error message pops out after while:

        <srcbase> = /opt/build/qt5/qtnetworkauth 
        <outbase> = /opt/build/qt5/qtnetworkauth 
        Project ERROR: Unknown module(s) in QT: gui
        Makefile:66: recipe for target 'sub-oauth-install_subtargets-ordered' failed
        make[2]: *** [sub-oauth-install_subtargets-ordered] Error 3
        make[2]: Leaving directory '/opt/build/qt5/qtnetworkauth/src'
        Makefile:56: recipe for target 'sub-src-install_subtargets' failed
        make[1]: *** [sub-src-install_subtargets] Error 2
        make[1]: Leaving directory '/opt/build/qt5/qtnetworkauth'
        Makefile:584: recipe for target 'module-qtnetworkauth-install_subtargets' failed
        make: *** [module-qtnetworkauth-install_subtargets] Error 2
        

        Which I dont understand, because in config, GUI module is disabled.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          Try adding -nomake examples to your configure line.

          The gui module is used only by the example in the qtnetworkauth module.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JanStepan
            wrote on last edited by
            #5

            @SGaist Thanks for suggestion, but error is the same as before. I did completely clean build to avoid some be in cache.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by SGaist
              #6

              Since you seem to be interested only in a limited subset of modules, what about starting to just build qtbase with everything you don't want removed and then only build the other modules you need ? That might make things easier to narrow down.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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