EmixamPP / linux-enable-ir-emitter

Provides support for infrared cameras that are not directly enabled out-of-the box.
MIT License
242 stars 21 forks source link

Fails to build with Clang #151

Closed dthelegend closed 1 year ago

dthelegend commented 1 year ago

Describe the bug I found that Clang finds many issues with the code and there are too many errors to include here. Most of them seem to be generated by opencv, but the reason for it not compiling is not clear to me. I have left my build log attached here. Compiles fine with GCC.

1620 errors generated.
ninja: build stopped: subcommand failed.

How to reproduce Compile with the official Clang package

CC=clang CXX=clang CFLAGS="-ferror-limit=0" CXXFLAGS="-ferror-limit=0" meson setup --wipe build

Also not known if related, but this does not compile with opencv-cuda.

EmixamPP commented 1 year ago

Please compile the project using meson, ninja and gcc. The errors you have are only related to coding style.