isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.55k stars 2.32k forks source link

Cannot compile on Ubuntu 20.04 with OPEN3D_ml and tensorflow #6661

Open luckyrs2006 opened 9 months ago

luckyrs2006 commented 9 months ago

Checklist

Steps to reproduce the issue

I first cloned Open3D and open3d_ml and moved to build dir

git clone https://github.com/isl-org/Open3D
cd Open3D
mkdir build
cd 3rdparty
git clone https://github.com/isl-org/Open3D-ML
cd Open3D_ml
cd ../../build
util/install_deps_ubuntu.sh
#### setup cuda on, tensor flow on, open3d_ml root = downloaded dir etc.
cmake -DBUILD_SHARED_LIBS=ON -DBUILD_CUDA_MODULE=ON -DBUILD_COMMON_CUDA_ARCHS=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DBUILD_TENSORFLOW_OPS=ON -DBUILD_PYTORCH_OPS=OFF -DBUNDLE_OPEN3D_ML=ON -DOPEN3D_ML_ROOT=/home/aeehpc/Open3D/3rdparty/Open3D-ML -DBUILD_LIBREALSENSE=ON -DUSE_SYSTEM_LIBREALSENSE=ON -DBUILD_UNIT_TESTS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/open3D_install ..

## then make on i9 processor with 16 thread
make -j 16
## installed clang-10, llvm-10, pip tensorflow , libtensorflow for cpp in /usr/lib and /usr/include dir, also libabsl in /usr/lib and /usr/include

### Error message

```shell
[ 93%] Built target pybind
[ 93%] Building CXX object cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/continuous_conv/ContinuousConvBackpropFilterOps.cpp.o
[ 93%] Building CXX object cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/continuous_conv/ContinuousConvOps.cpp.o
[ 94%] Building CXX object cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/continuous_conv/ContinuousConvTransposeBackpropFilterOps.cpp.o
[ 94%] Building CXX object cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/continuous_conv/ContinuousConvTransposeOps.cpp.o
/home/aeehpc/Open3D/cpp/open3d/ml/tensorflow/continuous_conv/ContinuousConvBackpropFilterOps.cpp: In lambda function:
/home/aeehpc/Open3D/cpp/open3d/ml/tensorflow/continuous_conv/ContinuousConvBackpropFilterOps.cpp:123:38: error: ‘InvalidArgumentError’ is not a member of ‘absl’
  123 |                         return absl::InvalidArgumentError(
      |                                      ^~~~~~~~~~~~~~~~~~~~
/home/aeehpc/Open3D/cpp/open3d/ml/tensorflow/continuous_conv/ContinuousConvOps.cpp: In lambda function:
/home/aeehpc/Open3D/cpp/open3d/ml/tensorflow/continuous_conv/ContinuousConvOps.cpp:119:38: error: ‘InvalidArgumentError’ is not a member of ‘absl’
  119 |                         return absl::InvalidArgumentError(
      |                                      ^~~~~~~~~~~~~~~~~~~~
/home/aeehpc/Open3D/cpp/open3d/ml/tensorflow/continuous_conv/ContinuousConvTransposeOps.cpp: In lambda function:
/home/aeehpc/Open3D/cpp/open3d/ml/tensorflow/continuous_conv/ContinuousConvTransposeOps.cpp:148:38: error: ‘InvalidArgumentError’ is not a member of ‘absl’
  148 |                         return absl::InvalidArgumentError(
      |                                      ^~~~~~~~~~~~~~~~~~~~
/home/aeehpc/Open3D/cpp/open3d/ml/tensorflow/continuous_conv/ContinuousConvTransposeBackpropFilterOps.cpp: In lambda function:
/home/aeehpc/Open3D/cpp/open3d/ml/tensorflow/continuous_conv/ContinuousConvTransposeBackpropFilterOps.cpp:142:38: error: ‘InvalidArgumentError’ is not a member of ‘absl’
  142 |                         return absl::InvalidArgumentError(
      |                                      ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/build.make:90: cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/continuous_conv/ContinuousConvBackpropFilterOps.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/build.make:118: cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/continuous_conv/ContinuousConvOps.cpp.o] Error 1
make[2]: *** [cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/build.make:174: cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/continuous_conv/ContinuousConvTransposeOps.cpp.o] Error 1
make[2]: *** [cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/build.make:146: cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/continuous_conv/ContinuousConvTransposeBackpropFilterOps.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2966: cpp/open3d/ml/tensorflow/CMakeFiles/open3d_tf_ops.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Open3D, Python and System information

- Operating system: Ubuntu 20.04
- Python version: Python 3.8 
- Open3D version: output from python: `print(open3d.__version__)`:0.13.0
- System architecture: intel i9 64bit 32gb GPU: Nvidia p5000 Quadro
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): clang 10.0, cuda 11.2 nvcc
- libtensorflow: 2.9.3
- pip tensorflow python 2.9
building with open3d_ml

Additional information

it is compiling and building perfectly without open3d_ml and without tensorflow. but while compiling with open3d_ml=on and tensorflow=on the above errors occures. kindly help...

ssheorey commented 8 months ago

Please try with the latest tensorflow. Open3D v0.18 supports TensorFlow v2.14.