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

Cannot open include file: 'pthread.h' #30

Closed
ben-hawkyard-saddington-baynes opened this issue Aug 23, 2019 · 7 comments
Closed

Cannot open include file: 'pthread.h' #30

ben-hawkyard-saddington-baynes opened this issue Aug 23, 2019 · 7 comments

Comments

@ben-hawkyard-saddington-baynes
Copy link

ben-hawkyard-saddington-baynes commented Aug 23, 2019

Hello all, I'm encountering difficulties building maya-usd which seem to be similar to those already raised in #27.

I've tried building on windows 7 and on a virtual machine using windows 10. I built pixar usd using visual studio 14 2015 and I've tried building maya-usd using both vs 2015 and vs 2017, on both windows 7 and 10.

I've attached the latest CMakeOutput and CMakeError files as well as the build log. In all permutations of os/vs version I've used the error in CMakeError is the same:

Y:\Users\ben.hawkyard\code\maya-usd\workspace\build\RelWithDebInfo\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [Y:\Users\ben.hawkyard\code\maya-usd\workspace\build\RelWithDebInfo\CMakeFiles\CMakeTmp\cmTC_4fb8f.vcxproj]

Thank you for your time!

build_log.txt
CMakeError.log
CMakeOutput.log

@ben-hawkyard-saddington-baynes
Copy link
Author

ben-hawkyard-saddington-baynes commented Aug 23, 2019

These are the build commands I've been running, too:

For vs 2017

python build.py --maya-location "Y:\Program Files\Autodesk\Maya2018" --pxrusd-location "Y:\Program Files\USD" --devkit-location "Y:\Program Files\Autodesk\Maya2018\devkitBase" --generator "Visual Studio 15 2017 Win64" .\workspace

For vs 2015

python build.py --maya-location "Y:\Program Files\Autodesk\Maya2018" --pxrusd-location "Y:\Program Files\USD" --devkit-location "Y:\Program Files\Autodesk\Maya2018\devkitBase" --generator "Visual Studio 14 2015 Win64" .\workspace

@dtlindsey
Copy link

@ben-hawkyard-saddington-baynes
I had the same issue. I ended up having to rebuild USD with Visual Studio 2017, using the
--generator "Visual Studio 14 2015 Win64" argument.
Then I was able to build the maya plugins, change the pathing in the .mod file, and load it successfully in Maya. Give that a shot.

@ben-hawkyard-saddington-baynes
Copy link
Author

Hi Daniel, what precisely do you mean by using Visual Studio 2017? Should I open the 2017 Developer command prompt and run the command there?

@dtlindsey
Copy link

dtlindsey commented Aug 27, 2019 via email

@ZhongLingXiao
Copy link

Hi

I have change file : maya-usd\plugin\al\usdtransaction\AL\usd\transaction\tests\CMakeLists.txt
line 52 from

set_tests_properties(${USDTRANSACTION_PYTHON_TEST_NAME} PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_BINARY_DIR}/${INSTALL_DIR_SUFFIX}/usdtransaction:${CMAKE_BINARY_DIR}/src:$ENV{PYTHONPATH} )

to
set_tests_properties(${USDTRANSACTION_PYTHON_TEST_NAME} PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/${INSTALL_DIR_SUFFIX}/usdtransaction:${CMAKE_BINARY_DIR}/src:$ENV{PYTHONPATH}" )

which only add "" for the parameter and the problem solved

@samkenw
Copy link

samkenw commented Jan 27, 2020

@ZhongLingXiao This resolved the issue for me, thank you!

@fowlertADSK
Copy link
Contributor

I believe this was finally fixed properly as part of a recent change to get the AL unit tests running on all platforms. See: #198

murphyeoin added a commit to AnimalLogic/maya-usd that referenced this issue Feb 17, 2020
Merge ADSKPublic dev Into develop at Feb 11 2020
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

5 participants