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

build_usd.py can not find VS C++ compiler on non english systems #613

Closed
ephb opened this issue Sep 8, 2018 · 5 comments
Closed

build_usd.py can not find VS C++ compiler on non english systems #613

ephb opened this issue Sep 8, 2018 · 5 comments

Comments

@ephb
Copy link

ephb commented Sep 8, 2018

Description of Issue

Line 99 ind build_usd.py uses the string to determine wether the c++ compiler is installed.
"Compiler Version (\d+).(\d+).(\d+)",
This is string however seems to be localized. And since I installed Visual Studio in English I assume this is taken from the system locale.
'cl' on my system returns 'Optimierungscompiler Version 19.15.26726 für x86'.

So in my case simply changing one letter in the search string is sufficient but I imagine this will also affect other languages this why I opened this issue instead of providing a pull request with two different strings.

I think there must be a better way than to simply list all possible names of the copmpiler.

Steps to Reproduce

  1. Run build_usd.py on a Windows 10 Machine where the system locale is set to something other than English it will report "C++ compiler not found -- please install a compiler".

System Information (OS, Hardware)

Windows 10 1803. Hardware seems to be irrelevant here.

Package Versions

18.09

Build Flags

none

@jtran56
Copy link

jtran56 commented Sep 10, 2018

Filed as internal issue #USD-4727.

@sunyab
Copy link
Contributor

sunyab commented Sep 13, 2018

Hi @ephb, thanks for the report! This might be as simple as modifying the regex to look for just the version number. We may also want to look for the "x64" string, since users should be using the x64 developer command prompt / compiler for building USD.

@Trafle
Copy link

Trafle commented Apr 20, 2021

@ephb, So how do u fix this? That would help me

@sunyab
Copy link
Contributor

sunyab commented Apr 20, 2021

@Trafle This issue was fixed in 2019. If you're still running into problems please file a new issue with more details. Thank you!

@Trafle
Copy link

Trafle commented Apr 26, 2021

@sunyab gocha. Thank u

francis-wangfr pushed a commit to autodesk-forks/USD that referenced this issue Feb 8, 2024
…ixarAnimationStudios#613)

- Use the glslang dependency included when getting tint/dawn dependencies
- Update shaderCompiler.cpp to use glslang api instead of shaderc
- Update build logic to account for change in dependencies
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

4 participants