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. Cross-compiled Qt 5.15.2 cannot find VirtualKeyboard or Multimedia plugins for Raspberry Pi 4.

Cross-compiled Qt 5.15.2 cannot find VirtualKeyboard or Multimedia plugins for Raspberry Pi 4.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
cmakeqt5.15.2raspberry pi 4
12 Posts 2 Posters 2.0k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 17 Dec 2021, 19:07 last edited by
    #2

    Hi,

    Did you check the configure summary ?
    Does it show anything unusual related to multimedia and virtual keyboard.

    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
    • F Offline
      F Offline
      Fahad-Cattchi
      wrote on 17 Dec 2021, 19:21 last edited by
      #3

      Here's the multimedia configuration:

      Qt Multimedia:
        ALSA ................................... yes
        GStreamer 1.0 .......................... no
        GStreamer 0.10 ......................... no
        Video for Linux ........................ yes
        OpenAL ................................. no
        PulseAudio ............................. yes
        Resource Policy (libresourceqt5) ....... no
        Windows Audio Services ................. no
        DirectShow ............................. no
        Windows Media Foundation ............... no
      

      I can't find anything related to the virtual keyboard.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 17 Dec 2021, 19:22 last edited by
        #4

        Did you check the content of the build folder for the related libraries ?

        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
        • F Offline
          F Offline
          Fahad-Cattchi
          wrote on 17 Dec 2021, 19:29 last edited by
          #5

          I think I have them. I'm not sure exactly what I'm looking for, but here's the results for some find commands:

          pi@raspberrypi:~ $ find /usr/local/qt5.15 -iname "*multimedia*" | grep .so
          /usr/local/qt5.15/qml/QtMultimedia/libdeclarative_multimedia.so
          /usr/local/qt5.15/lib/libQt5MultimediaWidgets.so.5
          /usr/local/qt5.15/lib/libQt5MultimediaQuick.so.5
          /usr/local/qt5.15/lib/libQt5MultimediaQuick.so.5.15.2
          /usr/local/qt5.15/lib/libQt5Multimedia.so.5.15.2
          /usr/local/qt5.15/lib/libQt5MultimediaWidgets.so.5.15
          /usr/local/qt5.15/lib/libQt5MultimediaQuick.so
          /usr/local/qt5.15/lib/libQt5MultimediaWidgets.so
          /usr/local/qt5.15/lib/libQt5Multimedia.so.5
          /usr/local/qt5.15/lib/libQt5Multimedia.so
          /usr/local/qt5.15/lib/libQt5Multimedia.so.5.15
          /usr/local/qt5.15/lib/libQt5MultimediaQuick.so.5.15
          /usr/local/qt5.15/lib/libQt5MultimediaWidgets.so.5.15.2
          /usr/local/qt5.15/plugins/playlistformats/libqtmultimedia_m3u.so
          
          pi@raspberrypi:~ $ find /usr/local/qt5.15 -iname "*keyboard*" | grep .so
          /usr/local/qt5.15/qml/QtQuick/VirtualKeyboard/libqtquickvirtualkeyboardplugin.so
          /usr/local/qt5.15/qml/QtQuick/VirtualKeyboard/Styles/libqtquickvirtualkeyboardstylesplugin.so
          /usr/local/qt5.15/qml/QtQuick/VirtualKeyboard/Settings/libqtquickvirtualkeyboardsettingsplugin.so
          /usr/local/qt5.15/lib/libQt5VirtualKeyboard.so.5.15.2
          /usr/local/qt5.15/lib/libQt5VirtualKeyboard.so.5.15
          /usr/local/qt5.15/lib/libQt5VirtualKeyboard.so.5
          /usr/local/qt5.15/lib/libQt5VirtualKeyboard.so
          /usr/local/qt5.15/plugins/generic/libqevdevkeyboardplugin.so
          /usr/local/qt5.15/plugins/virtualkeyboard/libqtvirtualkeyboard_pinyin.so
          /usr/local/qt5.15/plugins/virtualkeyboard/libqtvirtualkeyboard_hangul.so
          /usr/local/qt5.15/plugins/virtualkeyboard/libqtvirtualkeyboard_openwnn.so
          /usr/local/qt5.15/plugins/virtualkeyboard/libqtvirtualkeyboard_tcime.so
          /usr/local/qt5.15/plugins/virtualkeyboard/libqtvirtualkeyboard_thai.so
          /usr/local/qt5.15/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so
          
          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 17 Dec 2021, 19:55 last edited by
            #6

            That looks good...
            Maybe a silly question but are you sure you are using the correct qmake to build your application ?

            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
            • F Offline
              F Offline
              Fahad-Cattchi
              wrote on 17 Dec 2021, 20:39 last edited by
              #7

              I think it's the correct qmake. I'm using CMake to build.

              In my Raspberry Pi kit in QtCreator I have a manual Qt version defined that's using the path: ~/pi/qt5.15/bin/qmake which is what I expect since my local cross-compile install directory is ~/pi/qt5.15.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 17 Dec 2021, 20:43 last edited by
                #8

                Something is not completely clear.

                Are you cross-compiling from your desktop to your Pi or directly on the Pi ?

                Usually, when cross-compiling, the Qt build shall be copied to the target in the some folder tree.

                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
                • F Offline
                  F Offline
                  Fahad-Cattchi
                  wrote on 17 Dec 2021, 21:12 last edited by
                  #9

                  My cross-compiled Qt5.15.2 was built on my host machine against the Raspberry Pi libraries, and then copied over from host: ~/pi/qt5.15/ to Pi: /usr/local/qt5.15/. Both paths have the same content & folder structure.

                  I'm now trying to build my program with QtCreator on my host machine, and then deploy it over to the Pi. Which is generally working. The main window shows up correctly at least.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 19 Dec 2021, 19:39 last edited by
                    #10

                    You should have these files in the same folder on your Pi.

                    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
                    • F Offline
                      F Offline
                      Fahad-Cattchi
                      wrote on 20 Dec 2021, 18:30 last edited by
                      #11

                      I have the exact same files in those 2 locations. If I ls -l on each machine:

                      fahad@fahad-ThinkPad-T490:~$ ls -l ~/pi/qt5.15/
                      total 68
                      drwxrwxr-x  2 fahad fahad  4096 Dec 14 10:56 bin
                      drwxrwxr-x  4 fahad fahad  4096 Dec 14 10:52 doc
                      drwxrwxr-x 91 fahad fahad  4096 Dec 14 10:56 include
                      drwxrwxr-x  5 fahad fahad 28672 Dec 14 10:56 lib
                      drwxrwxr-x 77 fahad fahad  4096 Dec 14 10:52 mkspecs
                      drwxrwxr-x 29 fahad fahad  4096 Dec 14 10:55 plugins
                      drwxrwxr-x 25 fahad fahad  4096 Dec 14 10:56 qml
                      drwxrwxr-x  2 fahad fahad 12288 Dec 14 10:56 translations
                      
                      pi@raspberrypi:~ $ ls -l /usr/local/qt5.15/
                      total 68
                      drwxrwxr-x  2 pi pi  4096 Dec 14 10:56 bin
                      drwxrwxr-x  4 pi pi  4096 Dec 14 10:52 doc
                      drwxrwxr-x 91 pi pi  4096 Dec 14 10:56 include
                      drwxrwxr-x  5 pi pi 28672 Dec 14 10:56 lib
                      drwxrwxr-x 77 pi pi  4096 Dec 14 10:52 mkspecs
                      drwxrwxr-x 29 pi pi  4096 Dec 14 10:55 plugins
                      drwxrwxr-x 25 pi pi  4096 Dec 14 10:56 qml
                      drwxrwxr-x  2 pi pi 12288 Dec 14 10:56 translations
                      

                      Or are you saying I need to exact same folder structure down to root? Like, if my files are at /usr/local/qt5.15/ on the Pi then they also need to be at /usr/local/qt5.15/ on my host?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 20 Dec 2021, 18:44 last edited by
                        #12

                        The second choice, same folder structure.

                        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

                        11/12

                        20 Dec 2021, 18:30

                        • Login

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