Failed to build OpenUSD v24.11 on Windows. For reference, my last successful build using the exact same setup was OpenUSD v23.11. Also the last version, OpenUSD v24.08, and was successfully compiled.
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(386): error C2440: '': cannot convert from 'pxrInternal_v0_24_11pxrReserved::SdfPath' to 'std::optional' [C:\OpenUSD-release_v24.11\build_2017\build\OpenUSD-release_v24.11\pxr\usd\pcp\pcp.vcxproj]
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(386): note: No constructor could take the source type, or constructor overload resolution was ambiguous
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(475): note: see reference to function template instantiation 'void pxrInternal_v0_24_11pxrReserved::`anonymous-namespace'::_ProcessListOpCompositionFieldEditsAtSite(const pxrInternal_v0_24_11pxrReserved::PcpLayerStackRefPtr &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,const pxrInternal_v0_24_11pxrReserved::TfToken &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,std::vector<pxrInternal_v0_24_11pxrReserved::PcpDependentNamespaceEdits::CompositionFieldEdit,std::allocator<_Ty>> *)' being compiled
with
[
_Ty=pxrInternal_v0_24_11pxrReserved::PcpDependentNamespaceEdits::CompositionFieldEdit
]
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(389): error C2039: 'SetPrimPath': is not a member of 'pxrInternal_v0_24_11pxrReserved::SdfPath' [C:\OpenUSD-release_v24.11\build_2017\build\OpenUSD-release_v24.11\pxr\usd\pcp\pcp.vcxproj]
C:/OpenUSD-release_v24.11/pxr/usd/pcp/primIndex.h(47): note: see declaration of 'pxrInternal_v0_24_11pxrReserved::SdfPath'
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(487): note: see reference to function template instantiation 'void pxrInternal_v0_24_11pxrReserved::`anonymous-namespace'::_ProcessListOpCompositionFieldEditsAtSite(const pxrInternal_v0_24_11pxrReserved::PcpLayerStackRefPtr &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,const pxrInternal_v0_24_11pxrReserved::TfToken &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,std::vector<pxrInternal_v0_24_11pxrReserved::PcpDependentNamespaceEdits::CompositionFieldEdit,std::allocator<_Ty>> *)' being compiled
with
[
_Ty=pxrInternal_v0_24_11pxrReserved::PcpDependentNamespaceEdits::CompositionFieldEdit
]
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(389): error C2039: 'this': is not a member of 'pxrInternal_v0_24_11pxrReserved::SdfPath' [C:\OpenUSD-release_v24.11\build_2017\build\OpenUSD-release_v24.11\pxr\usd\pcp\pcp.vcxproj]
C:/OpenUSD-release_v24.11/pxr/usd/pcp/primIndex.h(47): note: see declaration of 'pxrInternal_v0_24_11pxrReserved__::SdfPath'
ERROR: Failed to run 'cmake --build . --config Release --target install -- /M:8' in C:\OpenUSD-release_v24.11\Build_2017\build\OpenUSD-release_v24.11.
See C:\OpenUSD-release_v24.11\Build_2017\build\OpenUSD-release_v24.11\log.txt for more details.
Description of Issue
Failed to build OpenUSD v24.11 on Windows. For reference, my last successful build using the exact same setup was OpenUSD v23.11. Also the last version, OpenUSD v24.08, and was successfully compiled.
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(386): error C2440: '': cannot convert from 'pxrInternal_v0_24_11pxrReserved::SdfPath' to 'std::optional' [C:\OpenUSD-release_v24.11\build_2017\build\OpenUSD-release_v24.11\pxr\usd\pcp\pcp.vcxproj]
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(386): note: No constructor could take the source type, or constructor overload resolution was ambiguous
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(475): note: see reference to function template instantiation 'void pxrInternal_v0_24_11pxrReserved::`anonymous-namespace'::_ProcessListOpCompositionFieldEditsAtSite(const pxrInternal_v0_24_11pxrReserved::PcpLayerStackRefPtr &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,const pxrInternal_v0_24_11pxrReserved::TfToken &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,std::vector<pxrInternal_v0_24_11pxrReserved::PcpDependentNamespaceEdits::CompositionFieldEdit,std::allocator<_Ty>> *)' being compiled
with
[
_Ty=pxrInternal_v0_24_11pxrReserved::PcpDependentNamespaceEdits::CompositionFieldEdit
]
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(389): error C2039: 'SetPrimPath': is not a member of 'pxrInternal_v0_24_11pxrReserved::SdfPath' [C:\OpenUSD-release_v24.11\build_2017\build\OpenUSD-release_v24.11\pxr\usd\pcp\pcp.vcxproj] C:/OpenUSD-release_v24.11/pxr/usd/pcp/primIndex.h(47): note: see declaration of 'pxrInternal_v0_24_11pxrReserved::SdfPath' C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(487): note: see reference to function template instantiation 'void pxrInternal_v0_24_11pxrReserved::`anonymous-namespace'::_ProcessListOpCompositionFieldEditsAtSite(const pxrInternal_v0_24_11pxrReserved::PcpLayerStackRefPtr &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,const pxrInternal_v0_24_11pxrReserved::TfToken &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,const pxrInternal_v0_24_11pxrReserved::SdfPath &,std::vector<pxrInternal_v0_24_11pxrReserved::PcpDependentNamespaceEdits::CompositionFieldEdit,std::allocator<_Ty>> *)' being compiled
with
[
_Ty=pxrInternal_v0_24_11pxrReserved::PcpDependentNamespaceEdits::CompositionFieldEdit
]
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(389): error C2039: 'this': is not a member of 'pxrInternal_v0_24_11pxrReserved::SdfPath' [C:\OpenUSD-release_v24.11\build_2017\build\OpenUSD-release_v24.11\pxr\usd\pcp\pcp.vcxproj] C:/OpenUSD-release_v24.11/pxr/usd/pcp/primIndex.h(47): note: see declaration of 'pxrInternal_v0_24_11pxrReserved__::SdfPath'
ERROR: Failed to run 'cmake --build . --config Release --target install -- /M:8' in C:\OpenUSD-release_v24.11\Build_2017\build\OpenUSD-release_v24.11. See C:\OpenUSD-release_v24.11\Build_2017\build\OpenUSD-release_v24.11\log.txt for more details.
Steps to Reproduce
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 "C:\Python310_x64\python.exe" "build_scripts\build_usd.py" "C:\OpenUSD-release_v24.11\Build_2017" --no-docs --no-embree --no-python --no-python-docs --no-debug-python --no-draco --no-prman --no-materialx --no-alembic --no-hdf5 --no-opencolorio --no-openimageio --no-usdview --no-openvdb --no-ptex --no-imaging
System Information (OS, Hardware)
Windows (64-bit)
Package Versions
OpenUSD v24.11 Visual Studio C++ 2017 (Version 15.8.5) Cmake 3.28.0 Python 3.10.6 (64-bit) Powershell 5.1
Build Flags
--no-docs --no-embree --no-python --no-python-docs --no-debug-python --no-draco --no-prman --no-materialx --no-alembic --no-hdf5 --no-opencolorio --no-openimageio --no-usdview --no-openvdb --no-ptex --no-imaging