{"id":15674916,"url":"https://github.com/pinto0309/open3d-build","last_synced_at":"2025-05-06T23:29:46.566Z","repository":{"id":97173041,"uuid":"338958094","full_name":"PINTO0309/Open3D-build","owner":"PINTO0309","description":"Provide Docker build sequences of Open3D for various environments.","archived":false,"fork":false,"pushed_at":"2021-02-23T08:54:59.000Z","size":25,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T04:03:46.137Z","etag":null,"topics":["cuda","docker","jetson","jetson-nano","open3d","open3d-python","pytorch","tensorflow"],"latest_commit_sha":null,"homepage":"https://qiita.com/PINTO","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PINTO0309.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-02-15T03:32:46.000Z","updated_at":"2023-04-16T07:04:49.000Z","dependencies_parsed_at":"2024-01-16T02:22:04.906Z","dependency_job_id":"9fc50ac5-8e7e-4b17-9fc1-6cc2ad98e3b1","html_url":"https://github.com/PINTO0309/Open3D-build","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2FOpen3D-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2FOpen3D-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2FOpen3D-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2FOpen3D-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PINTO0309","download_url":"https://codeload.github.com/PINTO0309/Open3D-build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252786737,"owners_count":21804141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cuda","docker","jetson","jetson-nano","open3d","open3d-python","pytorch","tensorflow"],"created_at":"2024-10-03T15:53:00.313Z","updated_at":"2025-05-06T23:29:46.547Z","avatar_url":"https://github.com/PINTO0309.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open3D-build\nProvide Docker build sequences of Open3D for various environments.  \n**https://github.com/intel-isl/Open3D**\n\n## 1. Docker Image Environment\n- Ubuntu 18.04 x86_64\n    - CUDA 11.0\n    - cuDNN 8.0\n    - TensorFlow v2.4.1 (Build from source code. It will be downloaded automatically during docker build.)\n    - PyTorch v1.7.1 (Build from source code. It will be downloaded automatically during docker build.)\n- Jetson Nano L4T r32.5.0 aarch64\n    - CUDA 10.2\n    - cuDNN 8.0\n    - TensorFlow v2.4.1 (Build from source code. It will be downloaded automatically during docker build.)\n    - PyTorch v1.7.1 (Build from source code. It will be downloaded automatically during docker build.)\n- Open3D 0.12.0\n\n## 2. Default build parameters\n### 2-1. Ubuntu 18.04 x86_64\n```\n-- ========================================================================\n-- Open3D 0.12.0 Configuration Summary\n-- ========================================================================\n-- Enabled Features:\n--   OpenMP .................................. ON\n--   Headless Rendering ...................... OFF\n--   Azure Kinect Support .................... ON\n--   Intel RealSense Support ................. ON\n--   CUDA Support ............................ ON\n--   Build GUI ............................... ON\n--   Build Shared Library .................... ON\n--   Build Unit Tests ........................ OFF\n--   Build Examples .......................... \n--   Build Python Module ..................... ON\n--   - with Jupyter Notebook Support ......... ON\n--   Build TensorFlow Ops .................... ON\n--   Build PyTorch Ops ....................... ON\n--   Build Benchmarks ........................ ON\n--   Bundle Open3D-ML ........................ ON\n--   Build RPC interface ..................... ON\n--   Force GLIBCXX_USE_CXX11_ABI= ............ 1\n-- ========================================================================\n-- Third-Party Dependencies:\n--   EIGEN3 .................................. yes (build from source)\n--   FAISS ................................... no\n--   FILAMENT ................................ yes (build from source)\n--   FLANN ................................... yes (build from source)\n--   FMT ..................................... yes (build from source)\n--   GLEW .................................... yes (build from source)\n--   GLFW .................................... yes (build from source)\n--   GOOGLETEST .............................. no\n--   IMGUI ................................... yes (build from source)\n--   JPEG .................................... yes (build from source)\n--   JSONCPP ................................. yes (build from source)\n--   LIBLZF .................................. yes (build from source)\n--   OPENGL .................................. yes (build from source)\n--   PNG ..................................... yes (build from source)\n--   PYBIND11 ................................ yes (build from source)\n--   QHULL ................................... yes (build from source)\n--   LIBREALSENSE ............................ yes (build from source)\n--   TINYFILEDIALOGS ......................... yes (build from source)\n--   TINYGLTF ................................ yes (build from source)\n--   TINYOBJLOADER ........................... yes (build from source)\n-- ========================================================================\n```\n### 2-2. Jetson Nano L4T r32.5.0 aarch64\n```\n-- ========================================================================\n-- Open3D 0.12.0 Configuration Summary\n-- ========================================================================\n-- Enabled Features:\n--   OpenMP .................................. ON\n--   Headless Rendering ...................... OFF\n--   Azure Kinect Support .................... ON\n--   Intel RealSense Support ................. ON\n--   CUDA Support ............................ ON\n--   Build GUI ............................... ON\n--   Build Shared Library .................... ON\n--   Build Unit Tests ........................ OFF\n--   Build Examples .......................... \n--   Build Python Module ..................... ON\n--   - with Jupyter Notebook Support ......... ON\n--   Build TensorFlow Ops .................... ON\n--   Build PyTorch Ops ....................... ON\n--   Build Benchmarks ........................ ON\n--   Bundle Open3D-ML ........................ ON\n--   Build RPC interface ..................... ON\n--   Force GLIBCXX_USE_CXX11_ABI= ............ 1\n-- ========================================================================\n-- Third-Party Dependencies:\n--   EIGEN3 .................................. yes (build from source)\n--   FAISS ................................... no\n--   FILAMENT ................................ yes (build from source)\n--   FLANN ................................... yes (build from source)\n--   FMT ..................................... yes (build from source)\n--   GLEW .................................... yes (build from source)\n--   GLFW .................................... yes (build from source)\n--   GOOGLETEST .............................. no\n--   IMGUI ................................... yes (build from source)\n--   JPEG .................................... yes (build from source)\n--   JSONCPP ................................. yes (build from source)\n--   LIBLZF .................................. yes (build from source)\n--   OPENGL .................................. yes (build from source)\n--   PNG ..................................... yes (build from source)\n--   PYBIND11 ................................ yes (build from source)\n--   QHULL ................................... yes (build from source)\n--   LIBREALSENSE ............................ yes (build from source)\n--   TINYFILEDIALOGS ......................... yes (build from source)\n--   TINYGLTF ................................ yes (build from source)\n--   TINYOBJLOADER ........................... yes (build from source)\n-- ========================================================================\n```\n\n## 3. Usage - Docker Build\nYou can customize the Dockerfile to build and run your own container images on your own.\n### 3-1-1. x86_64 Build\n```bash\n$ version=0.12.0\n$ git clone -b ${version} https://github.com/PINTO0309/Open3D-build.git\n$ cd Open3D-build\n$ docker build -t pinto0309/open3d-build:latest x86_64\n```\n### 3-1-2. aarch64 Build\n```bash\n$ version=0.12.0\n$ git clone -b ${version} https://github.com/PINTO0309/Open3D-build.git\n$ cd Open3D-build\n$ docker build -t pinto0309/open3d-build:l4t-r32.5.0 aarch64/jetson_nano\n```\n\n### 3-2-1. x86_64 Run\n```\n$ docker run --gpus all -it --rm \\\n    -v `pwd`:/workspace \\\n    -e LOCAL_UID=$(id -u $USER) \\\n    -e LOCAL_GID=$(id -g $USER) \\\n    pinto0309/open3d-build:latest bash\n```\n### 3-2-2. aarch64 Run\n#### 3-2-2-1. aarch64 emulation on x86_64 environment\n```\n$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes\n$ docker run --gpus all -it --rm \\\n    -v `pwd`:/workspace \\\n    -e LOCAL_UID=$(id -u $USER) \\\n    -e LOCAL_GID=$(id -g $USER) \\\n    pinto0309/open3d-build:l4t-r32.5.0 bash\n```\n#### 3-2-2-2. Running on the aarch64 environment\n```\n$ docker run --gpus all -it --rm \\\n    -v `pwd`:/workspace \\\n    -e LOCAL_UID=$(id -u $USER) \\\n    -e LOCAL_GID=$(id -g $USER) \\\n    pinto0309/open3d-build:l4t-r32.5.0 bash\n```\n\n## 4. Usage - Docker Pull / Run\nYou can download and run a pre-built container image from Docker Hub.\n```bash\n$ docker run --gpus all -it --rm \\\n    -v `pwd`:/workspace \\\n    -e LOCAL_UID=$(id -u $USER) \\\n    -e LOCAL_GID=$(id -g $USER) \\\n    pinto0309/open3d-build:latest bash\n```\nor\n```bash\n$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes\n$ docker run --gpus all -it --rm \\\n    -v `pwd`:/workspace \\\n    -e LOCAL_UID=$(id -u $USER) \\\n    -e LOCAL_GID=$(id -g $USER) \\\n    pinto0309/open3d-build:l4t-r32.5.0 bash\n```\n## 5. Usage - pip installer\nYou can download and install the released Wheel installer. TensorFlow and PyTorch have already been optimized and built for Open3D.\n```bash\n$ wget https://github.com/PINTO0309/Open3D-build/releases/download/v0.12.0/open3d-0.12.0+313315d9-cp36-cp36m-linux_x86_64.whl \\\n  \u0026\u0026 wget https://github.com/PINTO0309/Open3D-build/releases/download/v0.12.0/tensorflow-2.4.1-cp36-cp36m-linux_x86_64.whl \\\n  \u0026\u0026 wget https://github.com/PINTO0309/Open3D-build/releases/download/v0.12.0/torch-1.7.0a0-cp36-cp36m-linux_x86_64.whl \\\n  \u0026\u0026 wget https://github.com/PINTO0309/Open3D-build/releases/download/v0.12.0/torchaudio-0.7.0a0+a853dff-cp36-cp36m-linux_x86_64.whl \\\n  \u0026\u0026 wget https://github.com/PINTO0309/Open3D-build/releases/download/v0.12.0/torchvision-0.8.0a0+2f40a48-cp36-cp36m-linux_x86_64.whl \\\n  \u0026\u0026 sudo pip3 install --upgrade *.whl\n```\n\n## 6. Appendix\n### 6-1. TensorFlow (CUDA enabled) build command\n```bash\n$ git clone -b v2.4.1 https://github.com/tensorflow/tensorflow.git\n$ cd tensorflow\n$ sudo ./configure\n$ sudo bazel build \\\n    --config=cuda \\\n    --config=noaws \\\n    --config=nohdfs \\\n    --config=nonccl \\\n    --config=v2 \\\n    //tensorflow/tools/pip_package:build_pip_package\n```\n### 6-2. PyTorch (CUDA enabled) build command\n**https://github.com/PINTO0309/PyTorch-build**\n```bash\n$ git clone -b v1.7.1 --recursive https://github.com/pytorch/pytorch\n$ cd pytorch \\\n    \u0026\u0026 sed -i -e \"/^#ifndef THRUST_IGNORE_CUB_VERSION_CHECK$/i #define THRUST_IGNORE_CUB_VERSION_CHECK\" \\\n                 /usr/local/cuda/targets/x86_64-linux/include/thrust/system/cuda/config.h \\\n    \u0026\u0026 cat /usr/local/cuda/targets/x86_64-linux/include/thrust/system/cuda/config.h \\\n    \u0026\u0026 sed -i -e \"/^if(DEFINED GLIBCXX_USE_CXX11_ABI)/i set(GLIBCXX_USE_CXX11_ABI 1)\" \\\n                 CMakeLists.txt \\\n    \u0026\u0026 pip3 install -r requirements.txt \\\n    \u0026\u0026 python3 setup.py build \\\n    \u0026\u0026 python3 setup.py bdist_wheel \\\n    \u0026\u0026 cd ..\n\n$ git clone -b v0.8.2 https://github.com/pytorch/vision.git\n$ cd vision \\\n    \u0026\u0026 pip3 install /pytorch/dist/*.whl \\\n    \u0026\u0026 python3 setup.py build \\\n    \u0026\u0026 python3 setup.py bdist_wheel \\\n    \u0026\u0026 cd ..\n\n$ git clone -b v0.7.2 https://github.com/pytorch/audio.git\n$ cd audio \\\n    \u0026\u0026 apt-get install -y sox libsox-dev \\\n    \u0026\u0026 python3 setup.py build \\\n    \u0026\u0026 python3 setup.py bdist_wheel \\\n    \u0026\u0026 cd ..\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinto0309%2Fopen3d-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinto0309%2Fopen3d-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinto0309%2Fopen3d-build/lists"}