Note that the windows build is a work in progress, and the branch may not yet be in a buildable state.
Prereqs:
- Install Python and Pip
- pip install PySide
- pip install pyd (unclear if this is necessary or not)
- Ensure PySide tools (in python/scripts) are visible on %PATH%
- Install CMake and make sure its on your %PATH%
- Install NASM, make sure it's on your %PATH% in the working terminal
- Install 7-Zip, make sure 7z is on your %PATH% in the working terminal
- Download & unzip win-bison (and win-flex), no need to be on the path
- Download Qt via the binary installer, default install works at the time of this writing
- Ensure qmake.exe is on the %PATH% in the working terminal
In a 64-bit VS2015 Developer command prompt:
mkdir Projects
cd Projects
git clone https://github.com/PixarAnimationStudios/USD.git
cd USD
git checkout dev_win_ip
cd ..
git clone https://github.com/vfxpro99/usd-build-club.git
mkdir stage
cd stage
..\usd-build-club\prerequisites-vc140-x64\python.cmd
..\usd-build-club\prerequisites-vc140-x64\zlib.cmd
..\usd-build-club\prerequisites-vc140-x64\ptex.cmd
..\usd-build-club\prerequisites-vc140-x64\jpeg.cmd
..\usd-build-club\prerequisites-vc140-x64\png.cmd
..\usd-build-club\prerequisites-vc140-x64\tiff.cmd
..\usd-build-club\prerequisites-vc140-x64\double-conversion.cmd
..\usd-build-club\prerequisites-vc140-x64\boost.cmd
..\usd-build-club\prerequisites-vc140-x64\tbb.cmd
..\usd-build-club\prerequisites-vc140-x64\glew.cmd
..\usd-build-club\prerequisites-vc140-x64\glext.cmd
..\usd-build-club\prerequisites-vc140-x64\openexr.cmd
..\usd-build-club\prerequisites-vc140-x64\OpenSubdiv.cmd
..\usd-build-club\prerequisites-vc140-x64\OpenImageIO.cmd
..\usd-build-club\configure.cmd
cd prereq\build\usd
cmake --build . --target install --config Release -- /maxcpucount:16
Using the install:
- Add [PATH TO STAGE]\local\bin to %PATH%
- Add [PATH TO STAGE]\local\lib to %PATH%
- Add [PATH TO STAGE]\local\lib\python to %PYTHONPATH%
- Run python> from pxr import Usd
mkdir Projects
cd Projects
git clone https://github.com/PixarAnimationStudios/USD.git
cd USD
git checkout dev
cd ..
git clone https://github.com/vfxpro99/usd-build-club.git
mkdir stage
cd stage
../usd-build-club/build_prerequisites.sh
../usd-build-club/configure.sh Xcode
cmake --build . --target install --config Release