Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use OPENGL in Windows??
Forum Updated to NodeBB v4.3 + New Features

How to use OPENGL in Windows??

Scheduled Pinned Locked Moved General and Desktop
11 Posts 4 Posters 2.7k Views 4 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #2

    hi and welcome
    Did you try one of the examples ?
    If you click on Welcome and then Examples, and then type opengl in the search box, there should be some
    samples. Like "Boxes". Please See if those works.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mue22
      wrote on last edited by
      #3

      Thanks!!!!!!!!!!!!:)

      I try to build "Boxes"!

      But error occred
      ":-1: error: This example requires Qt to be configured with -opengl desktop"

      .. :(

      i can't use english well...

      mrjjM 1 Reply Last reply
      0
      • M Mue22

        Thanks!!!!!!!!!!!!:)

        I try to build "Boxes"!

        But error occred
        ":-1: error: This example requires Qt to be configured with -opengl desktop"

        .. :(

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @Mue22
        Hi how did you get Qt in win 8 ?
        Seems that you somehow did not get the opengl version.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mue22
          wrote on last edited by
          #5

          Thank you!!:)

          Um, Qt version is 5.5 Community V, In Qt homepage.

          Did I download the wrong version? :(

          i can't use english well...

          mrjjM 1 Reply Last reply
          0
          • M Mue22

            Thank you!!:)

            Um, Qt version is 5.5 Community V, In Qt homepage.

            Did I download the wrong version? :(

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @Mue22
            Hi for 5.5 it should be dynamic so it should be included.. by default,
            so im not sure what is going on.

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

              Hi,

              Which package did you use exactly ?

              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
              • M Offline
                M Offline
                Mue22
                wrote on last edited by Mue22
                #8

                @mrjj Yes, Thanks to your help!!:)

                @SGaist

                https://www.qt.io/download-open-source/#section-2

                in above page,

                Qt 5.5.0 for Windows 64-bit (VS 2013, 650 MB) (info) <<< downloaded this. and install include all option (all check-box true).

                Thanks!!!!!:)

                i can&#x27;t use english well...

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

                  In that case, do you have VS2013 installed on your computer ?

                  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
                  • W Offline
                    W Offline
                    Will
                    wrote on last edited by
                    #10

                    FYI - I found the same thing:

                    Qt 5.5 commercial, MSVS2010 : Try and compile "boxes" demo and get a ton of OpenGL errors (e.g. "unresolved symbol __imp_glEnable"). The other OpenGL demos that use the newer modules work OK, but not the original stuff.

                    When using Qt 5.2 MSVC2010 32bit OpenGL commercial "boxes" compiles fine.

                    I don't see any option for an "OpenGL" version of Qt 5.5 for Windows.
                    Any suggestions?

                    1 Reply Last reply
                    0
                    • W Offline
                      W Offline
                      Will
                      wrote on last edited by
                      #11

                      So the solution to this is to add the following line to the .pro file:

                      win32 {
                         LIBS += -lopengl32
                      }
                      

                      That solves all of the unresolved symbol errors with Qt 5.5.

                      1 Reply Last reply
                      1

                      • Login

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