Skip to content
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

Cannot compile on Windows x64, VS 2022 for C++ #6257

Closed
3 tasks done
malatindez opened this issue Jul 7, 2023 · 1 comment
Closed
3 tasks done

Cannot compile on Windows x64, VS 2022 for C++ #6257

malatindez opened this issue Jul 7, 2023 · 1 comment
Labels
build/install Build or installation issue

Comments

@malatindez
Copy link

Checklist

Steps to reproduce the issue

I first cloned Open3D by:

git clone --recursive https://github.com/intel-isl/Open3D
cd Open3D
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX="../../Open3D_install" ..

Error message

C:\Users\malatindez\Open3D\build\fmt\include\fmt\core.h(1711,42): error C4996: 'fmt::v9::detail::arg_mapper<Context>::map': was declared deprecated [C:\Users
\malatindez\Open3D\build\cpp\open3d\visualization\webrtc_server\webrtc_server.vcxproj]

Open3D, Python and System information

- Tried master branch, v0.17.0
- Windows 10 64-bit
- Python version: Python 3.10.1
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): MSVC 1936

Additional information

No response

@malatindez malatindez added the build/install Build or installation issue label Jul 7, 2023
@carlos-lee123
Copy link

carlos-lee123 commented Jul 25, 2023

I solved this problem by adding compile option to Open3D/CMakeLists.txt:

if(WIN32)
    add_compile_options("/wd4996")
endif()

you can find more details and compile problems here https://blog.csdn.net/qq_41102371/article/details/131891820

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build/install Build or installation issue
Projects
None yet
Development

No branches or pull requests

2 participants