How to install qt5.12?

my work demo is running in qt5.12 and opencv4.5.5,when i put the demo to the W3,it can not work normal。

  1. Install QT
  • Install Cross Compilation
sudo su
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential

Use the following steps to install Qt

sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
sudo apt-get install qtcreator
sudo apt-get install qt5*

Execute the command to view the QT version installed by armsom-W3

qmake -query
  1. Install Opencv
  • Install Dependency Package
 $sudo apt-get install cmake
 $sudo apt-get install gcc g++
 $sudo apt-get install python3-dev python3-numpy
 $sudo apt-get install build-essential
 $sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libv4l-dev libxvidcore-dev libx264-dev libatlas-base-dev gfortran libgtk2.0-dev libjpeg-dev libpng-dev

Go to the opencv official website to download the source code

cd opencv-3.4.14
mkdir build
cd build 
cmake ../
sudo make install

Edit /etc/, add “/usr/local/lib” at the end of the text, execute sudo /sbin/ldconfig - v to take effect

vi /etc/
+ /usr/local/lib

sudo /sbin/ldconfig - v


Do you have strict requirements for the QT version in your application? Then download the corresponding version package from this link qt_5.12