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. Project ERROR: This example requires Qt to be configured with -opengl desktop
Forum Updated to NodeBB v4.3 + New Features

Project ERROR: This example requires Qt to be configured with -opengl desktop

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 2.4k Views 2 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.
  • A Offline
    A Offline
    arsinte_andrei
    wrote on 1 Aug 2017, 17:49 last edited by
    #1

    As you can see the compiler is giving me this error:

    Project ERROR: This example requires Qt to be configured with -opengl desktop
    

    I'm using Qt 5.9.1 and using cross compile according to this info https://wiki.qt.io/RaspberryPi2EGLFS

    when trying to run openGl example named "Boxes"

    other example run ok without openGl..
    what did I miss?
    I've followed all the steps from that page and everything was fine - at least this is what I do believe.. maybe I've missed a library? or something else?

    Thanking you

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arsinte_andrei
      wrote on 1 Aug 2017, 18:03 last edited by
      #2

      Ive just found that the error was generated inside the .pro file

      qtConfig(opengles.|angle|dynamicgl): error("This example requires Qt to be configured with -opengl desktop")
      

      what is this doing there???

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 1 Aug 2017, 22:16 last edited by
        #3

        Hi,

        Like the error message states, this is an example that requires a full featured OpenGL stack to run.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        A 1 Reply Last reply 3 Aug 2017, 07:17
        0
        • S SGaist
          1 Aug 2017, 22:16

          Hi,

          Like the error message states, this is an example that requires a full featured OpenGL stack to run.

          A Offline
          A Offline
          arsinte_andrei
          wrote on 3 Aug 2017, 07:17 last edited by
          #4

          @SGaist
          Ok, and How can I do that on Raspberry Pi - my program is running in fullscreen mode. According to this tutorial from Qt
          link where is stated that:

          Note that this is not intended for running desktop-style, windowed Qt apps under X11, but rather for the real embedded/device creation use case where the Qt app runs fullscreen on top of dispmanx/EGL using the Broadcom drivers.
          

          So how can I correct that error? do I have to recompile Qt? there are other modules to add? to install some libraries?
          Kindle advise
          many thanks

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 3 Aug 2017, 21:29 last edited by
            #5

            Do what on the Raspberry Pi ?

            The Boxes example requires a desktop OpenGL setup that is not available on the Pi which provides only support for OpenGL ES.

            Can you explain what you are trying to achieve ?

            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

            1/5

            1 Aug 2017, 17:49

            • 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