Home > Blockchain >  How to make a compatible application with CQtDeployer for any version of Linux/Ubuntu?
How to make a compatible application with CQtDeployer for any version of Linux/Ubuntu?

Time:02-23

I deployed my Qt Gui application with CQtDeployer on Ubuntu 18.04. But, I can't run it on Ubuntu 16.04 / Ubuntu 14.04. It has an error on version.

enter image description here

How can I fix it?

CodePudding user response:

Just build and deploy your application on ubuntu 14.04

Your distribution not run because you build and deploy application on OS that has new version of (libc/libz) library.

So, If you want to create distribution that will be works correctly on all versions of your OS then you need to build and deploy application must early OS version.

Example

Application that was built on ubuntu 16.04 will be works great on ubuntu 18.04 , 20.04 and may be 22.04

But not 14.04 because minimum required libc level is some as on ubuntu 16.04.

How to get cqdeployer on ubuntu 14.04

Install from snap store:

sudo snap install cqtdeployer 
sudo snap connect cqtdeployer:process-control
sudo snap connect cqtdeployer:removable-media
sudo snap connect cqtdeployer:system-backup

And NOTE

The ubuntu 14.04 too old. So i recommend to drop support of ubuntu 14.04. User Ubuntu 16.04 as main build machine.

CodePudding user response:

You can use linuxdeployqt tool to deploy your Qt application. It works just fine here is how you can use it: tutorial

  • Related