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