Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    Installation and Deployment
    qopenglwidget beginner build error
    2
    6
    294
    Loading More Posts
    • 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
      VivekYadav last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 1
        • V
          VivekYadav @SGaist last edited by

          @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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 1
            • V
              VivekYadav @SGaist last edited by

              @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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • First post
                  Last post