weigao95 / surfelwarp

SurfelWarp: Efficient Non-Volumetric Dynamic Reconstruction
https://sites.google.com/view/surfelwarp/home
BSD 3-Clause "New" or "Revised" License
279 stars 71 forks source link

token __CUDACC_VER__ is no longer supported #18

Closed JenningsL closed 5 years ago

JenningsL commented 5 years ago

Hi, thanks for your code. I installed Eigen in /external folder, and installed cuda9.0. Then I tried to compile the code following the readme. However, I got the following error:

`[ 1%] Building NVCC (Device) object common/CMakeFiles/common_lib.dir/common_lib_generated_sanity_check.cu.o In file included from /usr/local/cuda/include/common_functions.h:50:0, from /usr/local/cuda/include/cuda_runtime.h:115, from :0: /usr/local/cuda/include/crt/common_functions.h:64:24: error: token ""__CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, and CUDACC_VER_BUILD__ instead."" is not valid in preprocessor expressions

define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, and CUDACC_VER_BUILD instead."

                    ^

/usr/include/eigen3/Eigen/src/Core/util/Macros.h:402:85: note: in expansion of macro ‘CUDACC_VER’ && ( !defined(NVCC) || !EIGEN_ARCH_ARM_OR_ARM64 || (defined CUDACC_VER && __CUDACC_VER__ >= 80000) ) `

It seems to be the incompatity between Eigen and CUDA, however, I don't know exactly how to fix it. A little help would be appreciated. Thanks.

JenningsL commented 5 years ago

Closed. It turn out that I am still using the system installed eigen.

xiaotaw commented 4 years ago

Hi, @JenningsL. I come across the same problem, could you share the Eigen version which is compatible with CUDA=9.0?

My system installed eigen = 3.3.4

Cartucho commented 3 years ago

@xiaotaw you should set the Eigen path to the one that is provided in this GitHub repo, you can find it in surfelwarp/external/ eigen3.4

xiaotaw commented 3 years ago

@xiaotaw you should set the Eigen path to the one that is provided in this GitHub repo, you can find it in surfelwarp/external/ eigen3.4

Yeah, thank you. I have solved this problem by the way you said.