Deep3DFaceRecon_pytorch icon indicating copy to clipboard operation
Deep3DFaceRecon_pytorch copied to clipboard

RuntimeError: glLinkProgram() failed:

Open ParthaEth opened this issue 1 year ago • 2 comments

self.cpp_wrapper = _get_plugin().RasterizeGLStateWrapper(output_db, mode == 'automatic', cuda_device_idx)
RuntimeError: glLinkProgram() failed:
Fragment info

0(2) : error C7528: OpenGL reserves names starting with 'gl_': gl_PrimitiveID
(0) : error C2003: incompatible options for link

ParthaEth avatar Feb 27 '23 09:02 ParthaEth

You may try to edit this file "nvdiffrast/common/rasterize.cpp" with remove all "in int gl_PrimitiveID" , and it will work.....

lingleong981130 avatar Mar 12 '23 09:03 lingleong981130

Also, if you come from https://github.com/NVlabs/eg3d make sure that you clone the current version of nvdiffrast to the repository.

The EG3D repo currently links to an old branch of Deep3DFaceRecon, which recommends using git clone --recursive. This, however, clones an old version of nvdiffrast to Deep3DFaceRecon/nvdiffrast, which produces the same error you mentioned.

To fix this I uninstalled nvdiffrast, removed the folder and cloned the current version via git clone https://github.com/NVlabs/nvdiffrast .

See here for more info.

MaximilianWinter avatar Apr 06 '23 11:04 MaximilianWinter