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. Qt6 unable to find OpenGL function references
Forum Updated to NodeBB v4.3 + New Features

Qt6 unable to find OpenGL function references

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 413 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.
  • benjysugiB Offline
    benjysugiB Offline
    benjysugi
    wrote on last edited by
    #1

    Hi,

    I'm having an issue where Qt isn't able to find functions for OpenGL
    45815015-accf-4e35-9ac5-9d5f47979ddc-image.png
    What am I doing wrong?

    JonBJ 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #4

      You should also add LIBS += -lopengl32 even though this should be done automatically by qmake.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      benjysugiB 1 Reply Last reply
      1
      • benjysugiB benjysugi

        Hi,

        I'm having an issue where Qt isn't able to find functions for OpenGL
        45815015-accf-4e35-9ac5-9d5f47979ddc-image.png
        What am I doing wrong?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #2

        @benjysugi
        Are you linking with the opengl library?

        I might be wrong about this, but: I believe you are using MinGW (would help if you said stuff like this if you have a problem), but those undefined references begin with __imp_.... I thought that is only used by MSVC compiler?

        benjysugiB 1 Reply Last reply
        0
        • JonBJ JonB

          @benjysugi
          Are you linking with the opengl library?

          I might be wrong about this, but: I believe you are using MinGW (would help if you said stuff like this if you have a problem), but those undefined references begin with __imp_.... I thought that is only used by MSVC compiler?

          benjysugiB Offline
          benjysugiB Offline
          benjysugi
          wrote on last edited by benjysugi
          #3

          @JonB I'm using MinGW yes.

          By linking it I assume you mean this? (I'm very new to qt)
          c105e9ce-ed96-4ea5-977b-afd8a6831dbd-image.png
          If so, yes I am

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #4

            You should also add LIBS += -lopengl32 even though this should be done automatically by qmake.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            benjysugiB 1 Reply Last reply
            1
            • Christian EhrlicherC Christian Ehrlicher

              You should also add LIBS += -lopengl32 even though this should be done automatically by qmake.

              benjysugiB Offline
              benjysugiB Offline
              benjysugi
              wrote on last edited by
              #5

              @Christian-Ehrlicher Thanks, that fixed it

              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