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可以查看依赖的库。
如何将qcustomplot编译成动态库(.so)
最新推荐文章于 2026-04-04 09:12:21 发布
本文详细介绍了从源码编译QCustomPlot动态库的步骤,包括下载源码、解压、修改配置文件、生成Makefile及最终编译过程。通过遵循这些步骤,读者可以成功将QCustomPlot编译为动态库。

1934

被折叠的 条评论
为什么被折叠?



