When you depend on this fork of zigcv, you might've noticed the following things:
- The compiler asks you to install cmake
- It builds OpenCV from source
- The resulting binary is larger than normal
This is because the system package of OpenCV on most Linux distros are compiled against libstdc++, which is incompatible with libc++ and Zig is having trouble with. Until there are somehow a way to resolve this incompatibility, we will need to bundle a build of OpenCV that links to libc++. Btw, this also means you can now set the bundle build option to true for bundling OpenCV with your MacOS build.
I aim to find a way to replace clang with zig cc in the compilation process, and this issue will remain open as a track issue for migrating to zig cc.
When you depend on this fork of zigcv, you might've noticed the following things:
This is because the system package of OpenCV on most Linux distros are compiled against libstdc++, which is incompatible with libc++ and Zig is having trouble with. Until there are somehow a way to resolve this incompatibility, we will need to bundle a build of OpenCV that links to libc++. Btw, this also means you can now set the
bundlebuild option totruefor bundling OpenCV with your MacOS build.I aim to find a way to replace clang with zig cc in the compilation process, and this issue will remain open as a track issue for migrating to zig cc.