1.下载源码QCustomPlot.tar.gz,下载地址https://www.qcustomplot.com/index.php/download
2.解压
#tar -zxvf QCustomPlot.tar.gz
3.下载QCustomPlot-sharedlib.tar.gz
4.解压
#tar -zxvf QCustomPlot-sharedlib.tar.gz
5.修改sharedlib-compilation中的sharedlib-compilation.pro中的源文件路径
SOURCES += …/…/qcustomplot/qcustomplot.cpp
HEADERS += …/…/qcustomplot/qcustomplot.h
6.生成Makefile
#qmake
7.编译成动态库
#make
使用objdump -x libqcustomplot.so.1.3可以查看依赖的库。