Because opencv on nix/apt is built with gcc, it is not compatible with zig. Solution: - Create nix overlay to build opencv by zigcv or clang Related Issues: - https://github.com/ziglang/zig/issues/13018