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. Unable to build an example code (Project ERROR: This example requires Qt to be configured with -opengl desktop)
QtWS25 Last Chance

Unable to build an example code (Project ERROR: This example requires Qt to be configured with -opengl desktop)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qopenglwidgetbeginnerbuild error
6 Posts 2 Posters 916 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.
  • V Offline
    V Offline
    VivekYadav
    wrote on last edited by
    #1

    Just installed qt on windows was looking through some examples but an example project named boxes gave this error I looked at docs they said run configure.bat -opengl desktop but I don't see any batch file in my installation anywhere?

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

      Hi and welcome to devnet,

      That file is part of the sources.

      Which example is that ?
      Which version of Qt do you have ?
      What kind of graphics card are you using ?

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

      V 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        That file is part of the sources.

        Which example is that ?
        Which version of Qt do you have ?
        What kind of graphics card are you using ?

        V Offline
        V Offline
        VivekYadav
        wrote on last edited by
        #3

        @SGaist My Qt version is 5.15.2 . Graphics card : Integrated Intel uhd graphics 620. This is the example location I was trying to build Qt\Examples\Qt-5.15.2\widgets\graphicsview\boxes. I download installer then selected my Qt version to download So I think it is precompiled (Can I change configuration opton in it?).

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

          You can try forcing the backend to use OpenGL.

          Here the alternative is to rebuild Qt and you need to download the source using the maintenance tool for that.

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

          V 1 Reply Last reply
          1
          • SGaistS SGaist

            You can try forcing the backend to use OpenGL.

            Here the alternative is to rebuild Qt and you need to download the source using the maintenance tool for that.

            V Offline
            V Offline
            VivekYadav
            wrote on last edited by
            #5

            @SGaist I am downloading Sources from maintenance tool what I have to do after that.Or Will it fix the error just by downloading

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

              First try to for the use of OpenGL.

              Otherwise, you will have to build Qt itself.

              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

              • Login

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