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. Native Build Raspberry
Qt 6.11 is out! See what's new in the release blog

Native Build Raspberry

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 1.4k Views 1 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.
  • C Offline
    C Offline
    ClementD
    wrote on last edited by
    #1

    Hello,

    I would like to build Qt on a raspberry and i try to follow this tuto :
    https://wiki.qt.io/Native_Build_of_Qt5_on_a_Raspberry_Pi

    it's writen we have to tweak /opt/qt5/qtbase/configure script by replacing or adding code into it.
    My problem is i can't find where to paste the code in the file. do someone has already done it?
    i am not sure i am openning the right file but even using grep into the repository, i can't find the line.

    Thanks you,

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Hm, another wiki which recommends cloning Qt instead of using a tarball. Weird. If you want to save space, I recommend taking a look at https://download.qt.io/official_releases/qt/5.10/5.10.1/single/

      Regarding the native compilation - there is a much simpler way, although it comes with some caveats. Plus, it's been a good several months since I last attempted it so YMMW.

      • get Qt source code
      • do not modify any config script nor mkspecs
      • just run configure natively like on a desktop Linux (without -device, -device-option, CROSS_COMPILE flags etc.)
      • make

      This way definitely works for qtbase (so QtCore, QtNetwork, QtGui and the like). With other modules you may be less lucky. Also, I think it only worked for XCB. For EGLFS plugin, some extra tweaking would be necessary (mkspecs - to enable the VC4 OpenGL driver and EGLFS config).

      (Z(:^

      1 Reply Last reply
      1
      • C Offline
        C Offline
        ClementD
        wrote on last edited by
        #3

        Thanks you sierdzio, i would like to use QtQuick on my raspberry, i think i would need OpenGL. i will look at your link and try this.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Ah, then you need OpenGL indeed. QML performance on xcb plugin is abysmal, EGLFS is the only way to go there.

          (Z(:^

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ClementD
            wrote on last edited by
            #5

            Still the same problème :

            OPENGL Test Failed

            jsulmJ 1 Reply Last reply
            0
            • C ClementD

              Still the same problème :

              OPENGL Test Failed

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @ClementD You need to install dev packages for OpenGL. See here: http://doc.qt.io/qt-5/linux.html

              sudo apt-get install build-essential libgl1-mesa-dev
              

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              • Login

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