facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

Link problem when installing pytorch3d on windows system #1660

Closed anleleaaa closed 1 year ago

anleleaaa commented 1 year ago

Is there any kind-hearted person who can help me solve the windows installation problem? After a few minutes of compilation, this problem finally occurred: Creating library E:\AI_hub\pytorch3d-0.7.2\build\temp.win-amd64-cpython-39\Release\AI_hub\pytorch3d-0.7.2\pytorch3d\csrc\ball_query_C.cp39-win_amd64.lib and Object E:\AI_hub\pytorch3d-0.7.2\build\temp.win-amd64-cpython-39\Release\AI_hub\pytorch3d-0.7.2\pytorch3d\csrc\ball_query_C.cp39-win_amd64.exp ball_query_cpu.obj : error LNK2001: unresolved external symbol imp___tlsoffset?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA marching_cubes.obj : error LNK2001: unresolved external symbol imp_tlsoffset?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA ball_query_cpu.obj : error LNK2001: unresolved external symbol _imptlsindex?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA marching_cubes.obj : error LNK2001: unresolved external symbol __imp___tlsindex?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA build\lib.win-amd64-cpython-39\pytorch3d_C.cp39-win_amd64.pyd : fatal error LNK1120: 2 unresolved external commands error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\link.exe' failed with exit code 1120

bottler commented 1 year ago

This looks like https://stackoverflow.com/questions/74366357/updating-to-visual-studio-17-4-0-yields-linker-errors-related-to-tls