Closed5

Open3D build from source on Fedora 33

nb.onb.o

Build Open3d form source

$ mkvirtualenv -p python3 open3d
$ workon open3d

# tensorflow pip install
$ pip install pip numpy wheel
$ pip install  keras_preprocessing --no-deps
$ pip install ./tensorflow-2.4.1-cp39-cp39-linux_x86_64.whl
$ pip install --upgrade numpy

# Install dependency
$ sudo dnf install SDL2-devel
$ sudo dnf install ninja-build
$ sudo dnf install libXi-devel
$ sudo dnf install tbb-devel
$ sudo dnf install libcxxabi-devel
$ sudo dnf install libcxx-devel
$ pip install yapf

# Clone repository
# Note: The build on Fedora fails with the original repository. Therefore, clone the modified fork repository.
$ git clone -b build_fedora https://github.com/NobuoTsukamoto/Open3D.git
$ cd Open3D
$ git checkout build_fedora
$ git submodule update --init --recursive
$ mkdir build && cd build
$ cmake \
    -DPYTHON_EXECUTABLE=$(which python3) \
    -DBUILD_SHARED_LIBS=ON \
    -DBUILD_BENCHMARKS=ON \
    -DBUILD_CUDA_MODULE=ON \
    -DBUILD_CACHED_CUDA_MANAGER=ON \
    -DBUILD_GUI=ON \
    -DBUILD_JUPYTER_EXTENSION=ON \
    -DGLIBCXX_USE_CXX11_ABI=ON \
    -DBUILD_RPC_INTERFACE=ON \
    -DBUILD_TENSORFLOW_OPS=ON \
    -DBUNDLE_OPEN3D_ML=ON \
    -DOPEN3D_ML_ROOT=../../Open3D-ML \
    -DCMAKE_BUILD_TYPE=Release \
    ..
$  make -j$(nproc)
$ make pip-package
$ sudo make install
$ pip install lib/python_package/pip_package/open3d-0.12.0+7766886d-cp39-cp39-linux_x86_64.whl
nb.onb.o

Python unit tests:

$ pip install pytest
$ pytest ../python/test
==================================== test session starts ====================================

~~~~~ 

================ 1698 passed, 20 skipped, 118 warnings in 142.49s (0:02:22) =================
nb.onb.o

C++ unit tests:

$ cmake -DBUILD_UNIT_TESTS=ON ..
$  make -j$(nproc)
$ ./bin/tests

~~~~~~~

[==========] 884 tests from 72 test suites ran. (55128 ms total)
[  PASSED  ] 883 tests.
[  SKIPPED ] 1 test, listed below:
[  SKIPPED ] RGBDImage.CreateFromNYUFormat
このスクラップは2022/05/06にクローズされました