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

Installing USD error #836

Closed
feeling1982113 opened this issue Apr 28, 2019 · 7 comments
Closed

Installing USD error #836

feeling1982113 opened this issue Apr 28, 2019 · 7 comments

Comments

@feeling1982113
Copy link

Description of Issue

I am trying to build USD but didn't succeed。

huanghaibindeiMac:USD huanghaibin$ python /Users/huanghaibin/USD/build_scripts/build_usd.py --maya /Users/huanghaibin/opt/local/USD --maya-location /Volumes/work/Applications/Autodesk/maya2019 --build /Users/huanghaibin/opt/local/USD/build

Building with settings:
USD source directory /Users/huanghaibin/USD
USD install directory /Users/huanghaibin/opt/local/USD
3rd-party source directory /Users/huanghaibin/opt/local/USD/src
3rd-party install directory /Users/huanghaibin/opt/local/USD
Build directory /Users/huanghaibin/opt/local/USD/build
CMake generator Default
Downloader curl

Building Shared libraries
Config Release
Imaging On
Ptex support: Off
OpenImageIO support: Off
OpenColorIO support: Off
UsdImaging On
usdview: On
Python support On
Documentation Off
Tests Off
Alembic Plugin Off
HDF5 support: Off
MaterialX Plugin Off
Maya Plugin On
Katana Plugin Off
Houdini Plugin Off

Dependencies None
STATUS: Installing USD...

[ 39%] Linking CXX shared library libtf.dylib
Undefined symbols for architecture x86_64:
.......................................................
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [pxr/base/lib/tf/libtf.dylib] Error 1
make[1]: *** [pxr/base/lib/tf/CMakeFiles/tf.dir/all] Error 2
make: *** [all] Error 2

ERROR: Failed to run 'cmake --build . --config Release --target install -- -j4'
See /Users/huanghaibin/opt/local/USD/build/USD/log.txt for more details.

System Information (OS, Hardware)

MacOS Mojave 10.14.4.

Package Versions

Build Flags

USD huanghaibin$ python /Users/huanghaibin/USD/build_scripts/build_usd.py --maya /Users/huanghaibin/opt/local/USD --maya-location /Volumes/work/Applications/Autodesk/maya2019 --build /Users/huanghaibin/opt/local/USD/build
log.txt
Thank you.

@jilliene
Copy link

jilliene commented May 7, 2019

Filed as internal issue #USD-5248

@feeling1982113
Copy link
Author

I saw the help documentation saying that compiling the Maya version requires the use of Maya's own python. I later changed it to Maya's own python, and also modified the environment variables but still got the same error.

/Volumes/work/Applications/Autodesk/maya2019/Maya.app/Contents/bin/mayapy /Users/huanghaibin/USD/build_scripts/build_usd.py --maya /Users/huanghaibin/opt/local/USD/ --no- Usdview --maya-location /Volumes/work/Applications/Autodesk/maya2019 --build /Users/huanghaibin/opt/local/USD/build

[ 32%] Linking CXX shared library libtf.dylib
Undefined symbols for architecture x86_64:

Ld: symbol(s) not found for architecture x86_64
Clang: error: linker command failed with exit code 1 (use -v to see invocation)
Make[2]: *** [pxr/base/lib/tf/libtf.dylib] Error 1
Make[1]: *** [pxr/base/lib/tf/CMakeFiles/tf.dir/all] Error 2
Make: *** [all] Error 2

I deleted many python versions in the system, only the default version of the system.
I tried to find these files not found.
Who can give a good suggestion or I should not compile with maya2019.
Thank you.

@feeling1982113
Copy link
Author

I think it may be the reason for boost, I installed multiple versions and multiple places caused confusion, I am doing new tests, thank you.

@feeling1982113
Copy link
Author

Thank you, it has been compiled successfully.

@c64kernal
Copy link
Contributor

Glad you got it resolved @feeling1982113!

@SimonForgot
Copy link

Do you remember how you solved this problem? I got the same problem as you

AdamFelt pushed a commit to autodesk-forks/USD that referenced this issue Apr 16, 2024
…xarAnimationStudios#836)

* [OGSMOD-4647] Add python/cmake option to disable JavaScript bindings in emscripten build

* Skip hdEmscripten, js_bindings and JS_PUBLIC_HEADERS
Update Dockerfile and readme

* [OGSMOD-4647] Add preprocessor variable and disable _GetJsVal

* [OGSMOD-4647] Address PR comments

* [OGSMOD-4647] Update preprocessor var name

* [OGSMOD-4647] Set js binding extraArg to OFF if disabled
@avalean07
Copy link

avalean07 commented Jan 16, 2025

I got the same issue, do you have any solution?

Solution: update cmake

This is how I did it: https://askubuntu.com/questions/355565/how-do-i-install-the-latest-version-of-cmake-from-the-command-line

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