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

Installation in Windows 10 #19

Closed
weizmanl opened this issue Jan 7, 2021 · 3 comments
Closed

Installation in Windows 10 #19

weizmanl opened this issue Jan 7, 2021 · 3 comments

Comments

@weizmanl
Copy link

weizmanl commented Jan 7, 2021

Hi,

I have Windows 10 and I have been trying to install torchsparse, but no success.

When I run pip things compile, but linkage fails. It says:
Creating library C:\Users\WeizmanL\AppData\Local\Temp\pip-req-build-6qzmrtnx\build\temp.win-amd64-3.8\Release\torchsparse/src\torchsparse_cuda.cp38-win_amd64.lib and object C:\Users\WeizmanL\AppData\Local\Temp\pip-req-build-6qzmrtnx\build\temp.win-amd64-3.8\Release\torchsparse/src\torchsparse_cuda.cp38-win_amd64.exp
hash_cpu.obj : error LNK2001: unresolved external symbol "public: long * __cdecl at::Tensor::data_ptr(void)const " (??$data_ptr@J@Tensor@at@@QEBAPEAJXZ)
build\lib.win-amd64-3.8\torchsparse_cuda.cp38-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\link.exe' failed with exit status 1120

Any ideas?

Thank you

@dfhe2004
Copy link

replace long with int64_t.

@zhijian-liu
Copy link
Contributor

I'm closing this issue due to inactivity. Please feel free to reopen it if the problem has not been resolved.

@carlosedubarreto
Copy link

Hello @weizmanl I was able to make it work following what @dfhe2004 said and doing some other stuff, I did a more detailed explanation on this issue
#12 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants