Error on execution -version `Qt_5' not found required by

Issue happens because you have Qt installed in /usr/lib/x86_64-linux-gnu from distro which ld will use by default. To avoid such issues you can compile with -rpath or run with LD_LIBRARY_PATH=/path/to/your/Qt/libs/location to help linker find needed Qt version.


Install Qt5.x.0 (what version you need) , find install path and copy all file gcc_64/lib/* into

/usr/lib/x86_64-linux-gnu/*

To update QT to 5.14 on Ubuntu 18.04.5 LTS x86_64:

  • sudo add-apt-repository ppa:beineri/opt-qt-5.14.0-bionic
  • sudo apt-get update
  • sudo apt-get install qt514-meta-minimal -y
  • export LD_LIBRARY_PATH=/opt/qt514/lib/

More details: https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.14.0-bionic