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. Qt 5.5.0 problem running examples [SOLVED]
QtWS25 Last Chance

Qt 5.5.0 problem running examples [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
9 Posts 5 Posters 18.4k 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.
  • alsaA Offline
    alsaA Offline
    alsa
    wrote on last edited by alsa
    #1

    After install QT 5.5.0 on Ubuntu 14.04 LTS (launching the downloaded file "qt-opensource-linux-x64-5.5.0-2.run"), first thing I tried to compile one of the enclosed examples. I began with "analogclock", but the following error appeared:
    "GL/gl.h: No such file or directory".
    Any suggestions?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      red_spider
      wrote on last edited by
      #2

      Hi....
      you read it?
      https://wiki.qt.io/Install_Qt_5_on_Ubuntu

      Install OpenGL libraries
      

      Execute the following command to install OpenGL libraries:

      sudo apt-get install mesa-common-dev

      Note: Just installing the above-mentioned mesa-common-dev kit is not sufficient for more recent Ubuntu versions. Based on this comment in the forum an additional package needs installation. Execute following command:

      sudo apt-get install libglu1-mesa-dev -y

      Tested with Qt5.3.1 and Ubuntu 14.04 and it solved the problem with missing -lGL.

      1 Reply Last reply
      1
      • alsaA Offline
        alsaA Offline
        alsa
        wrote on last edited by
        #3

        Partially solved! So, Thanks!
        "analogclock" examples needs "rasterwindow.h" header, but it seems missing in QT 5.5.0 (or path is different for some Header that have to be included?).
        Same problem for other examples, as serial port: it requires headers that during Building phase aren't find.
        Any suggestion?

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

          Hi,

          That class is in the rasterwindow folder in the examples folder, how are you building your example ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          alsaA 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            That class is in the rasterwindow folder in the examples folder, how are you building your example ?

            alsaA Offline
            alsaA Offline
            alsa
            wrote on last edited by
            #5

            @SGaist
            You're right!
            I copied "analogclock" folder only to my test folder and it was no possible to compile it; after have been copied the whole "gui" folder (containing more examples, including analogclock), all works perfectly.
            I tried serialport example also: no problem occurs.
            Solved!
            Thanks SGaist

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hieu Le
              wrote on last edited by
              #6

              My error after cannot find GL.h is cannot find -lGL
              I need to create link libGL.so in my PC
              sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so

              SGaistS 1 Reply Last reply
              1
              • H Hieu Le

                My error after cannot find GL.h is cannot find -lGL
                I need to create link libGL.so in my PC
                sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Hieu-Le said in Qt 5.5.0 problem running examples [SOLVED]:

                My error after cannot find GL.h is cannot find -lGL
                I need to create link libGL.so in my PC
                sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so

                Hi and welcome to devnet,

                No you don't. The correct thing to do is to install the OpenGL development package for your distribution.

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

                  Hello,
                  qt creator rasterwindow.h: No such file or directory how can i fixe this ?
                  OS: Raspbian GNU/Linux 11 (bullseye) [linux version 5.15.53-v7+]
                  Qt Creator 4.14.1
                  Based on Qt 5.15.2 (GCC 10.2.1 20210110, 32 bit)

                  SGaistS 1 Reply Last reply
                  0
                  • I imene

                    Hello,
                    qt creator rasterwindow.h: No such file or directory how can i fixe this ?
                    OS: Raspbian GNU/Linux 11 (bullseye) [linux version 5.15.53-v7+]
                    Qt Creator 4.14.1
                    Based on Qt 5.15.2 (GCC 10.2.1 20210110, 32 bit)

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi @imene,

                    In what way is your post related to this thread ?

                    Please open your own thread explaining exactly your situation.

                    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

                    • Login

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