-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] depthai-core doesn't compile in debian unstable with gcc-12 #780
Comments
@lepalom I assume this is using a custom compilation environment with a system / custom spdlog library? There is likely a versioning mismatch. You'll need to update spdlog to be within the ballpark version of what DepthAI uses |
@themarpe system spdlog library (1.10.0). Do you think that the issue is related to that? Maybe can be related to: |
@lepalom likely yup - we have "custom logging bindings" relate to fmt library and not to standard C++ Perhaps a simpler solution is to modify that formatting call such that it also works with that spdlog version and create a PR for it, which we can then incorporate into DepthAI to make it more "spdlog version agnostic" |
@themarpe From my point of view, to have any custom logging and not follow standard C++ is not a good idea ... but I'm more worried about another issues of depthai-core wrt the build and use process. |
I mean, C++ didn't have a standard formatting to follow since C++20, which was why the fmtlib existed (and was then included in the standard). Its mostly just a difference between fmtlib being used or C++20 format being used. And the former is more "correct" actually as the C++20 format took away some capabilities of fmtlib. So one cannot just swap out fmtlib for C++20 format in all cases. |
The question for me is if do you really "need" that capabilities of fmtlib that are not in the standard? |
It was always part of spdlog, so in an essence, yes, we relied on it. spdlog+fmt lib was the standard, if recent version changed that, then downstream dependencies must either: switch the behavior off if possible, or update to accommodate. For us, fmt lib is "the standard" at the moment (We dont use C++20 format) I'll close this, as compiling against different version of libs fall to the user. Note any PRs that expand the compatibility and address this are however appreciated |
This may or may not fix the RTD docs building
Trying to build depthai-core, it failed:
the complete log is here:
http://debomatic-amd64.debian.net/distribution#unstable/depthai-core/2.20.2-1/buildlog
The text was updated successfully, but these errors were encountered: