vchoutas / torch-mesh-isect

Other
281 stars 72 forks source link

Can't install successfully on windows #5

Closed conorcodes closed 4 years ago

conorcodes commented 4 years ago

I'm having trouble getting this to work on Windows. I get these errors when running setup.py

`src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: identifier "start" is undefined

src/bvh_cuda_op.cu(945): error: identifier "stop" is undefined

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected a ";"

src/bvh_cuda_op.cu(945): warning: variable "triangles_ptr" was declared but never referenced

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: identifier "start" is undefined

src/bvh_cuda_op.cu(945): error: identifier "stop" is undefined

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: expected an expression

src/bvh_cuda_op.cu(945): error: "#" not expected here

src/bvh_cuda_op.cu(945): error: "#" not expected here

Error limit reached. 100 errors detected in the compilation of "C:/Users/fitzgcon/AppData/Local/Temp/1/tmpxft_00001d58_00000000-10_bvh_cuda_op.cpp1.ii". Compilation terminated. error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin\nvcc.exe' failed with exit status 1`

vchoutas commented 4 years ago

@conorcodes Unfortunately I don't have access to a Windows machine and can't help you with the compilation right now.

conorcodes commented 4 years ago

I did manage to get it installed. Removing all debugging if statements in AT_DISPATCH_FLOATING_TYPES( solved it for me.

zhaishengfu commented 4 years ago

@conorcodes Do you means DEBUG_PRINT? I have the same error and delete all DEBUG_PRINT but still have the problem

zhaishengfu commented 4 years ago

I met new problem: error LNK2001: undefined external symbol "public: long * __cdecl at::Tensor::data(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ)

conorcodes commented 4 years ago

@zhaishengfu Here's my modified file that works on windows:

https://gist.github.com/conorcodes/612f3358f0c2569f26e07c5fd86345fe

electronicliujiang commented 4 years ago

how to run this code in win10?

zhaishengfu commented 4 years ago

thanks @conorcodes

electronicliujiang commented 4 years ago

hello do you know how to run this code in win10? @conorcodes

conorcodes commented 4 years ago

hi @electronicliujiang check the gist I posted above. That works for me on windows10

BboyHanat commented 3 years ago

I met new problem: error LNK2001: undefined external symbol "public: long * __cdecl at::Tensor::data(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ)

Hey, I encountered the same error, may I know you solution to the problem?