Installing Qt on RasspeyPi?
-
wrote on 21 Apr 2025, 19:04 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 on 21 Apr 2025, 19:08 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 on 21 Apr 2025, 19:14 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 on 21 Apr 2025, 19:18 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 on 21 Apr 2025, 19:34 last edited by
Hi,
In this case there is many more errors. :)
I remove line again.Regards,
Mucip:) -
wrote on 21 Apr 2025, 22:20 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:)
19/19