Sunday, June 9, 2019

Point Cloud Library Install

I've been trying to get point clouds to work for days now. Manual installation is a pain in the ass due to the library's dozens of dependencies. The machine I'm compiling for is a windows 10 laptop. The solution to this was to use Microsoft's vcpkg, a package manager that I used in powershell.

.\vcpkg install pcl:x64-windows-static

Building all the dependencies and the PCL itself took 7.448 hours on my laptop. This was the result:

The package pcl:x64-windows-static provides CMake targets:

    find_package(PCL CONFIG REQUIRED)
    target_link_libraries(main PRIVATE ${pcl_component})

.\vcpkg integrate install

Outputs:
Applied user-wide integration for this vcpkg root.

All MSBuild C++ projects can now #include any installed libraries.
Linking will be handled automatically.
Installing new libraries will make them instantly available.

CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"

Thank you Stack Overflow!

No comments:

Post a Comment