How to #include MayaUSD (0.6.0 install) C++ #1164
-
Hi guys! I'm quite fresh when it comes to C++, so forgive me if this is super obvious. We have upgraded from Maya 2018 to Maya 2020. For Maya 2018 I compiled the code myself, and set up the environment variables that was needed. Now I need to update the tools (created using QT) to Maya 2020 and used the 0.6.0 release install on a clean windows (no previous USD versions). My question is, how and where do I import the classes to my code? Previously This was in my QT config file:
And in my .cpp file: However, now that I don't have a The error I get when I try to compile is: Again, sorry if this is super obvious but I don't understand how to get the installer to work with c++. Thank you so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You will need to extract the USD devkit.zip and adjust the paths on where to find USD now. Previously you had compiled it yourself and put it in C:\PixarUSD. Now you want to find it in the MayaUsd plugin installation folder. If you look into the folder: From the paths you provided above I think you would change:
|
Beta Was this translation helpful? Give feedback.
You will need to extract the USD devkit.zip and adjust the paths on where to find USD now. Previously you had compiled it yourself and put it in C:\PixarUSD. Now you want to find it in the MayaUsd plugin installation folder. If you look into the folder:
C:\Program Files\Autodesk\MayaUSD\Maya2020\0.6.0_202012102328-efea2cd\mayausd\USD
you should see a file devkit.zip which you need to extract. This file contains the part of USD necessary to build with.
From the paths you provided above I think you would change:
-LC:\PixarUSD\lib -> -LC:\Program Files\Autodesk\MayaUSD\Maya2020\0.6.0_202012102328-efea2cd\mayausd\USD\lib
C:\PixarUSD\include ->C:\Program Files\Autodesk\MayaUSD\Maya2020\0.6.0_2…