-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
effort: lowRough estimate of time needed to fix/implement/solveRough estimate of time needed to fix/implement/solvegood first issueSkills/areas of expertise needed to tackle the issueSkills/areas of expertise needed to tackle the issuehelp wantedkind: proposalType of issueType of issuekind: todoType of issueType of issuemodule: docs
Description
Hi,
We went through a painful process of PCL installation.
In order to save someone else time, I would strongly recommend to include these steps in PCL github ReadMe file.
TRYING TO INSTALL PCL FOR DAYS, WEEKS, MONTHS AND YEARS FOR WINDOWS X64 VISUAL STUDIO 2019?
READ CAREFULLY STEPS BELOW:
- Download All-in-One Installer
https://github.com/PointCloudLibrary/pcl/releases
Including OpenNi
We tried VCPKG packages, but it did not work because of Eigen, and the only way was to install via all in one installer.
- Set Environmental Variables and restart computer.
We tried on two separate laptops and this was the full list needed. Because in one pc some references were ok and the other pc required more references.
To find environmental variables in windows bottom left, type Environmental Variables.
name: PCL_ROOT
value: C:\Program Files\PCL 1.11.1
name:Path
C:\Program Files\OpenNI2
C:\Program Files\PCL 1.11.1\bin
C:\Program Files\PCL 1.11.1\3rdParty
C:\Program Files\PCL 1.11.1\3rdParty\VTK\bin
C:\Program Files\OpenNI2\Tools
name: OPENNI2_INCLUDE64
value: C:\Program Files\OpenNI2\Include\
name: OPENNI2_LIB64
value: C:\Program Files\OpenNI2\Lib\
name: OPENNI2_REDIST64
value: C:\Program Files\OpenNI2\Redist\
- Create Folder in whatever place (I used C:/lib/PCLTest drive) and add CMakeLists.txt and .cpp file following the online tutorial instructions: https://pcl.readthedocs.io/projects/tutorials/en/latest/cloud_viewer.html#cloud-viewer.
Add text from this website into CMakeLists.txt and then add cloud_viewer.cpp with the code inside.
- In CMake (https://cmake.org/download/) reference the folder where those two files are and reference empty build file.
Press configure and build.
If the cpp file is named main.cpp it wont work because it must be cloud_viewer.cpp .
Also do not forget to add code from the tutorial website (pointclouds.org) else the code wont build.
Press Configure and then Generate. Do not forget to set compiler to x64 bit. Compile will create project file in build directory.

In my case I had some warning messages but it worked:

- Copy PointCloud.pcd file to project main folder, the pcd (pointcloud data sets) are in your program files, use search engine Everything to find these files faster:
C:\DEV\PCL1_11_1_Test03\build

- Change the name of the .pcd file in the cloud_viewer.cpp file, build it again and run it in debug mode.
PCL IS AWESOME
9and3, ericwilliamsneu, rightchose, eltonhcchan, Sicryption and 23 moreDYT-Flyer, francudina, Sagar-CK, Ivan-Jordan96, Kishor-Ramesh and 1 morerightchose, ericwilliamsneu, mariarzv, Nerolf05, robinloujun and 12 moreflynneva, DYT-Flyer, HedeleZeng, francudina, Sagar-CK and 3 morefrancudina, Sagar-CK and Ivan-Jordan96
Metadata
Metadata
Assignees
Labels
effort: lowRough estimate of time needed to fix/implement/solveRough estimate of time needed to fix/implement/solvegood first issueSkills/areas of expertise needed to tackle the issueSkills/areas of expertise needed to tackle the issuehelp wantedkind: proposalType of issueType of issuekind: todoType of issueType of issuemodule: docs




