Skip to content

Explanation: Require Bundling OpenCV on Linux #2

@Froxcey

Description

@Froxcey

When you depend on this fork of zigcv, you might've noticed the following things:

  1. The compiler asks you to install cmake
  2. It builds OpenCV from source
  3. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions