Closed AlcEccentric closed 4 years ago
I've spent a bunch of time looking into this. It's not clear to me that there's a need to have the headers in /usr/include
to build pbrt. In particular, nothing in the build scripts requires that, and, as one data-point, I don't have a /usr/include
on the Mojave system I use for development and pbrt builds fine.
I'm wondering if you upgraded to Mojave, didn't re-run cmake
, and then saw that error--i.e. if the generated Makefiles from before had direct references to /usr/include
that stopped working.
There are multiple similar errors shown in the cmath file like
I found a solution in a post of this link: https://github.com/neovim/neovim/issues/9050 The reason is
To fix it, you should run
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
to install a compatibility package. This can only help you to build pbrt successfully with make command, which means the build still fails in the Xcode.BTW, the post above said:
I am doubting whether this will also be a pbrt issue in future. @mmp