-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error C2220: 以下警告被视为错误 (编译源文件 #4296
Comments
For a workaround, try disabling the C4819 warning. Add
to Open3D/cmake/Open3DShowAndAbortOnWarning.cmake Lines 6 to 22 in 5e4d501
|
When I running command
position
I added information output in CMakeLists.txt, it is incredible that it entered the |
I found a possibility and tried it, WIN32 was indeed used as a string.
|
Oh no, I check |
I repeated all the steps and finally succeeded, thank you very much for your help. @yxlao |
To sum up, if you compile Open3D from source code, the following error occurs:
try disabling the C4819 warning Add
to Open3D/cmake/Open3DShowAndAbortOnWarning.cmake Lines 6 to 22 in 5e4d501
|
Should we add this
Should we add this by default? I used vs2022 for building open3d under windows and also encounter this problem. @yxlao |
Yes, thanks! @yuecideng |
IMPORTANT: Please use the following template to report the bug.
Before submitting:
Describe the bug
When I used the tutorial here to compile Open3D on Windows 10, a lot of similar errors appeared.
It may be the default settings of VS2019 or incorrect settings in some places, which caused the compilation warning level to be too high. Microsoft's explanation is here.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Hope to get the warning level set from Open3D.
Screenshots
![help](https://user-images.githubusercontent.com/47767371/141782572-cd2b3250-b463-45eb-b9d4-09bd4960d41d.PNG)
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: