Skip to content

Build libtorch from source on Windows? #23378

@mesut92

Description

@mesut92

❓ Questions and Help

I builded libtorch from source?

set MSSdk=1
set FORCE_PY27_BUILD=1
set CMAKE_GENERATOR=Visual Studio 15 2017
set CMAKE_GENERATOR_TOOLSET_VERSION=14.11
set DISTUTILS_USE_SDK=1
for /f "usebackq tokens=*" %i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -version [15^,16^) -products * -latest -property installationPath`) do call "%i\VC\Auxiliary\Build\vcvarsall.bat" x64 -vcvars_ver=%CMAKE_GENERATOR_TOOLSET_VERSION%
python tools/build_libtorch.py

However, i can not find caffe2.lib in lib/ directory. Shouldn't caffe2.lib be produced? In prebuilded version, there is caffe2.lib.

Envs:
Windows10
Visual Studio 2017

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions