Skip to content

[BUG] depthai-core does not build on Mac OSX Sequoia 15.4.1 #1320

@dizzyd

Description

@dizzyd

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

  1. Checkout depthai-core repo on OSX 15.4.1
  2. Attempt to compile following instructions in README.md
  3. See zlib error
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions