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. How to configure Qt with enabled udev support?
QtWS25 Last Chance

How to configure Qt with enabled udev support?

Scheduled Pinned Locked Moved Solved Installation and Deployment
11 Posts 3 Posters 2.9k 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.
  • M Offline
    M Offline
    MHermann
    wrote on 17 May 2019, 10:22 last edited by
    #1

    Hi all,

    I want to build Qt5.9 with udev support for raspberry pi.
    At the moment I try to configure the Qt.

    My problem is that support for udev is disabled and I don't know how I can enable this.
    Does anyone know how I can enable the udev support?

    This is the output I get:

    Mode ................................... release; optimized tools
      Optimize release build for size ........ no
      Building shared libraries .............. yes
      Using C++ standard ..................... C++11
      Using gold linker ...................... yes
      Using new DTAGS ........................ yes
      Using precompiled headers .............. yes
      Using LTCG ............................. no
      Target compiler supports:
        NEON ................................. no
      Build parts ............................ libs
    Qt modules and options:
      Qt Concurrent .......................... yes
      Qt D-Bus ............................... yes
      Qt D-Bus directly linked to libdbus .... no
      Qt Gui ................................. yes
      Qt Network ............................. yes
      Qt Sql ................................. yes
      Qt Testlib ............................. yes
      Qt Widgets ............................. yes
      Qt Xml ................................. yes
    Support enabled for:
      Using pkg-config ....................... yes
      QML debugging .......................... yes
      udev ................................... no
      Using system zlib ...................... yes
    Qt Core:
      DoubleConversion ....................... yes
        Using system DoubleConversion ........ no
      GLib ................................... no
      iconv .................................. yes
      ICU .................................... no
      Logging backends:
        journald ............................. no
        syslog ............................... no
        slog2 ................................ no
      Using system PCRE2 ..................... no
    Qt Network:
      getaddrinfo() .......................... yes
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      OpenSSL ................................ no
        Qt directly linked to OpenSSL ........ no
      SCTP ................................... no
      Use system proxies ..................... yes
    Qt Gui:
      Accessibility .......................... yes
      FreeType ............................... yes
        Using system FreeType ................ yes
      HarfBuzz ............................... yes
        Using system HarfBuzz ................ no
      Fontconfig ............................. no
      Image formats:
        GIF .................................. yes
        ICO .................................. yes
        JPEG ................................. yes
          Using system libjpeg ............... no
        PNG .................................. yes
          Using system libpng ................ yes
      EGL .................................... yes
      OpenVG ................................. yes
      OpenGL:
        Desktop OpenGL ....................... no
        OpenGL ES 2.0 ........................ yes
        OpenGL ES 3.0 ........................ no
        OpenGL ES 3.1 ........................ no
      Session Management ..................... yes
    Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... no
      INTEGRITY HID .......................... no
      mtdev .................................. no
      tslib .................................. no
      xkbcommon-evdev ........................ no
    QPA backends:
      DirectFB ............................... no
      EGLFS .................................. yes
      EGLFS details:
        EGLFS i.Mx6 .......................... no
        EGLFS i.Mx6 Wayland .................. no
        EGLFS EGLDevice ...................... no
        EGLFS GBM ............................ no
        EGLFS Mali ........................... no
        EGLFS Raspberry Pi ................... yes
        EGL on X11 ........................... no
      LinuxFB ................................ yes
      VNC .................................... yes
      Mir client ............................. no
    Qt Widgets:
      GTK+ ................................... no
      Styles ................................. Fusion Windows
    Qt PrintSupport:
      CUPS ................................... no
    Qt Sql:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. no
      OCI (Oracle) ........................... no
      ODBC ................................... no
      PostgreSQL ............................. no
      SQLite2 ................................ no
      SQLite ................................. yes
        Using system provided SQLite ......... no
      TDS (Sybase) ........................... no
    Qt SerialBus:
      Socket CAN ............................. yes
      Socket CAN FD .......................... yes
    QtXmlPatterns:
      XML schema support ..................... yes
    Qt QML:
      QML interpreter ........................ yes
      QML network support .................... yes
    Qt Quick:
      Direct3D 12 ............................ no
      AnimatedImage item ..................... yes
      Canvas item ............................ yes
      Support for Qt Quick Designer .......... yes
      Flipable item .......................... yes
      GridView item .......................... yes
      ListView item .......................... yes
      Path support ........................... yes
      PathView item .......................... yes
      Positioner items ....................... yes
      ShaderEffect item ...................... yes
      Sprite item ............................ yes
    Qt Gamepad:
      SDL2 ................................... no
    Qt 3D:
      Assimp ................................. yes
      System Assimp .......................... no
      Output Qt3D Job traces ................. no
      Output Qt3D GL traces .................. no
    Qt 3D GeometryLoaders:
      Autodesk FBX ........................... no
    Qt Wayland Client ........................ no
    Qt Wayland Compositor .................... no
    Qt Bluetooth:
      BlueZ .................................. no
      BlueZ Low Energy ....................... no
      Linux Crypto API ....................... no
    Qt Sensors:
      sensorfw ............................... no
    Qt Multimedia:
      ALSA ................................... no
      GStreamer 1.0 .......................... no
      GStreamer 0.10 ......................... no
      Video for Linux ........................ yes
      OpenAL ................................. no
      PulseAudio ............................. no
      Resource Policy (libresourceqt5) ....... no
      Windows Audio Services ................. no
      DirectShow ............................. no
      Windows Media Foundation ............... no
    Qt Quick Controls 2:
      Styles ................................. Default Material Universal
    Qt Quick Templates 2:
      Hover support .......................... yes
      Multi-touch support .................... yes
    Qt Location:
      Gypsy GPS Daemon ....................... no
      WinRT Geolocation API .................. no
    Qt WebEngine:
      Embedded build ......................... yes
      Pepper Plugins ......................... no
      Printing and PDF ....................... no
      Proprietary Codecs ..................... no
      Spellchecker ........................... yes
      WebRTC ................................. no
      Using system ninja ..................... no
      ALSA ................................... no
      PulseAudio ............................. no
      System libraries:
        ICU .................................. no
        libwebp and libwebpdemux ............. no
        Opus ................................. no
        ffmpeg ............................... no
    

    Kind regards,
    MHermann

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 May 2019, 10:33 last edited by
      #2

      Hi,

      Do you have the udev library development package installed ?

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

      M 1 Reply Last reply 17 May 2019, 10:44
      2
      • S SGaist
        17 May 2019, 10:33

        Hi,

        Do you have the udev library development package installed ?

        M Offline
        M Offline
        MHermann
        wrote on 17 May 2019, 10:44 last edited by
        #3

        @SGaist : Yes. I think I installed all important packages on my Ubuntu.

        • udev
        • libudev1
        • libudev-dev

        Ist that correct? Or is something missing?

        J 1 Reply Last reply 17 May 2019, 10:44
        0
        • M MHermann
          17 May 2019, 10:44

          @SGaist : Yes. I think I installed all important packages on my Ubuntu.

          • udev
          • libudev1
          • libudev-dev

          Ist that correct? Or is something missing?

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 17 May 2019, 10:44 last edited by
          #4

          @MHermann said in How to configure Qt with enabled udev support?:

          on my Ubuntu

          You need them in your sysroot for your target device

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

          M 1 Reply Last reply 17 May 2019, 10:47
          2
          • J jsulm
            17 May 2019, 10:44

            @MHermann said in How to configure Qt with enabled udev support?:

            on my Ubuntu

            You need them in your sysroot for your target device

            M Offline
            M Offline
            MHermann
            wrote on 17 May 2019, 10:47 last edited by
            #5

            @jsulm: Okay. But I don't know how I get this in my sysroot. Do you know what I have to do?

            J 1 Reply Last reply 17 May 2019, 10:53
            0
            • M MHermann
              17 May 2019, 10:47

              @jsulm: Okay. But I don't know how I get this in my sysroot. Do you know what I have to do?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 17 May 2019, 10:53 last edited by
              #6

              @MHermann Depends on how you create the sysrott. For RPi one usually puts the SD card into RPi boots it, installs what is needed, shuts it down, puts the SD into PC card reader, mounts it (read-only is better) and uses the mount directory as sysroot.

              One tip: if you want to know why something is missing add -v parameter to configure call and check its output.

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

              M 1 Reply Last reply 17 May 2019, 11:48
              2
              • J jsulm
                17 May 2019, 10:53

                @MHermann Depends on how you create the sysrott. For RPi one usually puts the SD card into RPi boots it, installs what is needed, shuts it down, puts the SD into PC card reader, mounts it (read-only is better) and uses the mount directory as sysroot.

                One tip: if you want to know why something is missing add -v parameter to configure call and check its output.

                M Offline
                M Offline
                MHermann
                wrote on 17 May 2019, 11:48 last edited by
                #7

                @jsulm : And if I have the sysroot on my harddisk? Is it also possible to add udev?
                Because I am using a VM and now I can not access the sd card in my Ubuntu...

                J 1 Reply Last reply 17 May 2019, 11:53
                0
                • M MHermann
                  17 May 2019, 11:48

                  @jsulm : And if I have the sysroot on my harddisk? Is it also possible to add udev?
                  Because I am using a VM and now I can not access the sd card in my Ubuntu...

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 17 May 2019, 11:53 last edited by
                  #8

                  @MHermann said in How to configure Qt with enabled udev support?:

                  Is it also possible to add udev?

                  With quite a big effort it is. You can download the needed deb packages for your target extract them and put the content in the directories they belong to.

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

                  M 1 Reply Last reply 20 May 2019, 07:21
                  0
                  • J jsulm
                    17 May 2019, 11:53

                    @MHermann said in How to configure Qt with enabled udev support?:

                    Is it also possible to add udev?

                    With quite a big effort it is. You can download the needed deb packages for your target extract them and put the content in the directories they belong to.

                    M Offline
                    M Offline
                    MHermann
                    wrote on 20 May 2019, 07:21 last edited by MHermann
                    #9

                    @jsulm : Now I tried the following:

                    1. I installed udev on my Raspi image (udev, libudev*).
                    2. I copied the Raspi image from sdcard on my computer.
                    3. I used this image as sysroot and configured the Qt.

                    => But the udev support is still disabled.

                    What I am doing wrong?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 20 May 2019, 21:29 last edited by
                      #10

                      Did you re-run configure from a clean state ?

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

                      M 1 Reply Last reply 21 May 2019, 05:30
                      1
                      • S SGaist
                        20 May 2019, 21:29

                        Did you re-run configure from a clean state ?

                        M Offline
                        M Offline
                        MHermann
                        wrote on 21 May 2019, 05:30 last edited by MHermann
                        #11

                        @SGaist : I re-run 'configure' again. But this time with the option '-recheck-all'. Now udev support is enabled.

                        1 Reply Last reply
                        1

                        4/11

                        17 May 2019, 10:44

                        topic:navigator.unread, 7
                        • Login

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