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. Installing Qt on RasspeyPi?
Forum Updated to NodeBB v4.3 + New Features

Installing Qt on RasspeyPi?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
19 Posts 3 Posters 1.2k 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.
  • hskoglundH Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #2

    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.

    1 Reply Last reply
    1
    • MucipM Offline
      MucipM Offline
      Mucip
      wrote on last edited by
      #3

      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:)

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #4

        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

        1 Reply Last reply
        1
        • MucipM Offline
          MucipM Offline
          Mucip
          wrote on last edited by Mucip
          #5

          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:)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Hi,

            Qt Creator is an independent project and has dedicated packages from your distribution.

            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
            • MucipM Offline
              MucipM Offline
              Mucip
              wrote on last edited by
              #7

              Hi,
              well, How can I use QtCreator in RP-4 than?
              I want to create and run C++ programs in Qt?

              Regards,
              Mucip:)

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Well, install Qt Creator with the package manager from your distribution. Since it's Debian: apt-get install qtcreator.

                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
                1
                • MucipM Offline
                  MucipM Offline
                  Mucip
                  wrote on last edited by
                  #9

                  Hi,
                  I am installing now.

                  Regards,
                  Mucip:)

                  1 Reply Last reply
                  0
                  • MucipM Offline
                    MucipM Offline
                    Mucip
                    wrote on last edited by
                    #10

                    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:)

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      Did you install the build-essential package ?

                      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
                      • MucipM Offline
                        MucipM Offline
                        Mucip
                        wrote on last edited by
                        #12

                        Hi,
                        sudo apt install build-essential

                        Already installed...

                        Regards,
                        Mucip)

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          Then since you seem to want to use clang for your build: install it as well,

                          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
                          • MucipM Offline
                            MucipM Offline
                            Mucip
                            wrote on last edited by
                            #14

                            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 0700

                            Regards,
                            Mucip:)

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #15

                              Start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see exactly what is happening.

                              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
                              • MucipM Offline
                                MucipM Offline
                                Mucip
                                wrote on last edited by
                                #16

                                Hi,
                                Should I put
                                QT_DEBUG_PLUGINS = 1

                                in pro file?

                                Regards,
                                Mucip:)

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #17

                                  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.

                                  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
                                  • MucipM Offline
                                    MucipM Offline
                                    Mucip
                                    wrote on last edited by
                                    #18

                                    Hi,
                                    In this case there is many more errors. :)
                                    I remove line again.

                                    Regards,
                                    Mucip:)

                                    1 Reply Last reply
                                    0
                                    • MucipM Offline
                                      MucipM Offline
                                      Mucip
                                      wrote on last edited by Mucip
                                      #19

                                      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-dev

                                      Regards,
                                      Mucip:)

                                      1 Reply Last reply
                                      0

                                      • Login

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