Autodesk/maya-usd

An issue with Qt while building

CPlusPlus-enthusiast opened this issue · 1 comments

While trying to build the following error is printed.

CMake Error at CMakeLists.txt:177 (message):
  Could not find Qt in Maya devkit directory:
  C:\otzad_nagore\Autodesk_Maya_2024_2_Update_DEVKIT_Windows\devkitBase.

build_log.txt

  • Windows 10
  • Visual Studio 16 2019
  • Maya 2024
  • Maya USD v0.27.0
  • Pixar USD v23.11

I have tried to unzip qt_5.15.2_vc14-include.zip in the same directory, in qt_5.15.2_vc14-include(with and without replacing the old files).

This is the command I am using for building
python build.py --devkit-location "C:\backup\Autodesk_Maya_2024_2_Update_DEVKIT_Windows\devkitBase" --maya-location "C:\Program Files\Autodesk\Maya2024" --no-materialx --pxrusd-location C:\backup\USD_2311 --generator "Visual Studio 16 2019" --build-args="-DPYTHON_INCLUDE_DIR=C:/Program\ Files/Autodesk/Maya2024/include/Python310/Python,-DPython_EXECUTABLE=C:/Program\ Files/Autodesk/Maya2024/bin/mayapy.exe,-DPYTHON_LIBRARIES=C:/Program\ Files/Autodesk/Maya2024/lib/python310.lib,-DBUILD_WITH_PYTHON_3=ON,-DBUILD_WITH_PYTHON_3_VERSION=3.10,-DBUILD_AL_PLUGIN=OFF,-DBUILD_PXR_PLUGIN=ON,-DBUILD_TESTS=OFF,-DBUILD_AL_PLUGIN=OFF,-DBUILD_ADSK_PLUGIN=OFF,-DBUILD_MAYAUSD_LIBRARY=OFF,-DMaterialX_DIR=C:/backup/USD/lib/cmake/MaterialX" "C:/extbuild/MayaUsd_Build"

From your build command it looks like you are simply wanting to build only the Pixar plugin. For all three plugins (MayaUsd, Pixar, AL) the MayaUsd library is needed - it is the base for all three plugins. So change -DBUILD_MAYAUSD_LIBRARY=ON and it should work.

There is an cmake check for that, but unfortunately it is below the Qt check. FYI, the Qt check failed because you had the maya usd library off which meant it didn't try and find Maya, so it skipped trying to find Qt.

Sean