NVIDIA / gvdb-voxels

Sparse volume compute and rendering on NVIDIA GPUs
Other
672 stars 144 forks source link

build errors in Cuda11 #101

Open jsemeda opened 4 years ago

jsemeda commented 4 years ago

Target CudaBuild: 1> Target CudaBuildCore: 1> Compiling CUDA source file ....\source\gvdb_library\src\gvdb_cutils.cu... 1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: Unable to create Xaml task. Compilation failed.
1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: Source file 'C:\WINDOWS\TEMP\oxqtpk5c.0.cs' could not be found 1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: 1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB4175: The task factory "XamlTaskFactory" could not be loaded from the assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Object reference not set to an instance of an object. 1> Done building target "CudaBuildCore" in project "gvdb.vcxproj" -- FAILED. 1> 1> Done building project "gvdb.vcxproj" -- FAILED. 1> 1>Build FAILED. 1> 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: Unable to create Xaml task. Compilation failed.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: Source file 'C:\WINDOWS\TEMP\oxqtpk5c.0.cs' could not be found 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB3686: 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(772,9): error MSB4175: The task factory "XamlTaskFactory" could not be loaded from the assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Object reference not set to an instance of an object. 1> 0 Warning(s) 1> 2 Error(s)

NBickford-NV commented 4 years ago

Hi jsemeda,

This is unusual - I'm running Visual Studio 2019 on Windows using a variety of different CUDA versions, and haven't seen this error before - it seems to be some sort of internal error inside of VS 2019's MSBuild system that has been generated by CMake.

Searching for "Unable to create Xaml task" online pulls up different issues dating as far back as 2009. In one case, the solution was updating Visual Studio; in another case, this was due to attempting to build a crash-reporting system remotely (from what I can tell).

Without more information, I'm unfortunately unable to guess what could be failing in MSBuild here. Are you able to compile any of the samples installed with CUDA, for instance? What sub-version of CUDA and Visual Studio 2019 are you using? How is this being built - e.g. directly from GVDB's CMake files (if so, what version of CMake are you using?), or something unusual, such as using GVDB inside a build system, or building remotely? Is there anything else unusual that could be going on?

Thanks!

NBickford-NV commented 4 years ago

Also, another good question - are you using the latest version of GVDB from GitHub? (We've had issues in the past where people have problems with an older version of GVDB.)