Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Using OpenGL within QT, novice Linux user
QtWS25 Last Chance

Using OpenGL within QT, novice Linux user

Scheduled Pinned Locked Moved Solved 3rd Party Software
11 Posts 2 Posters 1.5k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Do you really have to use Qt 3.3.8b ?

    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
    1
    • B Offline
      B Offline
      BKBK
      wrote on last edited by
      #3

      Unfortunately yes. I am on a government project and the project manager(s) take the position that since it works and does what is needed we are not going to spend money and time to upgrade.

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

        Ok...

        You need to install the libglu development package if not already on your system.

        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
        • B Offline
          B Offline
          BKBK
          wrote on last edited by
          #5

          In my OP I noted that something like that was found. Here is the result of: ls al libGLU.so:
          lrwxrwxrwx 1 root root 15 Oct 25 10:23 libGLU.so -> libGLU.so.1.3.1

          Is there something else I should look for?

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

            My bad, I misread.

            Did you try with -lGLU ?

            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
            • B Offline
              B Offline
              BKBK
              wrote on last edited by
              #7

              I have tried
              -lglu –lglut // returned cannot fine -lglu
              LGLU –LGLUT // returned undefined reference to 'glClear'
              -Lglu -lGLUT // returned cannot find lGLUT

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

                Keep l lowercase, it's not the same signification for the linker. -L adds a folder to the search path of the linker while -l is to add a library to link to.

                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
                • B Offline
                  B Offline
                  BKBK
                  wrote on last edited by
                  #9

                  Did a few more, and maybe some duplicates from earlier.
                  -lglut undefined reference to glClear
                  -lglut -lglu cannot find -lglu
                  -lglut -lGLU undefined reference to glClear

                  the -lglu and -lGLU appear to provide nothing.

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

                    glClear is provided by the OpenGL library. You are missing -lGL.

                    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
                    1
                    • B Offline
                      B Offline
                      BKBK
                      wrote on last edited by
                      #11

                      Ok, that worked and I am on my way again.
                      Thank you for your time and patience.

                      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