set PACKAGE_PATH=C:\Autodesk_Maya_2023_3_Update_DEVKIT_Windows\devkitBase
set VS_VERSION=2022
set CMAKE_PATH=C:\Program Files\Microsoft Visual Studio\%VS_VERSION%\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
setx PATH "%PACKAGE_PATH%;%CMAKE_PATH%;%PATH%" /M
set PACKAGE_PATH=E:\ViewOf_maya_usd\Autodesk_Maya_2023_3_Update_DEVKIT_Windows\devkitBase
set VS_VERSION=2022
::set CMAKE_PATH=C:\Program Files\Microsoft Visual Studio\%VS_VERSION%\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
set CMAKE_PATH=C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
::set MAYA_EXECUTABLE=C:\Program Files\Autodesk\Maya2023\bin\maya.exe
set MAYA_EXECUTABLE=C:\Program Files\Autodesk\Maya2023\bin\mayabatch.exe
set MAYA_PY_EXECUTABLE=C:\Program Files\Autodesk\Maya2023\bin\mayapy.exe
set MayaBinDir=C:\Program Files\Autodesk\Maya2023\bin
set pythonDir=E:\ViewOf_maya_usd\python-3.7.7-embed-amd64
set gitDir=E:\ViewOf_maya_usd\PortableGit\bin
set CMakeDir=E:\ViewOf_maya_usd\cmake-3.17.0-win64-x64\cmake-3.17.0-win64-x64\bin
set MAYA_DEVKIT_INC_DIR=E:\ViewOf_maya_usd\Autodesk_Maya_2023_3_Update_DEVKIT_Windows\devkitBase\devkit\Alembic\include
set MAYA_IMFbase_LIBRARY=E:\ViewOf_maya_usd\Autodesk_Maya_2023_3_Update_DEVKIT_Windows\devkitBase\lib\adskIMF.lib
set OpenUSD_Dir=E:\ViewOf_maya_usd\OpenUSD-21.11\OpenUSD-21.11
::setx PATH "%PACKAGE_PATH%;%CMAKE_PATH%;%PATH%" /M
setx PATH "%PACKAGE_PATH%;%CMAKE_PATH%;%MAYA_EXECUTABLE%;%MAYA_PY_EXECUTABLE%;%MayaBinDir%;%python27Dir%;%python37Dir%;%gitDir%;%CMakeDir%;%MAYA_DEVKIT_INC_DIR%;%MAYA_IMFbase_LIBRARY%;%OpenUSD_Dir%;%PATH%" /M
でこの install_devkit_setenv.bat を管理者として実行した。
現時点でのログはこうだ。
1> CMake generation started for default configuration: 'x64-Debug'.
1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\ViewOf_maya_usd\VS2019_Rep\maya_usd\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe" "E:\ViewOf_maya_usd\VS2019_Rep\maya_usd" 2>&1"
1> Working directory: E:\ViewOf_maya_usd\VS2019_Rep\maya_usd\out\build\x64-Debug
1> [CMake] -- Using Maya Light API Version 3
1> [CMake] -- Maya has setDefaultMaterialHandling API
1> [CMake] -- Maya has new point snapping API
1> [CMake] -- Maya has getCurrentUfeCameraPath
1> [CMake] -- Maya has isInCrashHandler API
1> [CMake] -- Maya has setUfeIdentifiers API
1> [CMake] -- Maya has updateUfeIdentifiers API
1> [CMake] -- Maya has getDisplayStyleOfAllViewports API
1> [CMake] -- Maya array iterator has difference_type trait
1> [CMake] -- MFnSet has getMemberPaths function
1> [CMake] -- MFnDisplayLayer exists
1> [CMake] -- MDisplayLayerMessage has MDisplayLayerMemberChangedFunction
1> [CMake] -- MRenderItem has HideOnPlayback API
1> [CMake] -- Maya has UFE gizmo drawing
1> [CMake] -- Found Python: C:/Python27/python.exe (found suitable exact version "2.7.15") found components: Interpreter
1> [CMake] -- _PYTHON_VERSION_LIST: 2.7.15.final.0
1> [CMake] -- PYTHON_PREFIX: C:\Python27
1> [CMake] -- PYTHON_INCLUDE_DIR: C:\Python27\include
1> [CMake] -- PYTHON_SITE_PACKAGES: C:\Python27\Lib\site-packages
1> [CMake] -- PYTHON_MODULE_EXTENSION: .pyd
1> [CMake] -- PYTHON_IS_DEBUG: 0
1> [CMake] -- PYTHON_SIZEOF_VOID_P: 8
1> [CMake] -- PYTHON_LIBRARY_SUFFIX: 27
1> [CMake] -- PYTHON_MULTIARCH:
1> [CMake] -- PYTHON_LIBDIR: C://lib
1> [CMake] -- Found PythonLibs: C:/Python27/libs/Python27.lib
1> [CMake] -- Build MayaUSD with Python3 = OFF
1> [CMake] -- PYTHON_INCLUDE_DIRS = C:/Python27/include
1> [CMake] -- PYTHON_LIBRARIES = C:/Python27/libs/Python27.lib
1> [CMake] -- Python_EXECUTABLE = C:/Python27/python.exe
1> [CMake] CMake Error at cmake/jinja.cmake:27 (message):
1> [CMake] MARKUPSAFE_LOCATION not set
1> [CMake] Call Stack (most recent call first):
1> [CMake] cmake/jinja.cmake:55 (init_markupsafe)
1> [CMake] CMakeLists.txt:118 (include)
1> [CMake] -- Configuring incomplete, errors occurred!
1> 'C:\WINDOWS\system32\cmd.exe'
'/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL &&
"c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe"
-G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug"
-DCMAKE_INSTALL_PREFIX:PATH="E:\ViewOf_maya_usd\VS2019_Rep\maya_usd\out\install\x64-Debug"
-DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe"
-DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe"
-DCMAKE_MAKE_PROGRAM="c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe"
"E:\ViewOf_maya_usd\VS2019_Rep\maya_usd" 2>&1"' execution failed with error:
''C:\WINDOWS\system32\cmd.exe'
'/c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL &&
"c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\CMake\bin\cmake.exe"
-G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="E:\ViewOf_maya_usd\VS2019_Rep\maya_usd\out\install\x64-Debug"
-DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe"
-DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe"
-DCMAKE_MAKE_PROGRAM="c:\program files\microsoft visual studio\2022\professional\common7\ide\commonextensions\microsoft\cmake\Ninja\ninja.exe"
"E:\ViewOf_maya_usd\VS2019_Rep\maya_usd" 2>&1"' returned with exit code: 1'.
CMake Error at plugin/pxr/pxrConfig.cmake:19 (include):
include could not find load file:
E:/ViewOf_maya_usd/VS2019_Rep/maya_usd/plugin/pxr/cmake/pxrTargets.cmake
Call Stack (most recent call first):
cmake/modules/FindUSD.cmake:49 (include)
CMakeLists.txt:121 (find_package)
CMake Error at plugin/pxr/pxrConfig.cmake:25 (get_target_property):
get_target_property() called with non-existent target "@PXR_ALL_LIBS@".
Call Stack (most recent call first):
cmake/modules/FindUSD.cmake:49 (include)
CMakeLists.txt:121 (find_package)
CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find USD: Found unsuitable version
"@PXR_MAJOR_VERSION@.@PXR_MINOR_VERSION@.@PXR_PATCH_VERSION@", but required
is at least "0.21.11" (found
E:/ViewOf_maya_usd/VS2019_Rep/maya_usd/plugin/pxr)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:443 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindUSD.cmake:148 (find_package_handle_standard_args)
CMakeLists.txt:121 (find_package)
PyOpenGL is not installed. If you have pip installed, run "pip install PyOpenGL" to install it, then re-run this script.
If PyOpenGL is already installed, you may need to update your ```PYTHONPATH``` to indicate where it is located.
➜ pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Package Version
---------- -------
Jinja2 2.10
MarkupSafe 1.1.0
pip 19.1.1
PyOpenGL 3.1.0
PySide2 5.12.1
PyYAML 3.13
setuptools 39.0.1
shiboken2 5.12.1
# download the packages, install may fail with "no public key found"
sudo yum-config-manager --add-repo=http://vault.centos.org/7.6.1810/sclo/x86_64/rh/
# to fix "no public key found"
cd /etc/pki/rpm-gpg
ls # confirm RPM-GPG-KEY-CentOS-SIG-SCLo exists
sudo rpm --import RPM-GPG-KEY-CentOS-SIG-SCLo
rpm -qa gpg* # confirm key with substring f2ee9d55 exists
# to install devtoolset-6
sudo yum install devtoolset-6
# disable the vault after successful install
sudo yum-config-manager --disable vault.centos.org_7.6.1810_sclo_x86_64_rh_
Maya にプラグインをロードする方法
提供されているモジュール ファイル (*.mod) を使用すると、プラグインやライブラリのさまざまな環境変数を簡単に設定できます。プロジェクトが正常にビルドされたら、mayaUsd.mod/alUSD.mod/pxrUSD.modインストール ディレクトリ内にインストールされます。Maya がこれらの MOD ファイルを検出するには、MAYA_MODULE_PATHMOD ファイルがインストールされている場所を指すように環境変数を設定する必要があります。例:
set MAYA_MODULE_PATH=C:\workspace\install\RelWithDebInfo
export MAYA_MODULE_PATH=/usr/local/workspace/install/RelWithDebInfo