Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
525 views
in Technique[技术] by (71.8m points)

Setting up Point Cloud Library with Visual Studio

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.

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

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

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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  • 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)

  • 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)

  • 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)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...