google / usd_from_gltf

Apache License 2.0
547 stars 85 forks source link

Compilation Error: no instance of overloaded function #78

Open oschakravarthi opened 3 years ago

oschakravarthi commented 3 years ago

Hi, I got the below many compilation error of below.

E0304   no instance of overloaded function "pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource" matches the argument list

Error   C2664   'bool pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectToSource(const pxrInternal_v0_21__pxrReserved__::UsdShadeConnectionSourceInfo &,const pxrInternal_v0_21__pxrReserved__::UsdShadeOutput::ConnectionModification) const': cannot convert argument 1 from 'pxrInternal_v0_21__pxrReserved__::UsdShadeShader' to 'const pxrInternal_v0_21__pxrReserved__::UsdShadeConnectionSourceInfo &'

Looks like there is no ConnectToSource which takes UsdShadeShader as its 1st argument.

How to fix it?

Rijkstarhn commented 3 years ago

Exactly same here. Tried Ubuntu 18.04 and 20.04 combined with Python2 and Python3, every way was blocked by this error. Been keep trying for a week, any help appreciated.

v-prgmr commented 2 years ago

@oschakravarthi did you get past this?

bzhb commented 2 years ago

with recent version of USD it is now pxrInternal_v0_22__pxrReserved__::UsdShadeOutput::ConnectToSource

This bug is the same as issue #80 and it is fixed by pull request #82