《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 的,参照这些教程即可学习,难度不大

相关推荐
xcyxiner7 小时前
DicomViewer (后台线程处理文件)4
qt
xcyxiner14 小时前
DicomViewer (添加模型类)3
qt
xcyxiner1 天前
DicomViewer (目录调整) 2
qt
xcyxiner1 天前
dcmtk vtk vtk-dicom(gdcm) 编译(debug) v2
qt
桥田智能3 天前
桥田智能 QT-650S:面向白车身焊装的 800kg 重载快换解决方案
开发语言·qt·系统架构
森G3 天前
75、服务器源码解析---------云视频服务项目
linux·服务器·网络·c++·qt
森G3 天前
77、线程池原理和实现------服务器源码解析----云视频服务项目
服务器·c++·qt
森G4 天前
71、打包发布---------打包发布
c++·qt
初圣魔门首席弟子4 天前
Node.js 详细介绍(知识库版)
windows·qt·node.js·知识库
C++ 老炮儿的技术栈4 天前
Qt工控实战:自研机器人TCP长连接客户端(粘包处理+心跳保活+自动重连完整源码解析)
qt·tcp/ip·机器人