You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got these error when running "make",
[ 18%] Building CXX object lib/AL_USDMaya/CMakeFiles/AL_USDMaya.dir/AL/usdmaya/nodes/ProxyShape.cpp.o
/myshare/AL_USDMaya-master/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyShape.cpp: In member function ‘void AL::usdmaya::nodes::ProxyShape::onObjectsChanged(const pxrInternal_v0_8__pxrReserved__::UsdNotice::ObjectsChanged&, const UsdStageWeakPtr&)’:
/myshare/AL_USDMaya-master/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyShape.cpp:1059:64: error: invalid initialization of reference of type ‘const SdfPathVector& {aka const std::vector<pxrInternal_v0_8__pxrReserved__::SdfPath>&}’ from expression of type ‘pxrInternal_v0_8__pxrReserved__::UsdNotice::ObjectsChanged::PathRange’
const SdfPathVector& resyncedPaths = notice.GetResyncedPaths();
^
/myshare/AL_USDMaya-master/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyShape.cpp:1067:78: error: invalid initialization of reference of type ‘const SdfPathVector& {aka const std::vector<pxrInternal_v0_8__pxrReserved__::SdfPath>&}’ from expression of type ‘pxrInternal_v0_8__pxrReserved__::UsdNotice::ObjectsChanged::PathRange’
const SdfPathVector& changedInfoOnlyPaths = notice.GetChangedInfoOnlyPaths();
^
make[2]: *** [lib/AL_USDMaya/CMakeFiles/AL_USDMaya.dir/AL/usdmaya/nodes/ProxyShape.cpp.o] Error 1
make[1]: *** [lib/AL_USDMaya/CMakeFiles/AL_USDMaya.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
What version of USD are you building against? I got this same error attempting to build against USD v0.8.4. I think this was introduced in a recent change for USD v0.8.4. I believe the AL_USDMaya plugin has only been tested against USD v0.8.3 for now. I'm able to build fine against USD v0.8.3.
Hello - that's correct, it's currently built currently 0.8.3. We are testing 0.8.4 build internally and will likely push this to Open source by the end of the week.
Alternatively, you can pre-empt the change locally if you like, i think you just need to change any calls to that API method from "const UsdNotice::ObjectsChanged::PathRange" to "const SdfPathVector" (and so on)
I have change the method in ProxyShape.h as Murphyeoin said.
void ProxyShape::onObjectsChanged(UsdNotice::ObjectsChanged const& notice, UsdStageWeakPtr const& sender)
to
void ProxyShape::onObjectsChanged(SdfPathVector const& notice, UsdStageWeakPtr const& sender)
and I got another error:
error: ‘const SdfPathVector’ has no member named ‘GetResyncedPaths
I got these error when running "make",
[ 18%] Building CXX object lib/AL_USDMaya/CMakeFiles/AL_USDMaya.dir/AL/usdmaya/nodes/ProxyShape.cpp.o
/myshare/AL_USDMaya-master/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyShape.cpp: In member function ‘void AL::usdmaya::nodes::ProxyShape::onObjectsChanged(const pxrInternal_v0_8__pxrReserved__::UsdNotice::ObjectsChanged&, const UsdStageWeakPtr&)’:
/myshare/AL_USDMaya-master/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyShape.cpp:1059:64: error: invalid initialization of reference of type ‘const SdfPathVector& {aka const std::vector<pxrInternal_v0_8__pxrReserved__::SdfPath>&}’ from expression of type ‘pxrInternal_v0_8__pxrReserved__::UsdNotice::ObjectsChanged::PathRange’
const SdfPathVector& resyncedPaths = notice.GetResyncedPaths();
^
/myshare/AL_USDMaya-master/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyShape.cpp:1067:78: error: invalid initialization of reference of type ‘const SdfPathVector& {aka const std::vector<pxrInternal_v0_8__pxrReserved__::SdfPath>&}’ from expression of type ‘pxrInternal_v0_8__pxrReserved__::UsdNotice::ObjectsChanged::PathRange’
const SdfPathVector& changedInfoOnlyPaths = notice.GetChangedInfoOnlyPaths();
^
make[2]: *** [lib/AL_USDMaya/CMakeFiles/AL_USDMaya.dir/AL/usdmaya/nodes/ProxyShape.cpp.o] Error 1
make[1]: *** [lib/AL_USDMaya/CMakeFiles/AL_USDMaya.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: