I’ve installed mbedtls with homebrew and I have this file in “/opt/homebrew/include/mbedtls/debug.h”
I think I need to pass C include path to dune, but I cannot find a way to do this. Also I will need to pass library path, so that it will find .a files for the libraries.
I’ve tried creating C_INCLUDE_PATH=/opt/homebrew/include environment variable but this did not help.
I don’t know how different building HashLink is compared to the Haxe compiler, but I found that using the Apple Silicon version of Homebrew didn’t work to build HashLink. I needed to do some special things to force the HashLink build process use the Intel version of Homebrew instead.
So maybe there are similar requirements for the Haxe compiler. Here’s the thread where I posted my findings for HashLink. Maybe it’ll provide some clues: