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. Different QT Versions and Packages on Ubuntu 20.04
Forum Updated to NodeBB v4.3 + New Features

Different QT Versions and Packages on Ubuntu 20.04

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 6.3k 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.
  • D Offline
    D Offline
    DQT20
    wrote on last edited by
    #1

    Hi all,

    I install QT on Ubuntu 20.04 with these commands:

    sudo apt install build-essential
    sudo apt install qtcreator
    sudo apt install qt5-default
    

    It installed Qt 5.12.8 as default.
    And then i installed necessary packages like gstreamer with this command.

    sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good 
    gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc 
    gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 
    gstreamer1.0-qt5 gstreamer1.0-pulseaudio
    

    Up to this point everything has been okey.

    The problem is about another QT Version. I want to install QT 5.15.2 on Ubuntu 20.04.
    I install QT 5.15.2 with Online Installer and i can see and choose it in QT Creator.

    But the system still recognizes version QT 5.12.8 by default. I can't install gstreamer for QT 5.15.2.

    How can i fix this?

    jsulmJ 1 Reply Last reply
    0
    • D DQT20

      Hi all,

      I install QT on Ubuntu 20.04 with these commands:

      sudo apt install build-essential
      sudo apt install qtcreator
      sudo apt install qt5-default
      

      It installed Qt 5.12.8 as default.
      And then i installed necessary packages like gstreamer with this command.

      sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good 
      gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc 
      gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 
      gstreamer1.0-qt5 gstreamer1.0-pulseaudio
      

      Up to this point everything has been okey.

      The problem is about another QT Version. I want to install QT 5.15.2 on Ubuntu 20.04.
      I install QT 5.15.2 with Online Installer and i can see and choose it in QT Creator.

      But the system still recognizes version QT 5.12.8 by default. I can't install gstreamer for QT 5.15.2.

      How can i fix this?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @DQT20 said in Different QT Versions and Packages on Ubuntu 20.04:

      But the system still recognizes version QT 5.12.8 by default

      What system? Please explain what you mean.
      "I can't install gstreamer for QT 5.15.2" - you already installed gstreamer, it should work. If it does not work please explain what exactly happens.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DQT20
        wrote on last edited by
        #3

        @jsulm said in Different QT Versions and Packages on Ubuntu 20.04:

        "I can't install gstreamer for QT 5.15.2" - you already installed gstreamer, it should work. If it does not work please explain what exactly happens.

        I can work with gstreamer on QT 5.12.8. But, when i choose QT 5.15.2, i can't work with gstreamer.
        Can QT 5.15.2 automatically see gstreamer packages?

        JKSHJ 1 Reply Last reply
        0
        • D DQT20

          @jsulm said in Different QT Versions and Packages on Ubuntu 20.04:

          "I can't install gstreamer for QT 5.15.2" - you already installed gstreamer, it should work. If it does not work please explain what exactly happens.

          I can work with gstreamer on QT 5.12.8. But, when i choose QT 5.15.2, i can't work with gstreamer.
          Can QT 5.15.2 automatically see gstreamer packages?

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          @DQT20 said in Different QT Versions and Packages on Ubuntu 20.04:

          when i choose QT 5.15.2, i can't work with gstreamer.

          Why not? What errors do you get?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          D 1 Reply Last reply
          0
          • JKSHJ JKSH

            @DQT20 said in Different QT Versions and Packages on Ubuntu 20.04:

            when i choose QT 5.15.2, i can't work with gstreamer.

            Why not? What errors do you get?

            D Offline
            D Offline
            DQT20
            wrote on last edited by
            #5

            @JKSH

            QT can't find libraries.

            When selected QT 5.12.8, cpp file can include libraries like:

            #include <QGst/Message>
            #include <QGst/Sample>
            #include <QGst/Buffer>
            ...
            

            When selected QT 5.15.2, cpp file can't include these libraries.

            JKSHJ 1 Reply Last reply
            0
            • D DQT20

              @JKSH

              QT can't find libraries.

              When selected QT 5.12.8, cpp file can include libraries like:

              #include <QGst/Message>
              #include <QGst/Sample>
              #include <QGst/Buffer>
              ...
              

              When selected QT 5.15.2, cpp file can't include these libraries.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @DQT20 said in Different QT Versions and Packages on Ubuntu 20.04:

              QT can't find libraries.

              When selected QT 5.12.8, cpp file can include libraries like:

              #include <QGst/Message>
              #include <QGst/Sample>
              #include <QGst/Buffer>
              ...
              

              When selected QT 5.15.2, cpp file can't include these libraries.

              Those are not part of Qt, and they are not part of GStreamer.

              They are part of the 3rd-party QtGStreamer bindings library: https://gstreamer.freedesktop.org/bindings/qt.html

              I don't know if they are compatible with Qt 5.15 or not. If they are, you can simply tell your project where to find the headers and libraries (for example, if you're using qmake, then add QtGStreamer to your INCLUDEPATH and LIBS variables).

              However, if they're not compatible with Qt 5.15, then download the QtGStreamer source code and use Qt 5.15 to build the libraries.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              2

              • Login

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