FastProjectiveSkinning icon indicating copy to clipboard operation
FastProjectiveSkinning copied to clipboard

Can't compile on Windows

Open swc-jesse opened this issue 4 years ago • 3 comments

Following the directions but getting this result. CUDA samples compile and run fine:

[ 82%] Building NVCC (Device) object src/CMakeFiles/skinning.dir/skinning_generated_PD_solver_cuda.cu.obj
PD_solver_cuda.cu
cl : Command line warning D9025 : overriding '/W3' with '/w'
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
PD_solver_cuda.cu
cl : Command line warning D9025 : overriding '/W3' with '/w'
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
PD_solver_cuda.cu
cl : Command line warning D9025 : overriding '/W3' with '/w'
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
PD_solver_cuda.cu
host_defines.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead.
C:\source\repos\FastProjectiveSkinning\external\pmp-library\external\eigen\Eigen\src/Core/arch/CUDA/Half.h(213): error: more than one instance of overloaded function "__hadd" matches the argument list:
            function "__hadd(int, int)"
            function "__hadd(__half, __half)"
            argument types are: (const Eigen::half, const Eigen::half)

1 error detected in the compilation of "C:/source/repos/FastProjectiveSkinning/src/PD_solver_cuda.cu".
PD_solver_cuda.cu
CMake Error at skinning_generated_PD_solver_cuda.cu.obj.RELEASE.cmake:282 (message):
  Error generating file
  C:/source/repos/FastProjectiveSkinning/build/src/CMakeFiles/skinning.dir//./skinning_generated_PD_solver_cuda.cu.obj


NMAKE : fatal error U1077: 'echo' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.

swc-jesse avatar Mar 13 '21 00:03 swc-jesse

This has something todo with the eigen version used in pmp... It should be fixed now. Please try to clone a new clean project and tell me, if the problem is solved.

mkomaritzan avatar Mar 15 '21 10:03 mkomaritzan

This has something todo with the eigen version used in pmp... It should be fixed now. Please try to clone a new clean project and tell me, if the problem is solved.

Hi,this problem still exists.

yydtcy avatar Jan 05 '22 07:01 yydtcy

@yydtcy I cannot reproduce the problem. My last commit solved it on my system... Can you post the end of your build log containing the error like in the first post of studiowildcard? Which CUDA version did you use?

mkomaritzan avatar Jan 06 '22 10:01 mkomaritzan