ethnhe / PVN3D

Code for "PVN3D: A Deep Point-wise 3D Keypoints Hough Voting Network for 6DoF Pose Estimation", CVPR 2020
MIT License
489 stars 105 forks source link

Error setup.py build #14

Closed Ixion46 closed 4 years ago

Ixion46 commented 4 years ago

Hey, when I am running python3 setup.py build_ext , I get a lot of the following errors : /home/user/.local/lib/python3.6/site-packages/torch/lib/include/ATen/core/TensorMethods.h:1117:48: required from here /usr/include/c++/6/tuple:483:67: error: mismatched argument pack lengths while expanding ‘std::is_constructible<_Elements, _UElements&&>’ return _and<is_constructible<_Elements, _UElements&&>...>::value; ^~~~~ /usr/include/c++/6/tuple:484:1: error: body of constexpr function ‘static constexpr bool std::_TC<, _Elements>::_MoveConstructibleTuple() [with _UElements = {std::tuple<at::Tensor, at::Tensor, at::Tensor>}; bool = true; _Elements = {at::Tensor, at::Tensor, at::Tensor}]’ not a return-statement }

I am using Conda , Cuda Version 10.1 , Ubuntu 18.04. und allready tried different gcc versions ( 4.8 , 5 , 6 , 7) but it never worked. How can I make it work?

Ixion46 commented 4 years ago

The Fix is to add the -ccbin to the extra compiler arguments for nvcc in the setup file