NVlabs / nvdiffmodeling

Differentiable rasterization applied to 3D model simplification tasks
Other
455 stars 30 forks source link

msvcrt.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __enclave_config #1

Closed myshiop closed 3 years ago

myshiop commented 3 years ago

hi, Thanks for your project. When I try to run sphere to cow demo, I will report this error: msvcrt.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __enclave_config renderutils_plugin.pyd : fatal error LNK1120: Unresolved external command ninja: build stopped: subcommand failed.

Is it because of my Nanjia version? my current version is: nanjia:1.10.2 pytorch:1.8.1 torchvision:0.9.1 cudnn:7.6.5 cuda:10.2

jmunkberg commented 3 years ago

Can you provide more details? I just tested with the latest version of Python and PyTorch, and Visual Studio compiler version 14.28.29910 (I have Visual Studio 2019, v 16.9.4 installed), and could not reproduce the issue. I think it is an issue with the Visual Studio version, or perhaps a missing Windows SDK.

An env debug for nvdiffmodeling installed using

conda create -n debug python=3.8
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge
conda install imageio
pip install PyOpenGL glfw

then nvdiffrast installed in the debug env

ninja 1.10.2 pytorch 1.8.1 py3.8_cuda11.1_cudnn8_0

myshiop commented 3 years ago

@jmunkberg thank you,i had tried to follow your steps, i also reported this error. I'll try installing vs2019 again