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. Crosscompile Raspi3 buttons faulty

Crosscompile Raspi3 buttons faulty

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 1.7k 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.
  • R Offline
    R Offline
    ruphy
    wrote on last edited by
    #1

    Hey there,

    i want to cross compile from Ubuntu 16.04 to raspi3.
    i am looking for this tutorial: https://wiki.qt.io/RaspberryPi2EGLFS
    after i tried the example:
    cd qtbase/examples/opengl/qopenglwidget
    ~/raspi/qt5/bin/qmake
    make
    scp qopenglwidget pi@raspberrypi.local:/home/pi

    the interesting thing is, that i can see the rotating hologram. (so i think
    but there is no text in the buttons or tabs. mybe i can later give you an screenshot, i necessary?!

    please. need some help.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      ruphy
      wrote on last edited by
      #2

      saw following error: "QFontDatabase: Cannot find font directory /usr/local/qt5pi/lib/fonts."
      Any ideas?

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

        Hi and welcome to devnet,

        Do you have any font in that folder ?

        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
        • R Offline
          R Offline
          ruphy
          wrote on last edited by
          #4

          hey,
          thanks for answering.
          i copied the fonts into this folder, but there was no change.
          i dont know how, but maybe i forgot to rsync the qt5pi directory.
          now it works.

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

            Great !

            Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

            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
            • R Offline
              R Offline
              ruphy
              wrote on last edited by
              #6

              ok. the problem is back...
              the issue was that i took another RPI 3 and i installed qtcreator. i forgot to rsync the qt5pi folder.
              after the rsync i got the same problem... so i think it took the libs from the native qt

              1 Reply Last reply
              0
              • R Offline
                R Offline
                ruphy
                wrote on last edited by
                #7

                ok. problem solved.

                i had to set the variables in ~/.bashrc with nano e.g.:
                sudo nano ~/.bashrc

                export QT_QPA_EGLFS_PHYSICAL_WIDTH=528
                export QT_QPA_EGLFS_PHYSICAL_HEIGHT=295
                export QT_QPA_FONTDIR=/usr/share/fonts/truetype

                after closing nano in terminal:
                source ~/.bashrc

                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