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. [SOLVED]FrameBuffer Issue while running the Qt application
Forum Update on Tuesday, May 27th 2025

[SOLVED]FrameBuffer Issue while running the Qt application

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 4.2k 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
    ChaitraMohan
    wrote on 4 Sept 2014, 10:41 last edited by
    #1

    Hi all,

    I using customized board similar to that of Beagleboard-xm, in which Ubuntu 12.10 is running on it.

    I have build the Qt4.8.6 source using Linaro Toolchain with the support of -qt-gfx-linuxfb.
    I have even transferred all the libraries to the board and I have set the required environment paths also.

    But when I run my application on the board,
    Eg: ./test -qws

    The following error pops up:
    QScreenLinuxFb::connect: Permission denied
    Error opening framebufferdevice /dev/fb0

    I tried by running as sudo but stiil no success I got the following error:
    Qt for Embedded Linux data directory is not owned by user 0: /tmp/qtembedded-0

    Can anyone please help me for solving this issue I have stuck in this part and I am unable to run Qt application.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leonardo.ramosantos
      wrote on 4 Sept 2014, 12:18 last edited by
      #2

      Hi,

      Did you compile Qt with some Graphics Driver? For example, in Buildroot you can choose a driver like: Linux Framebuffer, QtVirtual Frame Buffer, VNC, etc... If you didn't compile with a Graphic Driver may happen some trouble.

      Try to check this.
      []'s

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChaitraMohan
        wrote on 4 Sept 2014, 13:28 last edited by
        #3

        Hi,
        Thank you.

        Yes I have compiled Qt source to choose Linux framebuffer by giving the option -qt-gfx-linuxfb.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 4 Sept 2014, 20:29 last edited by
          #4

          Hi,

          First thing, check the rights of /dev/fb0 and correct your current user groups to include what is needed.

          For the second problem, you have to delete /tmp/qtembedded-0 first, because it currently belongs to the user you used when starting your application the first time

          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
          • C Offline
            C Offline
            ChaitraMohan
            wrote on 5 Sept 2014, 11:58 last edited by
            #5

            Yes I will tryout both the options.
            Thank you.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ChaitraMohan
              wrote on 8 Sept 2014, 03:53 last edited by
              #6

              Hi,

              I resolved my issue using the second suggestion you gave.
              Thank you. :)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 8 Sept 2014, 07:41 last edited by
                #7

                You're welcome !

                Since you have your application running, please update the thread title prepending [solved] so 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

                2/7

                4 Sept 2014, 12:18

                topic:navigator.unread, 5
                • Login

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