Skip to content
New issue

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

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

Already on GitHub? # to your account

Windows build can't find pthread.h #921

Closed
Ryanagogo opened this issue Jul 25, 2019 · 6 comments
Closed

Windows build can't find pthread.h #921

Ryanagogo opened this issue Jul 25, 2019 · 6 comments

Comments

@Ryanagogo
Copy link

Description of Issue

Hello,

I'm trying to build USD on my windows 10. During the build it's getting this error:

fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

I've attached the cmake output and error logs, so you can see more details

Thank you in advance for any help you can give me!

Ryan

CMakeOutput.log
CMakeError.log

@jilliene
Copy link

Filed as internal issue #USD-5468

@sunyab
Copy link
Contributor

sunyab commented Aug 1, 2019

Hi @Ryanagogo, I believe the log files you've posted are from CMake trying to determine whether pthread.h exists on your system and don't indicate the real cause of the build failure. Can you post the log files from the full build? This should be in D:\USDBuild\build\USD\log.txt given your build set up.

@Ryanagogo
Copy link
Author

Here is the log.txt, sorry for not including it before!
log.txt

@sunyab
Copy link
Contributor

sunyab commented Aug 5, 2019

Thanks! From the log file, it looks like the build is running into errors when trying to build boost python:

<snip>
D:\Python27\libs\python27.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'

D:\USDBuild\build\boost\bin.v2\libs\python\build\msvc-14.1\release\address-model-64\threading-multi\boost_python-vc141-mt-1_65_1.dll : fatal error LNK1120: 135 unresolved externals

It looks like you may have installed the 32-bit Python libraries and SDK for Windows, but you'll need the 64-bit version instead. Let me know if that helps!

@Ryanagogo
Copy link
Author

You are right, using the 32 bit python was the issue. I changed it out and now it builds without errors.

Is there a script that can do a prerequisite check for building USD?

Thank you for the help!

Ryan

@sunyab
Copy link
Contributor

sunyab commented Aug 6, 2019

Glad that helped! We might be able to add a check to build_usd.py to see if the Python you're running is 32-bit or 64-bit. I'll explore that a bit and see what can be done.

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

No branches or pull requests

3 participants