-
Notifications
You must be signed in to change notification settings - Fork 158
Description
Describe the bug
A fresh checkout of depthai-core fails to build on OSX 15.4.1, failing (initially) when attempting to build zlib. I believe that this is because the version of zlib used does not compile when using a C23 compiler (which is the default compiler on this version of OSX).
Once this issue is resolved, the next failure is nholmann/json - it's doing some questionable template stuff that the compiler hard errors on (and you can't force the error to a warning):
.hunter/_Base/cb0ea1f/8c87124/7ad1efd/Install/include/nlohmann/json.hpp:5989:41: error: implicit instantiation of undefined template 'std::char_traits'
Bottom line, I don't believe anyone has tried to compile this on a recent version of OSX. :)
Minimal Reproducible Example
- Checkout depthai-core repo on OSX 15.4.1
- Attempt to compile following instructions in README.md
- See zlib error
- If you somehow work around zlib error (I used a custom FindZLib cmake macro), compilation will then fail in nholmann/json.
Expected behavior
depthai-core should compile cleanly on OSX.