Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build OpenUSD v24.11 on Windows #3427

Open
samsonsite1 opened this issue Nov 16, 2024 · 1 comment
Open

Failed to build OpenUSD v24.11 on Windows #3427

samsonsite1 opened this issue Nov 16, 2024 · 1 comment
Labels
build Build-related issue/PR

Comments

@samsonsite1
Copy link

samsonsite1 commented Nov 16, 2024

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_11__pxrReserved__::SdfPath' to 'std::optional<pxrInternal_v0_24_11__pxrReserved__::SdfReference>' [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_11__pxrReserved__::`anonymous-namespace'::ProcessListOpCompositionFieldEditsAtSite<pxrInternal_v0_24_11__pxrReserved_::SdfReference>(const pxrInternal_v0_24_11__pxrReserved__::PcpLayerStackRefPtr &,const pxrInternal_v0_24_11__pxrReserved__::SdfPath &,const pxrInternal_v0_24_11__pxrReserved__::TfToken &,const pxrInternal_v0_24_11__pxrReserved__::SdfPath &,const pxrInternal_v0_24_11__pxrReserved__::SdfPath &,std::vector<pxrInternal_v0_24_11__pxrReserved__::PcpDependentNamespaceEdits::CompositionFieldEdit,std::allocator<Ty>> *)' being compiled
with
[
Ty=pxrInternal_v0_24_11__pxrReserved
::PcpDependentNamespaceEdits::CompositionFieldEdit
]

C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(389): error C2039: 'SetPrimPath': is not a member of 'pxrInternal_v0_24_11__pxrReserved__::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_11__pxrReserved__::SdfPath'
C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(487): note: see reference to function template instantiation 'void pxrInternal_v0_24_11__pxrReserved__::`anonymous-namespace'::ProcessListOpCompositionFieldEditsAtSite<pxrInternal_v0_24_11__pxrReserved_::SdfPath>(const pxrInternal_v0_24_11__pxrReserved__::PcpLayerStackRefPtr &,const pxrInternal_v0_24_11__pxrReserved__::SdfPath &,const pxrInternal_v0_24_11__pxrReserved__::TfToken &,const pxrInternal_v0_24_11__pxrReserved__::SdfPath &,const pxrInternal_v0_24_11__pxrReserved__::SdfPath &,std::vector<pxrInternal_v0_24_11__pxrReserved__::PcpDependentNamespaceEdits::CompositionFieldEdit,std::allocator<Ty>> *)' being compiled
with
[
Ty=pxrInternal_v0_24_11__pxrReserved
::PcpDependentNamespaceEdits::CompositionFieldEdit
]

C:\OpenUSD-release_v24.11\pxr\usd\pcp\dependentNamespaceEditUtils.cpp(389): error C2039: 'this': is not a member of 'pxrInternal_v0_24_11__pxrReserved::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_11__pxrReserved__::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

@asluk asluk added the build Build-related issue/PR label Nov 16, 2024
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-10447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build-related issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants