参考:
- http://www.open3d.org/docs/latest/cpp_api.html
- http://www.open3d.org/docs/latest/getting_started.html#c
- http://www.open3d.org/docs/release/cpp_project.html#cplusplus-example-project
- https://github.com/isl-org/open3d-cmake-find-package
- https://github.com/isl-org/open3d-cmake-external-project
官方提供安装包
https://github.com/isl-org/Open3D/releases
Open3d C++版本源码编译
Ubuntu/macOS
git clone --recursive https://github.com/intel-isl/Open3D.git
cd Open3D
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=${HOME}/open3d_install ..
make install -j 12
cd ../..
Win
git clone --recursive https://github.com/intel-isl/Open3D.git
cd Open3D
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=C:\open3d_install ..
cmake --build . --config Release --parallel 12 --target install
cd ..\..
Note: -DBUILD_SHARED_LIBS=ON is recommended if -DBUILD_CUDA_MODULE=ON.
测试用例
On Ubuntu/macOS:
git clone https://github.com/intel-isl/open3d-cmake-external-project.git
cd open3d-cmake-external-project
mkdir build
cd build
cmake ..
make -j 12
./Draw
On Windows:
git clone https://github.com/intel-isl/open3d-cmake-external-project.git
cd open3d-cmake-external-project
mkdir build
cd build
cmake ..
cmake --build . --config Release --parallel 12
Release\Draw