使用 Visual Studio 设置点云库 [英] Setting up Point Cloud Library with Visual Studio

查看:40
本文介绍了使用 Visual Studio 设置点云库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Visual Studio 中使用点云库.我下载了一体化 64 位安装程序 Visual Studio 10 并安装了它们.但是现在我无法在 Visual Studio 2010 上运行它,我尝试了官方页面上的教程但没有成功.

I am trying to use the Point Cloud Library with Visual Studio. I downloaded the all-in-one 64 bit installer, Visual Studio 10 and installed them. But now I cannot run it on Visual Studio 2010, I have tried the tutorial on the official page with no luck.

我想在我的解决方案的属性中添加包含和 lib 位置,以及 .lib 文件.

I want to add the includes and lib location, with the .lib files in the properties of my solution.

我之前用 opencv 做过这个,但是对于 PCL,我不知道我必须添加哪些文件和文件夹.

I have done this before with opencv, but for PCL I don't know what files and folders I have to add.

还有哪些 .dll 文件我必须添加到系统变量的路径中.

Also what .dll files I have to add to the path of the system variables.

Cmake 不起作用,我不想使用它.

Cmake didn't work, and I prefer not to use it.

推荐答案

  • 您必须在项目属性/配置属性/VC++目录/包含目录字段中将包含目录添加到您的项目中 - 在这里您指定PCL/的路径include 目录和所有 3rd 方包含目录(参见 PCL/3rdParty 文件夹)

    • You have to add the include directories to your project at the Project Properties / Configuration Properties / VC++ Directories / Include Directories field - here you specify the path to your PCL/include directory and to all 3rd party include directories (see PCL/3rdParty folder)

      您必须在相同的设置页面(Library Directory 字段)上添加库目录 - 在此处指定您的 PCL/lib 目录的路径和到所有非头文件的第 3 方库(即 Boost、Flann、VTK)

      You have to add the library directories on the same settings page (Library Directories field) - here you specify the path to your PCL/lib directory and to all non-header-only 3rd party libs (namely Boost, Flann, VTK)

      您必须告诉链接器您将使用哪些库.这可以在项目属性/配置属性/链接器/输入/附加依赖项字段上完成.添加您正在使用的所有库.如果您正在使用除基本功能以外的任何功能,您很可能需要 pcl_commonpcl_iopcl_visualization 和其他一些功能.请注意将 _release 库添加到您的发布配置中,并将 _debug 库添加到您的调试配置(在您的情况下应该是 64 位配置).

      You have to tell the linker, which libs you will use. This can be done on Project Properties / Configuration Properties / Linker / Input / Additional Dependencies field. Add all the libs you are using. Most likely, you will need pcl_common, pcl_io, pcl_visualization and some others if you are using any functionalities other than the basics. Be aware to add the _release libs to your release configuration and _debug libs to your debug configuration (which should be a 64bit configuration in your case).

      如果您计划使用两种配置(调试和发布),请执行上述两次

      Do the above twice, if you plan to use both configurations (Debug and Release)

      将 Be PCL/bin 文件夹添加到您的系统路径变量中(您不需要添加特定的 dll 文件,只需添加文件夹即可).

      Add the Be PCL/bin folder to your system path variable (you don't need to add specific dll files, just the folder).

      这篇关于使用 Visual Studio 设置点云库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆