Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross-compile Qt 6.6.1 for Raspberry Pi 4 (aarch64)

Cross-compile Qt 6.6.1 for Raspberry Pi 4 (aarch64)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 620 Views
  • 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.
  • S Offline
    S Offline
    Sergey_85
    wrote on 24 Feb 2024, 08:34 last edited by
    #1

    Hi everyone, sorry for my English, I'm only studying this language.

    I need help to cross-compile Qt 6.6.1 for Raspberry Pi 4 (aarch64). I tried to make it from different sources, but nothing succeeded.

    Sometimes the build completes successfully but QT Creator does not want to compile the project.

    Help me, please to solve this problem.

    P.S. My host machine is Debian 12.

    Q 1 Reply Last reply 24 Feb 2024, 09:02
    0
    • S Sergey_85
      24 Feb 2024, 08:34

      Hi everyone, sorry for my English, I'm only studying this language.

      I need help to cross-compile Qt 6.6.1 for Raspberry Pi 4 (aarch64). I tried to make it from different sources, but nothing succeeded.

      Sometimes the build completes successfully but QT Creator does not want to compile the project.

      Help me, please to solve this problem.

      P.S. My host machine is Debian 12.

      Q Offline
      Q Offline
      Qt embedded developer
      wrote on 24 Feb 2024, 09:02 last edited by
      #2

      @Sergey_85 If os is available on the raspberry pi then there should be installed qt need to be there. okay now make the cmake for your source code and give path of qt to your cmake and there build your source code and check with simple example.

      S 1 Reply Last reply 24 Feb 2024, 14:15
      0
      • Q Qt embedded developer
        24 Feb 2024, 09:02

        @Sergey_85 If os is available on the raspberry pi then there should be installed qt need to be there. okay now make the cmake for your source code and give path of qt to your cmake and there build your source code and check with simple example.

        S Offline
        S Offline
        Sergey_85
        wrote on 24 Feb 2024, 14:15 last edited by
        #3

        @Qt-embedded-developer
        I managed to launch the console application, but when I try GUI application it I get an error, although all the libraries are installed.

        16:09:14: Starting /usr/local/bin/rpi_gui on RPI Device...
        Invalid MIT-MAGIC-COOKIE-1 key
        qt.qpa.xcb: could not connect to display localhost:10.0
        qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
        qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
        This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

        Available platform plugins are: minimalegl, xcb, minimal, eglfs, linuxfb, vnc, offscreen.

        16:09:14: /usr/local/bin/rpi_gui on RPI Device exited with code 255

        S T 2 Replies Last reply 24 Feb 2024, 15:45
        0
        • S Sergey_85
          24 Feb 2024, 14:15

          @Qt-embedded-developer
          I managed to launch the console application, but when I try GUI application it I get an error, although all the libraries are installed.

          16:09:14: Starting /usr/local/bin/rpi_gui on RPI Device...
          Invalid MIT-MAGIC-COOKIE-1 key
          qt.qpa.xcb: could not connect to display localhost:10.0
          qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
          qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
          This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

          Available platform plugins are: minimalegl, xcb, minimal, eglfs, linuxfb, vnc, offscreen.

          16:09:14: /usr/local/bin/rpi_gui on RPI Device exited with code 255

          S Offline
          S Offline
          Sergey_85
          wrote on 24 Feb 2024, 15:45 last edited by
          #4

          @Qt-embedded-developer I used the host-machine Qt Creator 12.0.2
          Based on Qt 6.6.0 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64

          1 Reply Last reply
          0
          • S Sergey_85
            24 Feb 2024, 14:15

            @Qt-embedded-developer
            I managed to launch the console application, but when I try GUI application it I get an error, although all the libraries are installed.

            16:09:14: Starting /usr/local/bin/rpi_gui on RPI Device...
            Invalid MIT-MAGIC-COOKIE-1 key
            qt.qpa.xcb: could not connect to display localhost:10.0
            qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
            qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
            This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

            Available platform plugins are: minimalegl, xcb, minimal, eglfs, linuxfb, vnc, offscreen.

            16:09:14: /usr/local/bin/rpi_gui on RPI Device exited with code 255

            T Offline
            T Offline
            TomZ
            wrote on 26 Feb 2024, 11:26 last edited by TomZ
            #5

            @Sergey_85 said in Cross-compile Qt 6.6.1 for Raspberry Pi 4 (aarch64):

            qt.qpa.xcb: could not connect to display localhost:10.0

            The compile is fine.

            You're running it most likely from something like a remote ssh, or similar. Which means that the environment is not correct. Run printenv in a terminal started on the actual display to see what that means.

            You need to start it differently. Sorry, not a RPi user so I don't know how they made that work.

            1 Reply Last reply
            0

            1/5

            24 Feb 2024, 08:34

            • Login

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