Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. by cross compilling the screen of rapberrypi2 does not show anything

by cross compilling the screen of rapberrypi2 does not show anything

Scheduled Pinned Locked Moved QtonPi
5 Posts 5 Posters 1.9k 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.
  • C Offline
    C Offline
    carter_james
    wrote on last edited by
    #1

    I try to cross compile qt5.5 auf raspberrypi 2 with this tutorial (https://wiki.qt.io/RaspberryPi2EGLFS) .the configuration , make&make install are done
    but get trouble by running the target.als indication i have cross-compile per ssh and i get following error:

    pi@raspberrypi:~ $ ./qopenglwidget
    \0Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimete
    rs).
    QOpenGLFramebufferObject: Framebuffer incomplete attachment.

    what may i have to do?

    1 Reply Last reply
    0
    • PheonixP Offline
      PheonixP Offline
      Pheonix
      wrote on last edited by Pheonix
      #2

      well i am not sure but , i think you should update your .bashrc file and set these parameters[QT_QPA_EGLFS_PHYSICAL_WIDTH, QT_QPA_EGLFS_PHYSICAL_HEIGHT, QT_QPA_EGLFS_DEPTH]. please notify if it worked or if you had already solved please share the solution.

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vish
        wrote on last edited by
        #3

        I am facing same issue with lcd touch with pi2. Can not open QDialog app. But some graphics examples from /opt/vc/src works fine on screen.

        Development is possible at any level.

        1 Reply Last reply
        0
        • miclandM Offline
          miclandM Offline
          micland
          wrote on last edited by
          #4

          As mentioned above you should set the environment variables (see also http://doc.qt.io/qt-5/embedded-linux.html#eglfs).
          Another thing you could try is to extend the graphical memory (in config.txt or using raspi-config). I got often black screens when running Qt applications on the RasPi before extending the memory from 64 to 256 MB. (The physical memory is shared with the GPU and you can configure how much shall be reserved as GPU memory).

          1 Reply Last reply
          0
          • paavo91P Offline
            paavo91P Offline
            paavo91
            wrote on last edited by
            #5

            Hi!
            I cross compiled Qt on Raspberry too, but my problem is that I can't see Qt apps on LCD connected by SPI. I can see apps only on screen connected by HDMI.

            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