qt版本为qt-opensource-windows-x86-mingw530-5.7.0
qwtplot3d版本为qwtplot3d-0.2.7
请问怎么把qwtplot3d添加进去啊,网上找了好多教程,都试了还没成功,好绝望啊,求大神教一下
上述的Vispy参考资料太少,只能根据官网教程自学,且需要一定的OpenGL知识,望而却步。因而采用QwtPlot3d这个Qt第三方库进行实现。
# 配置基本编译环境
sudo apt-get install build-essentia
# 安装OpenGL Library
sudo apt-get install libgl1-mesa-dev
# 安装OpenGL Utilities
sudo apt-get install libglu1-mesa-dev
# 安装OpenGL Utility Toolkit
sudo apt-get install freeglut3-dev
下面测试是否安装成功:进入https://jbox.sjtu.edu.cn/l/wJoO6f(密码:tztr)下载Test.cpp.在终端中输入:
g++ Test.cpp -o test -l GL -l GLU -l glut
./test
效果如下图所示,即为安装成功。
2. 下载QwtPlot3d压缩包。
a.
unix:LIBS += -lqwtplot3d -L../../lib
注释掉,改为:unix:LIBS += -L/home/stefan/qwtplot3d-code-r259-branches-multiple_curves_0_2_x/build-qwtplot3d-Desktop_Qt_5_5_1_GCC_64bit-Release/lib/release/linux -lqwtplot3d -lz -lGLU
实际上就是将Release的结果中库包含进来。
7. 运行程序,出现以下图片,QwtPlot3d配置完成。
[1]: https://forum.qt.io/topic/43953/solved-qwtplot3d-linux/7
[2]: https://blog.csdn.net/wasaiheihei/article/details/52085397