《Easy3d+Qt+VTK》学习

《Easy3d+Qt+VTK》学习-1、编译与配置

一、编译

1、

资源下载:easy3d giuhub

2、解压缩

3、用qt打开CMakeLists.txt即可

4、点击项目,选择debug或者release,图中3处可自行选择,因为我的qt版本是6,easy3d默认是5,所以qt我没有配置编译

5、先点击执行cmake,在点击构建,即可生成lib和dll文件,同样的方法构建一下release版本,生成如下:

6、把源文件中如下拷贝进include文件即可,最终如下:

bin

lib

include

7、环境变量添加bin路径

二、配置

1、新建立一个qt qmake应用

pro文件添加

复制代码
#--------------------------------------------easy3d dependence----------------------------------------

    INCLUDEPATH += D:/PCL/Easy3D/include\

    CONFIG(debug,debug|release){

     LIBS += -LD:/PCL/Easy3D/lib/debug\
             -l3rd_glfw\
             -l3rd_glutess\
             -l3rd_imgui\
             -l3rd_kdtree\
             -l3rd_lastools\
             -l3rd_opcode\
             -l3rd_poisson\
             -l3rd_polypartition\
             -l3rd_ransac\
             -l3rd_rply\
             -l3rd_tetgen\
             -l3rd_triangle\
             -leasy3d_algo\
             -leasy3d_core\
             -leasy3d_fileio\
             -leasy3d_gui\
             -leasy3d_kdtree\
             -leasy3d_renderer\
             -leasy3d_util\
             -leasy3d_viewer\

    }
    else {
    LIBS += -LD:/PCL/Easy3D/lib/release\
             -l3rd_glfw\
             -l3rd_glutess\
             -l3rd_imgui\
             -l3rd_kdtree\
             -l3rd_lastools\
             -l3rd_opcode\
             -l3rd_poisson\
             -l3rd_polypartition\
             -l3rd_ransac\
             -l3rd_rply\
             -l3rd_tetgen\
             -l3rd_triangle\
             -leasy3d_algo\
             -leasy3d_core\
             -leasy3d_fileio\
             -leasy3d_gui\
             -leasy3d_kdtree\
             -leasy3d_renderer\
             -leasy3d_util\
             -leasy3d_viewer\

    }


#--------------------------------------------easy3d dependence----------------------------------------

如果习惯用cmake 的,参照这些教程即可学习,难度不大

相关推荐
蓝天智能5 分钟前
QT MVC中View的特点及使用注意事项
开发语言·qt·mvc
ajassi20002 小时前
开源 C++ QT QML 开发(十四)进程用途
c++·qt·开源
YxVoyager3 小时前
Qt C++ :XML文件处理工具 <QXml>模块
xml·c++·qt
扶尔魔ocy3 小时前
【QT常用技术讲解】QSerialPort串口开发,包含文件发送功能
qt
YxVoyager10 小时前
Qt C++ :QLayout 布局管理
c++·qt
共享家952716 小时前
QT-常用控件(一)
开发语言·qt
ajassi200016 小时前
开源 C++ QT QML 开发(十二)通讯--TCP客户端
c++·qt·开源
nnnnichijou18 小时前
Qt Quick 3D-机械臂模型显示与交互
qt·3d·交互
长源Gingko20 小时前
Windows中在QTCreator中调试,提示缺少debug information files问题的解决
windows·qt
SundayBear1 天前
Qt 开发修炼指南:从入门到通透的实战心法
开发语言·qt·嵌入式