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

Unable to build on Windows using Visual Studio 2022 #3466

Open
SamiSha99 opened this issue Dec 16, 2024 · 2 comments
Open

Unable to build on Windows using Visual Studio 2022 #3466

SamiSha99 opened this issue Dec 16, 2024 · 2 comments

Comments

@SamiSha99
Copy link

SamiSha99 commented Dec 16, 2024

Description of Issue

When I run build_usd.pyscript to build the project it always fails when installing USD, other dependencies installed without any issues.

Steps to Reproduce

  1. Open x64 Native Tools Command Prompt for VS 2022 as Administrator
  2. run python build_usd.py "E:\Program Files (x86)\USD_Build" from path E:\Program Files (x86)\GitHub\OpenUSD\build_scripts>

Note: Tried this both on release and dev branch.

System Information (OS, Hardware)

Windows 10
Visual Studio 2022, I also tried it on 2019

Error

// ... <snipped> ... 
str.cpp
tuple.cpp
wrapper.cpp
Creating library E:/Program Files (x86)/USD_Build/build/OpenUSD/pxr/external/boost/python/Release/usd_python.lib and object E:/Program Files (x86)/USD_Build/build/OpenUSD/pxr/external/boost/python/Release/usd_python.exp 
python.vcxproj -> E:\Program Files (x86)\USD_Build\build\OpenUSD\pxr\external\boost\python\Release\usd_python.dll

ERROR: Failed to run 'cmake --build . --config Release --target install -- /M:12' in E:\Program Files (x86)\USD_Build\build\OpenUSD.
See E:\Program Files (x86)\USD_Build\build\OpenUSD\log.txt for more details.
@SamiSha99
Copy link
Author

After some further testing by just running the cmake manually from the specified path, it appears a file called pch.pch is missing in the release folder.

Command

cmake --build . --config Release --target install -- /M:12 using path E:\Program Files (x86)\USD_Build\build\OpenUSD

Error

'C:/Program Files (x86)/USD/build/OpenUSD/include/pxr/base/arch/Release/pch.pch': No such file or directory [C:\Program Files (x86)\USD\build\OpenUSD\pxr\base\arch\arch.vcxproj]
C:\Program Files (x86)\USD\build\OpenUSD\pxr\base\arch\pch.cpp : fatal error C1083: Cannot open precompiled header file: 'C:/Program Files (x86)/USD/build/OpenUSD/include/pxr/base/arch/Release/pch.pch': No such file or directory [C:\Program Files (x86)\USD\build\OpenUSD\pxr\base\arch\arch.vcxproj]
  Auto build dll exports
  boost.vcxproj -> C:\Program Files (x86)\USD\build\OpenUSD\pxr\external\boost\Release\usd_boost.dll
  python.vcxproj -> C:\Program Files (x86)\USD\build\OpenUSD\pxr\external\boost\python\Release\usd_python.dll

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10514

(This is an automated message. See here for more information.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants