Problem with OSL compilation


#1

Hi, I’m trying to make homebrew tap for some libraries that are not included in the homebrew-core, then finally a formulae for appleseed.

When it comes to OSL, I got following error:

/usr/local/Cellar/[email protected]/3.9.1_1/include/c++/v1/wchar.h:119:15: fatal error: ‘wchar.h’ file not found
#include_next <wchar.h>

I’ve managed to compile it before, following the wiki, and succeeded.
This problem just bump out today when I try to compile it through homebrew. Then I tried to compile it manually, reinstall llvm, try other versions of llvm, but all failed with the same problem.
Does anyone ever encounter this problem before?


#2

I got the problem as well on macOS 10.14 (Mojave).

The problem is that /usr/include doesn’t exist by default.

Here is the solution (make sure to read at least the sections " What you should not do" and “What worked for me”):


#3

Thank you so much, work for me.