Open3D
Open3D copied to clipboard
erro c2220 on windows 10 when build open3d from source (I have added /wd4819 in Open3DShowAndAbortOnWarning.cmake)
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
master
branch).
Steps to reproduce the issue
I first cloned Open3D by:
git clone https://github.com/isl-org/Open3D.git
cd Open3D
Then, I build Open3D (on Windows10 with CUDA 11.) with:
mkdir build
cd build
mkdir build
cd build
cmake .. -G "Visual Studio 15 2017" -A x64 -DBUILD_CUDA_MODULE=ON -DBUILD_COMMON_CUDA_ARCHS=ON -DBUILD_LIBREALSENSE=ON -DBUILD_AZURE_KINECT=ON -DCMAKE_INSTALL_PREFIX="<open3d_install_directory>"
Error message
D:\Program Files\Open3D\cpp\open3d/core/Tensor.h(1297): error C2220: 警告被视为错误 - 没有生成“object”文件 (编译源文件 D:\Program Files\Open3D\cpp\open3d\visualization\gui\UIImage.cpp) [D:\Program Files\Open3D\build\cpp\open3d\visualization\gui\GUI.vcxproj]
D:\Program Files\Open3D\cpp\open3d/core/Tensor.h(1297): warning C4522: “open3d::core::Tensor”: 指定了多个赋值运算符 (编译源文件 D:\Program Files\Open3D\cpp\open3d\visualization\gui\UIImage.cpp) [D:\Program Files\Open3D\build\cpp\open3d\visualization\gui\GUI.vcxproj]
D:\Program Files\Open3D\cpp\open3d/core/Tensor.h(1297): error C2220: 警告被视为错误 - 没有生成“object”文件 (编译源文件 D:\Program Files\Open3D\cpp\open3d\visualization\gui\PickPointsInteractor.cpp) [D:\Program Files\Open3D\build\cpp\open3d\visualization\gui\GUI.vcxproj]
and many following same erros:
D:\Program Files\Open3D\cpp\open3d/core/Tensor.h(1297): error C2220: 警告被视为错误 - 没有生成“object”文件 [D:\Program Files\Open3D\build\cpp\open3d\core\core.vcxproj]
Open3D, Python and System information
- Operating system: Windows 10 64-bit
- Python version: Python 3.8`
- Open3D version: 15.9.21+g9802d43bc3
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): vs2017 NVIDIA GPU Computing Toolkit/CUDA/v11.0/include (found version "11.0.221")
Additional information
No response
I have add /wd4819 in Open3DShowAndAbortOnWarning.cmake
like this
no reply at all