Skip to content

Commit

Permalink
Update glibc version (2.31), Ubuntu version (20.04), C++ version (17)…
Browse files Browse the repository at this point in the history
… requirements.
  • Loading branch information
ssheorey committed Aug 16, 2024
1 parent e4338d2 commit 26d3de3
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ For more, please visit the [Open3D documentation](https://www.open3d.org/docs).

## Python quick start

Pre-built pip packages support Ubuntu 18.04+, macOS 10.15+ and Windows 10+
Pre-built pip packages support Ubuntu 20.04+, macOS 10.15+ and Windows 10+
(64-bit) with Python 3.8-3.11.

```bash
Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ To verify that the ARM64 environment is working, run:
# The following warning message is expected: "WARNING: The requested image's
# platform (linux/arm64/v8) does not match the detected host platform
# (linux/amd64) and no specific platform was requested aarch64."
docker run --rm arm64v8/ubuntu:18.04 uname -p
docker run --rm arm64v8/ubuntu:24.04 uname -p
```

## Build and test Docker
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:20.04

# ENV http_proxy ""
# ENV HTTP_PROXY ""
Expand Down
18 changes: 6 additions & 12 deletions docs/compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Build from source
System requirements
-------------------

* C++14 compiler:
* C++17 compiler:

* Ubuntu 18.04+: GCC 5+, Clang 7+
* Ubuntu 20.04+: GCC 5+, Clang 7+
* macOS 10.15+: XCode 8.0+
* Windows 10 (64-bit): Visual Studio 2019+

* CMake: 3.19+
* CMake: 3.24+

* Ubuntu (18.04 / 20.04):
* Ubuntu (20.04+):

* Install with ``apt-get``: see `official APT repository <https://apt.kitware.com/>`_
* Install with ``snap``: ``sudo snap install cmake --classic``
Expand Down Expand Up @@ -238,12 +238,6 @@ The visualization module depends on the Filament rendering engine and, by defaul
Open3D uses a prebuilt version of it. You can also build Filament from source
by setting ``BUILD_FILAMENT_FROM_SOURCE=ON``.

.. note::
Whereas Open3D only requires a C++14 compiler, Filament needs a C++17 compiler
and only supports Clang 7+, the most recent version of Xcode, and Visual Studio 2019,
see `their building instructions <https://github.com/google/filament/blob/main/BUILDING.md>`_.
Make sure to use one of these compiler if you build Open3D with ``BUILD_FILAMENT_FROM_SOURCE=ON``.

ML Module
`````````

Expand Down Expand Up @@ -390,8 +384,8 @@ After installing ``ccache``, simply reconfigure and recompile the Open3D
library. Open3D's CMake script can detect and use it automatically. You don't
need to setup additional paths except for the ``ccache`` program itself.

Ubuntu 18.04, 20.04
```````````````````
Ubuntu 20.04+
`````````````

If you install ``ccache`` via ``sudo apt install ccache``, the 3.x version will
be installed. To cache CUDA compilations, you'll need the 4.0+ version. Here, we
Expand Down
2 changes: 1 addition & 1 deletion docs/contribute/contribution_recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Dos
+-------------------------------------------------------------------------------------------------------------+
| [DO] Follow the :ref:`style_guide` and install the required tools |
+-------------------------------------------------------------------------------------------------------------+
| [DO] Use C++14 features when contributing C++ code |
| [DO] Use C++17 features when contributing C++ code |
+-------------------------------------------------------------------------------------------------------------+
| [DO] Remember to provide Python bindings when adding new C++ core functionalities |
+-------------------------------------------------------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion docs/contribute/styleguide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ We generally follow the `Google C++ Style Guide <https://google.github.io/styleg
* Use ``#pragma once`` for header guard.
* All Open3D classes and functions are nested in namespace ``open3d``.
* Avoid using naked pointers. Use ``std::shared_ptr`` and ``std::unique_ptr`` instead.
* C++11 features are recommended, but C++14 and C++17 are also accepted.
* C++17 features are acceptable. Do not use C++20 or later features.

We also recommend reading the `C++ Core Guidelines <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md>`_.

Expand Down
2 changes: 1 addition & 1 deletion docs/docker.in.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ To run GUI applications from the docker container, add these options to the

- NVIDIA: ``--gpus 'all,"capabilities=compute,utility,graphics"'``

- No GPU (CPU rendering): ``--env OPEN3D_CPU_RENDERING=true`` on Ubuntu 18.04. Later versions automaticaly select CPU rendering if a GPU is not available.
- No GPU (CPU rendering): CPU rendering is automaticaly selected if a GPU is not available.

2. X server: ``-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY``

Expand Down
20 changes: 10 additions & 10 deletions docs/getting_started.in.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interact with it. You can download the latest stable release app from `Github
releases <https://github.com/isl-org/Open3D/releases>`__. The latest development
version (``HEAD`` of ``main`` branch) viewer app is provided here [#]_:

* `Linux (Ubuntu 18.04+ or glibc 2.27+) <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-viewer-@OPEN3D_VERSION_FULL@-Linux.deb>`__ [#]_
* `Linux (Ubuntu 20.04+ or glibc 2.31+) <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-viewer-@OPEN3D_VERSION_FULL@-Linux.deb>`__ [#]_
* `MacOSX v10.15+ (Intel or Apple Silicon) <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-app-macosx-10_15-universal2.zip>`__
* `Windows 10+ (64-bit) <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-app-windows-amd64.zip>`__

Expand Down Expand Up @@ -95,16 +95,16 @@ version (``HEAD`` of ``main`` branch):
:widths: auto

* - Linux
- `Python 3.8 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp38-cp38-manylinux_2_27_x86_64.whl>`__
- `Python 3.9 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp39-cp39-manylinux_2_27_x86_64.whl>`__
- `Python 3.10 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp310-cp310-manylinux_2_27_x86_64.whl>`__
- `Python 3.11 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp311-cp311-manylinux_2_27_x86_64.whl>`__
- `Python 3.8 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp38-cp38-manylinux_2_31_x86_64.whl>`__
- `Python 3.9 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp39-cp39-manylinux_2_31_x86_64.whl>`__
- `Python 3.10 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp310-cp310-manylinux_2_31_x86_64.whl>`__
- `Python 3.11 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp311-cp311-manylinux_2_31_x86_64.whl>`__

* - Linux (CPU)
- `Python 3.8 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d_cpu-@OPEN3D_VERSION_FULL@-cp38-cp38-manylinux_2_27_x86_64.whl>`__
- `Python 3.9 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d_cpu-@OPEN3D_VERSION_FULL@-cp39-cp39-manylinux_2_27_x86_64.whl>`__
- `Python 3.10 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d_cpu-@OPEN3D_VERSION_FULL@-cp310-cp310-manylinux_2_27_x86_64.whl>`__
- `Python 3.11 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d_cpu-@OPEN3D_VERSION_FULL@-cp311-cp311-manylinux_2_27_x86_64.whl>`__
- `Python 3.8 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d_cpu-@OPEN3D_VERSION_FULL@-cp38-cp38-manylinux_2_31_x86_64.whl>`__
- `Python 3.9 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d_cpu-@OPEN3D_VERSION_FULL@-cp39-cp39-manylinux_2_31_x86_64.whl>`__
- `Python 3.10 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d_cpu-@OPEN3D_VERSION_FULL@-cp310-cp310-manylinux_2_31_x86_64.whl>`__
- `Python 3.11 <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d_cpu-@OPEN3D_VERSION_FULL@-cp311-cp311-manylinux_2_31_x86_64.whl>`__

* - MacOS
- `Python 3.8 (x86_64) <https://github.com/isl-org/Open3D/releases/download/main-devel/open3d-@OPEN3D_VERSION_FULL@-cp38-cp38-macosx_11_0_x86_64.whl>`__
Expand Down Expand Up @@ -183,7 +183,7 @@ rendering resources. These are built with all supported features and are
available for the main supported platforms. Also, the latest development version
(``HEAD`` of ``main`` branch) binary package archives are provided here [#]_:

:Linux (Ubuntu 18.04+ or glibc 2.27+ [#]_):
:Linux (Ubuntu 20.04+ or glibc 2.31+ [#]_):
.. hlist::
:columns: 2

Expand Down
4 changes: 2 additions & 2 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ Collect all release artifacts in the [Github draft release page](https://github.
Configure: `cmake -DCMAKE_BUILD_TYPE=Release -DDEVELOPER_BUILD=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DBUILD_TENSORFLOW_OPS=ON -DBUILD_PYTORCH_OPS=ON -DBUNDLE_OPEN3D_ML=ON ..`

- [ ] Ubuntu 18.04 Python (all versions) (follow docs/arm.rst) (desktop)
- [ ] Ubuntu 20.04 Python (all versions) (follow docs/arm.rst) (desktop)

Build command: `cd docker; ./docker_build.sh openblas-arm64-py311; ...`

- [ ] Build Open3D app
- [ ] Ubuntu 18.04, Windows 10, macOS 10.15 x86_64: (CI)
- [ ] Ubuntu 20.04, Windows 10, macOS 10.15 x86_64: (CI)
- [ ] macOS 12 arm64 (desktop)
- [ ] macOS (x86_64, arm64) sign (desktop):

Expand Down
4 changes: 2 additions & 2 deletions examples/cmake/open3d-cmake-external-project/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# On Ubuntu 18.04, get the latest CMake from https://apt.kitware.com/.
cmake_minimum_required(VERSION 3.18)
# On Ubuntu 20.04, get the latest CMake from https://apt.kitware.com/.
cmake_minimum_required(VERSION 3.24)

project(Open3DCMakeExternalProject LANGUAGES C CXX)

Expand Down
4 changes: 2 additions & 2 deletions examples/cmake/open3d-cmake-find-package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# On Ubuntu 18.04, get the latest CMake from https://apt.kitware.com/.
cmake_minimum_required(VERSION 3.18)
# On Ubuntu 20.04, get the latest CMake from https://apt.kitware.com/.
cmake_minimum_required(VERSION 3.24)

project(Open3DCMakeFindPackage LANGUAGES C CXX)

Expand Down
2 changes: 1 addition & 1 deletion examples/python/visualization/non_english.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
hanzi = "c:/windows/fonts/msyh.ttc" # YaHei UI
chess = "c:/windows/fonts/seguisym.ttf" # Segoe UI Symbol
else:
# Assumes Ubuntu 18.04
# Assumes Ubuntu 20.04
serif = "DejaVuSerif"
hanzi = "NotoSansCJK"
chess = "/usr/share/fonts/truetype/freefont/FreeSerif.ttf"
Expand Down
2 changes: 1 addition & 1 deletion python/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Supported platforms

The package has been tested on:

* Ubuntu 18.04 and 20.04
* Ubuntu 20.04 and 22.04
* Windows 10 64-bit
* macOS High Sierra and above

Expand Down

0 comments on commit 26d3de3

Please sign in to comment.