Installing Qt on RasspeyPi?
-
wrote 17 days ago last edited by
Hi,
I want to install Qt6 from "qt-online-installer-linux-arm64-4.9.0.run". I installed but could not run QtCreator?I got below error message unfortunatelly.
milbuga@kantarA:~ $ /home/milbuga/Qt/Tools/QtCreator/bin/qtcreator
/home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libstdc++.so.6: versionGLIBCXX_3.4.32' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/qtcreator/libUtils.so.16) /home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libm.so.6: version
GLIBC_2.38' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6)
/home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libc.so.6: versionGLIBC_2.38' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6) /home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libc.so.6: version
GLIBC_2.38' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Network.so.6)
/home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libc.so.6: versionGLIBC_2.38' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Test.so.6) /home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libstdc++.so.6: version
GLIBCXX_3.4.31' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/qtcreator/libNanotrace.so.16)
/home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libstdc++.so.6: versionGLIBCXX_3.4.32' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/qtcreator/libNanotrace.so.16) /home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libm.so.6: version
GLIBC_2.38' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Qml.so.6)
/home/milbuga/Qt/Tools/QtCreator/bin/qtcreator: /lib/aarch64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/milbuga/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Qml.so.6)Regards,
Mucip:) -
wrote 17 days ago last edited by
The Qt 6.9 that comes with the online installer is built for a Raspberry PI 5 running Ubuntu 24.04 so if your OS is older than that, it's time to upgrade.
-
wrote 17 days ago last edited by
Hi,
Yes, I use RP-4 now unfortunately. :(
My Debian version is 12.10
By the way, I could not find apt install qt5-default either.
This is very bad.
Regards,
Mucip:) -
wrote 17 days ago last edited by
You could try the Qt 6.4.2 Bookworm native packages, say start with:
qt6-base-dev
qt6-tools-dev
...
They are listed here:
https://packages.debian.org/source/bookworm/qt6-base -
wrote 17 days ago last edited by Mucip
Hi,
I installed both but I can not see QtCreator in the Programing menu still?!
By the way there isn't qt6-base either?!Regards,
Mucip:) -
Hi,
Qt Creator is an independent project and has dedicated packages from your distribution.
-
wrote 17 days ago last edited by
Hi,
well, How can I use QtCreator in RP-4 than?
I want to create and run C++ programs in Qt?Regards,
Mucip:) -
Well, install Qt Creator with the package manager from your distribution. Since it's Debian:
apt-get install qtcreator
. -
wrote 17 days ago last edited by
Hi,
I am installing now.Regards,
Mucip:) -
wrote 17 days ago last edited by
Hi,
I used many times QT in RP. But It was not difficult as now unfortunately.
I installed QtCreator and open. I created very basic project but could not run even?!
Message:
:-1: error: Cannot run compiler 'clang++'. Output:Regards,
Mucip:) -
Did you install the build-essential package ?
-
wrote 17 days ago last edited by
Hi,
sudo apt install build-essentialAlready installed...
Regards,
Mucip) -
Then since you seem to want to use clang for your build: install it as well,
-
wrote 17 days ago last edited by
Hi,
I could create program finally... :)But in any case I've got below messages;
22:11:28: Starting /home/milbuga/Documents/Qt/build-untitled-Desktop-Debug/untitled...
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700Regards,
Mucip:) -
Start your application with the
QT_DEBUG_PLUGINS
environment variable set to 1 to see exactly what is happening. -
wrote 17 days ago last edited by
Hi,
Should I put
QT_DEBUG_PLUGINS = 1in pro file?
Regards,
Mucip:) -
No, it's an environnement variable.
In Qt Creator, go to the Run part of the Project panel and there you can add it to the list of environment variables. -
wrote 17 days ago last edited by
Hi,
In this case there is many more errors. :)
I remove line again.Regards,
Mucip:) -
wrote 16 days ago last edited by Mucip
Hi,
As mentioned here below lines are solved my problem without adding environment variable.
sudo apt install libxcb-xinerama0
sudo apt install qt6-wayland
sudo apt install libxcb-xinerama0-dev
sudo apt install qt6-wayland-devRegards,
Mucip:)
1/19