当前位置:网站首页>vs2019配置运行open3d例子
vs2019配置运行open3d例子
2022-07-24 06:02:00 【Arms206】
接上一篇win10与vs2019与open3d与c++编译与动态库dll_Arms206的博客-CSDN博客
进入vs2019建立一个空项目,
菜单栏上方设置Debug与x64,
源文件下新建一个cpp文件,
接下来右键项目->属性,
找到VC++目录,include目录里
添加 D:\Code_2\Open3D_Install_Debug\include
添加 D:\Code_2\Open3D_Install_Debug\include\open3d\3rdparty
//这是上一篇教程中生成的,包含这两个目录,这样在我们的cpp文件中就能
//inclue "open3d/Open3D.h"
//include <Eigen/Dense>
//open3d/Open3D.h 的路径其实为:
//D:\Code_2\Open3D_Install_Debug\include\open3d\Open3D.h
//Eigen/Dense 的路径其实为:
//D:\Code_2\Open3D_Install_Debug\include\open3d\3rdparty\Eigen\Dense
还是在VC++目录,里面的library目录添加:
D:\Code_2\Open3D_Install_Debug\lib
(在该路径下有Open3D.lib文件)
仍在属性页面,找到连接器(Linker),输入(Input)里,
额外依赖里添加Open3D.lib,添加OpenGL32.lib
仍是在属性页面,找到调试(Debugging),
里面的环境(Environment)设为:
path=D:\Code_2\Open3D_Install_Debug\bin
(这是在添加dll动态库路径,在该路径下有Open3D.dll)
然后确定即可,去运行,出来一个可转动的绿球的例子,来自参考的博客,
参考的博客太多了,虽然有些可能过时了,还是要感谢大家的分享,不然都没得看
#include <string>
#include "Open3D/Open3D.h"
int main(int argc, char* argv[]) {
if (argc == 2) {
std::string option(argv[1]);
if (option == "--skip-for-unit-test") {
open3d::utility::LogInfo("Skiped for unit test.");
return 0;
}
}
auto sphere = open3d::geometry::TriangleMesh::CreateSphere(1.0);
sphere->ComputeVertexNormals();
sphere->PaintUniformColor({ 0.0, 1.0, 0.0 });
open3d::visualization::DrawGeometries({ sphere });
return 0;
}边栏推荐
- MGR_ mysqlsh_ Keepalive high availability architecture deployment document
- Special effects - Cherry Blossom falling background effects
- tensorflow boolean_mask函数
- reflex
- STM32基于hal库的adc以DMA的多通道采样以及所遇问题解决
- Special effects - starry cosmic background effects
- Mac can't connect to local MySQL server through socket '/tmp/mysql Sock '(2) problem
- 极客星球丨 字节跳动一站式数据治理解决方案及平台架构
- 安装snownlp包过程出现Requirement already satisfied:及Read timed out.问题解决方法
- (static, dynamic, file) three versions of address book
猜你喜欢

Create WPF project

kubernetes 的Deployment(部署),Service概念,动态扩缩容

Redis.conf details

kubernetes简介和架构及其原理

MGR_ mysqlsh_ Keepalive high availability architecture deployment document
![[lvgl (4)] event and event bubble of the object](/img/1e/9fe3d34f5f8d8c7298a106dca8d949.png)
[lvgl (4)] event and event bubble of the object

Detailed explanation of class loader and parental delegation mechanism
![[lvgl (6)] display Chinese settings and make Chinese font](/img/a4/1b0d0b7a5789ecc8f9a2a8cd93d92e.png)
[lvgl (6)] display Chinese settings and make Chinese font

(static, dynamic, file) three versions of address book

MySQL gets the self incrementing line mark (different from MySQL version)
随机推荐
Random forest, lgbm parameter adjustment based on Bayesian Optimization
Never lose yourself!
Directory and file management
OSS authorizes a single bucket permission
Redis基本类型-有序集合Zset
[lvgl (important)] style attribute API function and its parameters
mysql获取自增行标(区别mysql版本)
XXL execute node error log swiping
别太在意别人的眼光,那会抹杀你的光彩
JSONObject按照key的A——Z顺序排序
[lvgl (2)]
Introduction, architecture and principle of kubernetes
HashSet转数组
Esp32 ultra detailed learning record: NTP synchronization time
极客星球丨 字节跳动一站式数据治理解决方案及平台架构
[lvgl (1)] a brief introduction to lvgl
Geek planet ByteDance one stop data governance solution and platform architecture
渗透学习-SQL注入篇-靶场篇-安全狗的安装与绕过实验(后续还会更新)
String问题
Special effects - mouse click, custom DOM follow move