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. Kubuntu 10.11 and OpenGL
QtWS25 Last Chance

Kubuntu 10.11 and OpenGL

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 5.1k 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.
  • Q Offline
    Q Offline
    qxoz
    wrote on 19 Jan 2012, 06:33 last edited by
    #1

    Hi everybody!
    I`m new on Linux. I try build "Boxes" demo from QtSDK but get the GL missing error:
    error: GL/gl.h: No such file or directory

    Where i can get OpenGL library and where i should place it on my Kubuntu?

    Thanks for replays.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 19 Jan 2012, 07:11 last edited by
      #2

      Use standard apt-get way to get OpenGL stuff. You have to install MESA dev packages. There are many available, I usually install most of them ;)

      Example packages:

      • libgl1-mesa-dev
      • libglu1-mesa-dev
      • libopenvg1-mesa-dev
      • libglw1-mesa-dev

      Those should also pull remaining packages as dependencies.

      (Z(:^

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qxoz
        wrote on 22 Jan 2012, 08:45 last edited by
        #3

        I installed all
        but there is new error:
        /boxes/qtbox.cpp:327: error: ‘gluPerspective’ was not declared in this scope

        may be i should setup some settings for it?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 22 Jan 2012, 10:52 last edited by
          #4

          Not sure. Usually, I keep installing new mesa packages as long as there are any errors. Usually works. I've been using it to run OpenGl in Qt5, so it should also work in Qt4.

          (Z(:^

          1 Reply Last reply
          0
          • B Offline
            B Offline
            broadpeak
            wrote on 22 Jan 2012, 16:30 last edited by
            #5

            These two packages will be enough (in theory...) for opengl:

            sudo apt-get install libgl-dev
            sudo apt-get install libglu-dev

            And of course, in your *.pro file for QtOpenGL module:
            QT += opengl

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qxoz
              wrote on 25 Jan 2012, 18:37 last edited by
              #6

              Thank you for your replies
              they was very helpful

              1 Reply Last reply
              0

              2/6

              19 Jan 2012, 07:11

              4 unread
              • Login

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