open3Dv0.10编译安装(本机ubuntu16.04+gcc6.5.0)(在jupyter显示-使用网页)

后来发现ubuntu16.04已经有编译好的:
python -mpip install open3d==0.10.0.0  -i https://pypi.tuna.tsinghua.edu.cn/simple
不要用:
python -mpip install open3d-python==0.10.0.0  -i https://pypi.tuna.tsinghua.edu.cn/simple

之所以需要自己编译,是因为最新版本不适合我的机器环境:
Pre-built pip and conda packages support Ubuntu 18.04+, macOS 10.14+ and Windows 10 (64-bit) with Python 3.5, 3.6, 3.7 and 3.8. If you have other Python versions or operating systems, please compile Open3D from source

参考:(没梯子看这个有点慢)

https://github.com/intel-isl/Open3D/releases/tag/v0.10.0

http://www.open3d.org/blog/

https://www.freesion.com/article/7607415441/

http://www.open3d.org/docs/release/compilation.html

需要的环境:

CMake 3.8.0 or higher is required

直接下载包进行cmake会出现:

CMake Error at 3rdparty/CMakeLists.txt:39 (message):
  3rdparty submodules are missing

  if you are using git, to update submodules run:

    git submodule update --init --recursive

正确应该是git下载:

git clone --recursive https://github.com/intel-isl/Open3D

他有一些依赖项:

util/scripts/install-deps-ubuntu.sh
#!/usr/bin/env bash
set -ev

sudo apt-get update

if [ "$1" == "assume-yes" ]; then
    sudo apt-get --yes install xorg-dev libglu1-mesa-dev libgl1-mesa-glx || true
    sudo apt-get --yes install libglew-dev || true
    sudo apt-get --yes install libglfw3-dev || true
    sudo apt-get --yes install libeigen3-dev || true
    sudo apt-get --yes install libpng-dev || true
    sudo apt-get --yes install libpng16-dev || true
    sudo apt-get --yes install libsdl2-dev || true
    sudo apt-get --yes install python-dev python-tk || true
    sudo apt-get --yes install python3-dev python3-tk || true
    sudo apt-get --yes install libtbb-dev || true
    sudo apt-get --yes install libglu1-mesa-dev || true
    sudo apt-get --yes install libc++-7-dev || true
    sudo apt-get --yes install libc++abi-7-dev || true
    sudo apt-get --yes install ninja-build || true
    sudo apt-get --yes install libxi-dev || true
else
    sudo apt-get install xorg-dev libglu1-mesa-dev libgl1-mesa-glx || true
    sudo apt-get install libglew-dev || true
    sudo apt-get install libglfw3-dev || true
    sudo apt-get install libeigen3-dev || true
    sudo apt-get install libpng-dev || true
    sudo apt-get install libpng16-dev || true
    sudo apt-get install libsdl2-dev || true
    sudo apt-get install python-dev python-tk || true
    sudo apt-get install python3-dev python3-tk || true
    sudo apt-get install libtbb-dev || true
    sudo apt-get install libglu1-mesa-dev || true
    sudo apt-get install libc++-7-dev || true
    sudo apt-get install libc++abi-7-dev || true
    sudo apt-get install ninja-build || true
    sudo apt-get install libxi-dev || true
fi

我这边git clone太慢了。。。。

我通过国内的码云备份:

参考:

https://zhuanlan.zhihu.com/p/112697807

https://blog.csdn.net/chan___/article/details/103387868

备份后,通过:

git clone --recursive https://gitee.com/yangninghua/Open3D

进行下载

然后cd Open3D/3rdparty

输入命令:

git submodule update --init --recursive

~/.conda/envs/py3_6--pytorch1_1_0/bin/jupyter notebook

猜你喜欢

转载自blog.csdn.net/baidu_40840693/article/details/107660061