Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt on RPi 4B has missing libraries
Forum Updated to NodeBB v4.3 + New Features

Qt on RPi 4B has missing libraries

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 4 Posters 168 Views 2 Watching
  • 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.
  • O Offline
    O Offline
    OldRoly
    wrote last edited by
    #1

    Hi,
    I am a newbie to Qt. So far I have managed to write a small Sqlite app which runs on Windows and some, but not all Android devices.
    I would also like it to run on my RPi 4B (8MB), which is a mobile device on a boat. Cross compiling on Windows is too hard for me, so I trying to natively compile on the Pi. Some folks assure me this is possible for small apps.

    I have installed Qt from:

    1. 'sudo apt install' - This appears to install and run OK, but is missing so many vital libraries and files that is is not useable for a Widgets app.
    2. Qt's on-line installer for arm64 linux devices. Again this appears to install Ok, but the menu shortcuts for some reason do not work. I have followed the menu trail to /home/pi/Qt/Tools/QtCreator/qtcreator. Executing this file results in the attached screenshot.

    I have not been able to find and install the missing files. Any ideas??
    9553ff6f-6109-4c46-a56f-fd7a93664cb4-Qt6MissingLibs.png

    I have spent about three weeks on this, so any help would be much appreciated.

    OldRoly

    JKSHJ 1 Reply Last reply
    0
    • O OldRoly

      Hi,
      I am a newbie to Qt. So far I have managed to write a small Sqlite app which runs on Windows and some, but not all Android devices.
      I would also like it to run on my RPi 4B (8MB), which is a mobile device on a boat. Cross compiling on Windows is too hard for me, so I trying to natively compile on the Pi. Some folks assure me this is possible for small apps.

      I have installed Qt from:

      1. 'sudo apt install' - This appears to install and run OK, but is missing so many vital libraries and files that is is not useable for a Widgets app.
      2. Qt's on-line installer for arm64 linux devices. Again this appears to install Ok, but the menu shortcuts for some reason do not work. I have followed the menu trail to /home/pi/Qt/Tools/QtCreator/qtcreator. Executing this file results in the attached screenshot.

      I have not been able to find and install the missing files. Any ideas??
      9553ff6f-6109-4c46-a56f-fd7a93664cb4-Qt6MissingLibs.png

      I have spent about three weeks on this, so any help would be much appreciated.

      OldRoly

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote last edited by
      #2

      @OldRoly said in Qt on RPi 4B has missing libraries:

      'sudo apt install' - This appears to install and run OK, but is missing so many vital libraries and files that is is not useable for a Widgets app.

      What package(s) did you install, and which libraries are missing, exactly? These packages are from the official Raspberry Pi OS repo so they should have all their dependencies installed automatically.

      Qt's on-line installer for arm64 linux devices. Again this appears to install Ok, but the menu shortcuts for some reason do not work. I have followed the menu trail to /home/pi/Qt/Tools/QtCreator/qtcreator. Executing this file results in the attached screenshot.

      The copy of Qt from the online installer requires a newer OS (like Ubuntu 24.04).

      The problem in your screenshot is not missing files. Rather, your OS'es version of glibc is too old for this copy of Qt.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • O Offline
        O Offline
        OldRoly
        wrote last edited by
        #3

        I used 'sudo apt install qtcreator'. I do not know what other apps should be installed with this Can you point me in the right direction??

        SGaistS 1 Reply Last reply
        0
        • O OldRoly

          I used 'sudo apt install qtcreator'. I do not know what other apps should be installed with this Can you point me in the right direction??

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote last edited by
          #4

          @OldRoly Hi,

          From the looks of the error, you are not starting the Qt Creator version you installed through apt. You should removed anything you installed through the Qt Online installer and use only the Qt dev packages from your distribution (beside Qt Creator you already installed).

          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
          • O Offline
            O Offline
            OldRoly
            wrote last edited by
            #5

            Hi SGalst,

            The big mystery to me is to find the "Qt dev packages from your distribution". I thought "sudo apt install qtcreator" would have installed the complete package. Are there other bits? If so how do I find them??

            Thanks

            JonBJ 1 Reply Last reply
            0
            • O OldRoly has marked this topic as solved
            • O OldRoly

              Hi SGalst,

              The big mystery to me is to find the "Qt dev packages from your distribution". I thought "sudo apt install qtcreator" would have installed the complete package. Are there other bits? If so how do I find them??

              Thanks

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote last edited by
              #6

              @OldRoly
              Qt Creator is just a standalone IDE, it does not bring any Qt packages with it for you to use to build your own programs, technically it could be used as e.g. a text editor without anything to do with Qt development (though you would not want to).

              I don't know why you ask for the "complete package" and then mark this topic as Solved with no further comment. To build your own code you need to fetch some of the distro packages. I can't recall just what they are called, and it can vary from distro to distro or release to release, but you need to type something like sudo apt install qt and then press the Tab key once or twice to see the offered completions. You will probably want things starting from qt6 and then Tab, there something like qt6-dev with most of what you will want? You can Google for what exactly the names are and what might be wanted, but as I say the names change so it may not be accurate for current your distro.

              1 Reply Last reply
              1

              • Login

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