CMake unable to generate the Xcode file described in this tutorial

In the Creating A 3D Application With Hydra Rendering tutorial on the Apple Developer website, on the last step where I execute this command:

cmake -S ~/Users/macuser/CreatingA3DApplicationWithHydraRendering/ -B ~/Users/macuser/CreatingA3DApplicationWithHydraRendering/

I keep getting an error:

CMake Error at CMakeLists.txt:5 (include):
include could not find requested file:
/Users/macuser/USDInstall/bin/pxrConfig.cmake

I've tried to follow the instructions as mentioned in the README.md file included in the project files at least 5 times as well as moving the pxrConfig.cmake file around and copying it in different folders, then executed the command and was still unsuccessful into generating the proper file expected to compile and render the HydraPlayer renderer. How do I get cmake to generate the Xcode file to create the HydraPlayer renderer?

That tutorial is based on Pixar code. Plus, it dates from WWDC 2022.

Try reverting your Pixar code to something closer to that timeframe - June, 2022. Sometimes very active open source projects like this will break tutorials that were written at some point in the past.

If that doesn't work, you'll probably have to ask on the Pixar Github site. There isn't a lot of cmake information available here. It could be something simple. I'm surprised to see cmake being used in an Apple tutorial.

CMake unable to generate the Xcode file described in this tutorial
 
 
Q