Qt on RPi 4B has missing libraries
-
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:
- '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.
- 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??
I have spent about three weeks on this, so any help would be much appreciated.
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:
- '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.
- 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??
I have spent about three weeks on this, so any help would be much appreciated.
OldRoly
@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.
-
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??
@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). -
-
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
@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 fromqt6
and then Tab, there something likeqt6-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.