isl-org / isl-org/Open3D

Build Failed on Win10 with VS2019 Community

Open
#5,297 3 comments 0 reactions 0 assignees View on GitHub
build/install
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### Steps to reproduce the issue

#### I first cloned Open3D by:
```
git clone https://github.com/isl-org/Open3D.git
```

#### Then, I build Open3D (on Win10, with vs2019 community) with gui of Cmake 3.22.0-rc1:
```
configure,
select BUILD_SHARED_LIBS,
cancel BUILD_WEBRTC AND BUILD_PYTHON_MODULE,
set CMAKE_INSTALL_PREFIX to D:\Code_a6\Open3D_Install
generate, and open project in vs2019
```

#### Then, I build ALL_BUILD and get errors in the end

### Error message

```shell
55>Building Custom Rule D:/Code_a6/Open3D/cpp/open3d/CMakeLists.txt
55>Open3DConfig.cpp
55>Auto build dll exports
55>ssl.lib(ssl_lib.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in Open3DConfig.obj
55>ssl.lib(ssl_versions.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in Open3DConfig.obj
......
```

### Open3D, Python and System information

```markdown
- Operating system: Windows 10 64-bit
- Python version: Python 3.9.13
- Open3D version: maybe 0.15.1
- System architecture: x64
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): vs2019
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.