Error 1: libQt5Charts.so library can not be found, operate delete is not defined
git clone https://github.com/qtproject/qtcharts.git
cd qtcharts
git checkout qt version
qmake
make
cp qtcharts/lib/libQt5Charts.* ~/Qt5.9.5/5.9.5/gcc_64/lib
During the compilation process, it will be reported that g++ does not have std=c++1z and Wdate_time options. Change the former to std=c++11, and delete the latter and remake
Error 2: libQt5SerialPort.so library cannot be found
git clone git://code.qt.io/qt/qtserialport.git
cd qtserialport
git checkout qt version
$qmake
$make
cp qtserialport/libQt5SerialPort.* ~/Qt5.9.5/5.9.5/gcc_64/lib
The header file libudev.h was reported during the compilation process: