Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to install qt 5.15.x in ubuntu 18.04
Forum Updated to NodeBB v4.3 + New Features

How to install qt 5.15.x in ubuntu 18.04

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 4 Posters 4.1k 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.
  • S Offline
    S Offline
    Sushanth17
    wrote on last edited by
    #1

    I have developed an application in ubuntu 18.04 (default qt version 5.9.5). Now I need to make it compatible for Ubuntu 22.04(Default qt version 5.15.2). So, I need to install qt 5.15.2 in ubuntu 18.04 using terminal commands instead of using ppa & installer. Because I need to build it in launchpad later. Please help me to do this!

    jsulmJ 1 Reply Last reply
    0
    • S Sushanth17

      I have developed an application in ubuntu 18.04 (default qt version 5.9.5). Now I need to make it compatible for Ubuntu 22.04(Default qt version 5.15.2). So, I need to install qt 5.15.2 in ubuntu 18.04 using terminal commands instead of using ppa & installer. Because I need to build it in launchpad later. Please help me to do this!

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

      @Sushanth17 Use the Qt Online Installer to install Qt 5.15.2.
      Or simply set up a virtual machine with Ubuntu 22.04 to really make sure your build will be compatible with that Ubuntu version.

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

      S 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Sushanth17 Use the Qt Online Installer to install Qt 5.15.2.
        Or simply set up a virtual machine with Ubuntu 22.04 to really make sure your build will be compatible with that Ubuntu version.

        S Offline
        S Offline
        Sushanth17
        wrote on last edited by Sushanth17
        #3

        Yes @jsulm, we can install it using online installers, but I need to build it on Launchpad to upload it to the Ubuntu server. Later, we can install the application using 'apt-get install' with one code on GitHub that builds it for all separate operating systems.

        In the 'debian/control' file:
        Source: qtcam
        Section: video
        Priority: extra
        Build-Depends: debhelper (>= 9.0.0), libv4l-dev, qt5-default, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev, libavresample-dev, libudev-dev, libavcodec-extra, qt5-default, qtdeclarative5-dev, freeglut3, freeglut3-dev, libjpeg-turbo8-dev, libusb-1.0-0-dev, libusb-dev, libevdev-dev, libpulse-dev, qtmultimedia5-dev, libasound2-dev , libturbojpeg0-dev ,g++-5 ,lsb-core,lsb-release
        If we build with 'qt5-default', it will use the default Qt version for the respective OS:

        Ubuntu 18.04 - Qt 5.9.5
        Ubuntu 20.04 - Qt 5.12.8
        Ubuntu 22.04 - Qt 5.15.3
        However, I need to install the upgraded version of Qt 5.15.3 on Ubuntu 18.04, which has the default version of Qt 5.9.5. Please assist me in resolving this issue.

        SGaistS JoeCFDJ 2 Replies Last reply
        0
        • S Sushanth17

          Yes @jsulm, we can install it using online installers, but I need to build it on Launchpad to upload it to the Ubuntu server. Later, we can install the application using 'apt-get install' with one code on GitHub that builds it for all separate operating systems.

          In the 'debian/control' file:
          Source: qtcam
          Section: video
          Priority: extra
          Build-Depends: debhelper (>= 9.0.0), libv4l-dev, qt5-default, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev, libavresample-dev, libudev-dev, libavcodec-extra, qt5-default, qtdeclarative5-dev, freeglut3, freeglut3-dev, libjpeg-turbo8-dev, libusb-1.0-0-dev, libusb-dev, libevdev-dev, libpulse-dev, qtmultimedia5-dev, libasound2-dev , libturbojpeg0-dev ,g++-5 ,lsb-core,lsb-release
          If we build with 'qt5-default', it will use the default Qt version for the respective OS:

          Ubuntu 18.04 - Qt 5.9.5
          Ubuntu 20.04 - Qt 5.12.8
          Ubuntu 22.04 - Qt 5.15.3
          However, I need to install the upgraded version of Qt 5.15.3 on Ubuntu 18.04, which has the default version of Qt 5.9.5. Please assist me in resolving this issue.

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

          Hi,

          Then why not follow the suggestion of @jsulm: use the online installer in command line mode and setup the Qt version you want before building your application.

          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
          • S Sushanth17

            Yes @jsulm, we can install it using online installers, but I need to build it on Launchpad to upload it to the Ubuntu server. Later, we can install the application using 'apt-get install' with one code on GitHub that builds it for all separate operating systems.

            In the 'debian/control' file:
            Source: qtcam
            Section: video
            Priority: extra
            Build-Depends: debhelper (>= 9.0.0), libv4l-dev, qt5-default, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev, libavresample-dev, libudev-dev, libavcodec-extra, qt5-default, qtdeclarative5-dev, freeglut3, freeglut3-dev, libjpeg-turbo8-dev, libusb-1.0-0-dev, libusb-dev, libevdev-dev, libpulse-dev, qtmultimedia5-dev, libasound2-dev , libturbojpeg0-dev ,g++-5 ,lsb-core,lsb-release
            If we build with 'qt5-default', it will use the default Qt version for the respective OS:

            Ubuntu 18.04 - Qt 5.9.5
            Ubuntu 20.04 - Qt 5.12.8
            Ubuntu 22.04 - Qt 5.15.3
            However, I need to install the upgraded version of Qt 5.15.3 on Ubuntu 18.04, which has the default version of Qt 5.9.5. Please assist me in resolving this issue.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #5

            @Sushanth17 there are not so many differences between Qt 5.15.3 and Qt 5.15.2. You can use installer to install Qt 5.15.2 in Ubuntu 18.04 for building your app. It is very likely that your app will be built and run well with Qt 5.15.3.

            I installed Qt 5.15.2 under /opt/Qt in Ubuntu 18.04 and my app runs fine with 5.15.2 on Ubuntu 18.04. You can simply drop 5.9.5 in Ubuntu 18.04 and 5.12.8 in Ubuntu 20.04. Your app can be run with 5.15.2 in Ubuntu 18.04, 20.04 and 22.04.

            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