How to install qt 5.15.x in ubuntu 18.04
-
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!
-
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!
@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. -
@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.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. -
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. -
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.@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.