less than 1 minute read

Pixar-USD 安装趟坑

Issues

  • 编译
    • Requirement
      • windows
      • 安裝目录不要使用空格
        python USD\build_scripts\build_usd.py "C:\Program Files\USD" ❌
        python USD\build_scripts\build_usd.py "C:\USD"✔️
        
  • 运行
    • 数据kitchen_set
    • 启动脚本,创建\usd\usd.cmd ```bat @echo off

    pushd %~dp0 set USD_INSTALL_ROOT=%CD% popd

    setlocal

    set PATH=%USD_INSTALL_ROOT%\lib;%PATH% set PATH=%USD_INSTALL_ROOT%\bin;%PATH% set QT_DEBUG_PLUGINS=1 set PYTHONPATH=%USD_INSTALL_ROOT%\lib\python;%PYTHONPATH% set QT_QPA_PLATFORM_PLUGIN_PATH=C:\ProgramData\Anaconda3\envs\USD-37\Lib\site-packages\PyQt5\Qt5\plugins\platforms

    set PXR_PLUGINPATH_NAME=%PXR_PLUGINPATH_NAME%;%USD_INSTALL_ROOT%\share\usd\plugins

    %*

    endlocal ```

    • usd.cmd usdview C:\workspace\workspace_3d\Kitchen_set\Kitchen_set.usd
      • issue
        • Could not find the Qt platform plugin "windows" in ""
          • add set QT_QPA_PLATFORM_PLUGIN_PATH=C:\ProgramData\Anaconda3\envs\USD-37\Lib\site-packages\PyQt5\Qt5\plugins\platforms
        • The plugin 'xxx.dll' uses incompatible Qt library.
          • copy site-packages\PySide6\plugins\platforms to site-packages\PyQt5\Qt5\plugins\platforms

Success

kitchen-set

Reference

Categories:

Updated: