Linking issues in CentOS 7 #1487
-
I am getting the issue (below) while building maya-usd tag v0.9.0 against:
While building MayaUsd plugin, I am running into a CMake warning about library linking. Here is the CMake warning (these are just 2 examples, but there are many similar warnings):
It seems like, since I am passing to the plugin build system the There are no linking errors during the build, only while loading the plugin in Maya. Appending the I could be wrong but I believe Maya 2022 comes with USD since I can |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can ignore the warning "cycle in the constraint graph". You are getting the warning since we are linking against same libraries from different directories at the same time. In your example, there are two libtbb.so one in "/usr/autodesk/maya2022/lib" and the other in "/home/dev/usd-20.08/lib"
You shouldn't need to manually set LD_LIBRARY_PATH at all. It seems like you have a path to another USD or another Python in your path. We have seen this issue in the past. Try running following commands to be sure only the USD that you have passed to pxrusd-location is in your path. getenv "PATH";
When you build maya-usd, you are building 3 plugins: Maya Usd, Animal Logic Usd, and Pixar usd. The reason you can import pxr.Usd is because, the PATH and PYTHONPATH for Pixar USD ( the one you passed to --pxrusd-location ) is set automatically. Line 16 in 06ffd43
AFAIK, Pixar USD include/libs are not shipped with any versions of Maya. |
Beta Was this translation helpful? Give feedback.
-
Hi Marcelo, I was referring to Pixar USD ( the core library itself ) when you mentioned You don't necessarily need to use
However, it is important that Python version that MayaUSD is built against matches the Python version that Maya use. By default, maya-usd projects is built with Python 2. Line 35 in 06ffd43 I believe Maya on Windows and Linux now starts in Python 3 mode by default: https://help.autodesk.com/view/MAYAUL/2022/ENU/?guid=GUID-DF43840B-4DB1-43F8-BFD1-97D8D031B91D If you want to build Maya-USD with Python3 then you need to turn on the e.g |
Beta Was this translation helpful? Give feedback.
-
Concerning the linking issues, since Hamed mentioned that the linking warnings can be ignored, I am marking this discussion as answered. |
Beta Was this translation helpful? Give feedback.
@msercheli
You can ignore the warning "cycle in the constraint graph". You are getting the warning since we are linking against same libraries from different directories at the same time. In your example, there are two libtbb.so one in "/usr/autodesk/maya2022/lib" and the other in "/home/dev/usd-20.08/lib"
You shouldn't need to manually set LD_LIBRARY_PATH at all.
It seems like you have a path to another USD or another Python in your path. We have seen this issue in the past. Try running following commands to be sure only the USD that you have passed t…