Compiling QCustomPlot as shared library:
- Make sure the amalgamated QCustomPlot source files (qcustomplot.h/.cpp) are in the directory above sharedlib (two directories above the .pro files).
- Run qmake; make; in the sharedlib-compilation directory. This will create two library versions: "qcustomplot" for release mode and "qcustomplotd" for debug mode.
For example, on Unix this will create libqcustomplot.so and libqcustomplotd.so and some softlink files to those shared library files.
On MS Windows it will create corresponding .dll files.
Compiling an application that uses the shared library:
- Copy all created library/softlink files from the previous step to the sharedlib-usage directory
- run qmake; make; in the sharedlib-usage directory. This will build the application.
Running the application:
- Make sure the application executable can find the shared library files:
On MS Windows it is sufficient to have the library .dll files in the same directory as the executable.
On Unix you have at least two options: You can specify the current directory in the LD_LIBRARY_PATH variable (call in
terminal: "export LD_LIBRARY_PATH=." before launching the application from the same terminal session). This is useful
for testing if it works. The other option is to install the library files to one of the default locations for shared
objects: /usr/local/lib or /usr/lib for example.
- Launch the application.
没有合适的资源?快使用搜索试试~ 我知道了~
QCustomPlot-sharedlib.tar.gz_QT_Qt 波形_qcustomplot_qt 控件_qt波形
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 142 浏览量
2022-09-21
19:39:57
上传
评论
收藏 2KB GZ 举报
温馨提示
共4个文件
pro:2个
cpp:1个
txt:1个
qt绘制波形图的精美控件2,非常好用。。。
资源详情
资源评论
资源推荐
收起资源包目录
QCustomPlot-sharedlib.tar.gz (4个子文件)
qcustomplot-sharedlib
sharedlib-compilation
sharedlib-compilation.pro 833B
readme.txt 1KB
sharedlib-usage
sharedlib-usage.pro 994B
main.cpp 697B
共 4 条
- 1
寒泊
- 粉丝: 75
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0